<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Omlouvam se vsem, ale nejak mi to rozhodilo indentaci<br>
<blockquote><tt>>>> class MyClass:<br>
...<br>
... counter = 0<br>
...<br>
... def __init__(self):<br>
... MyClass.counter += 1<br>
...<br>
... def __del__(self):<br>
... MyClass.counter -= 1<br>
...<br>
>>><br>
>>> print MyClass.counter<br>
0<br>
>>><br>
>>> c = MyClass()<br>
>>> print MyClass.counter<br>
1<br>
>>><br>
>>> d = MyClass()<br>
>>> print MyClass.counter<br>
2<br>
>>><br>
>>> c = MyClass()<br>
>>> print MyClass.counter<br>
2<br>
>>><br>
>>> del c<br>
>>> print MyClass.counter<br>
1<br>
>>><br>
>>> del d<br>
>>> print MyClass.counter<br>
0<br>
>>><br>
</tt></blockquote>
Snad uz to je ted ok,<br>
Leos<br>
</body>
</html>