Thought: local declarations

Pete Shinners shredwheat at mediaone.net
Tue May 29 12:37:46 EDT 2001


"Alex Martelli" <aleaxit at yahoo.com> wrote
> Fortunately, you can (e.g. in your sitecustomize.py) do
> such things as overriding __builtin__.__import__ with
> your own version that does that.  A SMOP, but it does
> not require language changes.


very clever. this could be an extremely useful solution if
combined with the python2.1 warning framework. i would love
to see python do this automatically if i run with all warnings
enabled! can anyone PEP it?






More information about the Python-list mailing list