|
Size: 521
Comment:
|
Size: 633
Comment: converted to 1.6 markup
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 11: | Line 11: |
| ... def __del__(self): ... print "HI" |
... def __del__(self): ... print "HI" |
| Line 23: | Line 23: |
| >>> type(c) <type 'instance'> >>> c <__main__.C instance at 0x402328cc> |
|
| Line 33: | Line 29: |
| >>> c=C() >>> d=c >>> c=4 >>> d=7 HI |
|
| Line 34: | Line 35: |
=== list append and assignment === {{{ #!python >>> a=[1,2,3] >>> print a [1, 2, 3] >>> a=a.append(4) >>> print a None }}} |
Note : This is an experimental page, Python can be learned interactively from a prompt, and learning by observations is a good habit, so this page. -- BaijuMuthukadan
(This page is not linked from main pages yet.)
__del__ workings
