On Thu, Mar 27, 2003 at 09:51:13PM -0800, Neil Schemenauer wrote: > 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. Does it check if it's one of the standard __builtin__ module or whether it is an attribute of whatever object is currently set as the module's __builtins__ attribute? Oren
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4