tt = a, b = t

Kragen Sitaker kragen at pobox.com
Tue Jan 29 14:48:14 EST 2002


rihad <rihad at mail.ru> writes:
> Hmm, I tried what you implicitly suggested :-) (__builtins__.None = 1)
> It worked... Now, isn't that a threat to security?
> 
> if something is None:
>   # deny access
> else:
>   # allow access
> 
> Then maybe it's not the case.

In Python, any code you're running that isn't properly enclosed in a
rexec will be able to redefine all the builtins and break all your
other code.  Sorry.




More information about the Python-list mailing list