Who knows somefunction?
Emile van Sebille
emile at fenx.com
Thu Sep 26 19:33:40 EDT 2002
gus:
> I haven't compiled it yet; what happens
> when you don't "del x" before you declare x1?
Python 2.3a0 (#29, Sep 26 2002, 16:04:25) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pointer import pointer
>>> x = range(3)
>>> y = id(x)
>>> x1 = pointer(y)
>>> x1
[0, 1, 2]
>>> del x
>>> x1
[0, 1, 2]
>>> del x1
>>> x1 = pointer(y)
>>> x1
[0, 1, 2]
>>>
Anybody know anything you can do with a hunk of rope? ;-)
--
Emile van Sebille
emile at fenx.com
---------
More information about the Python-list
mailing list