[Python-Dev] Fast access to builtins (original) (raw)
Neil Schemenauer nas@python.ca
Thu, 27 Mar 2003 21:51:13 -0800
- Previous message: [Python-Dev] Fast access to __builtins__
- Next message: [Python-Dev] Fast access to __builtins__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Guido van Rossum wrote:
Though you probably would only want to warn when this is done to a .py module -- C extensions should be exempt.
Exempt from poking or being poked?
And the warning should only warn about inserting names that are actually builtins.
I have rough patch. The idea is to have the tp_setattro slot of modules check if the name being set is a builtin. It seems to work but perhaps there are cases that make that approach invalid. Time for bed now. :-)
Neil
- Previous message: [Python-Dev] Fast access to __builtins__
- Next message: [Python-Dev] Fast access to __builtins__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]