Use cases for del
Stian Søiland
stian at soiland.no
Wed Jul 6 14:49:19 EDT 2005
On 2005-07-06 18:10:16, Ron Adam wrote:
> But what if assigning a name to None actually unbound it's name?
> And accessing an undefined name returned None instead of a NameError?
Yes, and we can make
someunknownlist[] = 2
magically do someunknownlist = list() and append 2.
Please.
--
Stian Søiland Work toward win-win situation. Win-lose
Trondheim, Norway is where you win and the other lose.
http://soiland.no/ Lose-lose and lose-win are left as an
exercise to the reader. [Limoncelli/Hogan]
More information about the Python-list
mailing list