Desactivating Python keywords and built-in functions
Peter L Hansen
peter at engcorp.com
Fri Oct 8 14:27:17 EDT 2004
Larry Bates wrote:
> Couldn't you rebind the functions that you want to deactivate
> to another function that didn't do what you don't want done?
>
> def eval(s, g=None, l=None):
> pass
>
> Seems like those new to Python do this all the time with
> list, dict, etc.
It's really quite pointless (or redundant, anyway) to discuss
this until you've searched the list archives for the many
past discussions about this. Suffice to sasy that the answer
to your suggestion is that there are other ways to find
the real "eval" again.
-Peter
More information about the Python-list
mailing list