Terry J. Reedy <tjre...@udel.edu> added the comment:

To put it another way, IDLE is written for standard Python. A standard Python 
interpreter has a getattr builtin that works as documented in the library 
manual. Deleting that or any other builtin makes the interpreter non-standard. 
So would replacing or wrapping the builtin with a function that does anything 
other than innocuously augmenting the behavior with something like counting 
calls or logging them to a file.

Deletion of getattr *does* create problems for CPython (or any interpreter) in 
that legal Python code using getattr no longer runs. I presume CPython can limp 
along and execute other code because it directly calls the C function wrapped 
by the __builtins__.getattr object.

----------
resolution: wont fix -> invalid

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15113>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to