SelfCount/FrBrGeorge | SelfCount/SVasi1yev | ||||
---|---|---|---|---|---|
t | 1 | #!/usr/bin/env python3 | t | ||
2 | ''' | ||||
3 | ''' | ||||
4 | |||||
5 | |||||
6 | class WeAre: | 1 | class WeAre: | ||
7 | count = 0 | 2 | count = 0 | ||
8 | 3 | ||||
9 | def __init__(self): | 4 | def __init__(self): | ||
10 | type(self).count += 1 | 5 | type(self).count += 1 | ||
11 | 6 | ||||
12 | def __del__(self): | 7 | def __del__(self): | ||
13 | type(self).count -= 1 | 8 | type(self).count -= 1 | ||
14 | 9 |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|