Perl is worse!

Ben Wolfson rumjuggler at cryptarchy.org
Fri Jul 28 23:43:38 EDT 2000


On 28 Jul 2000 20:32:45 GMT, m.faassen at vet.uu.nl (Martijn Faassen) wrote:

>>     Shoot yourself with "conversion" or with assignments like this, either way
>> your foot is shot.  I say learn proper gun safty and aim it elsewhere.  ;)
>> Seriously, that isn't to say that None should be restricted from being
>> changed, just, uh, anyone know how to change it back aside from restarting
>> python?  :)
>
>Cute question. Hm.. 
>
>Yes:
>
>None = __builtins__.None
>
>Now for the real problem:
>
>__builtins__.None = 1
>
>Uh oh.

>>> def getnone():
	pass

>>> import __builtin__
>>> __builtin__.None = 1
>>> type(getnone())
<type 'None'>

-- 
Barnabas T. Rumjuggler

A cucumber should be well sliced, and dressed with pepper and vinegar, and
then thrown out, as good for nothing.
 -- Samuel Johnson



More information about the Python-list mailing list