[Python-Dev] Fast access to __builtins__
Jeremy Hylton
jeremy@alum.mit.edu
28 Mar 2003 07:29:54 -0500
28 Mar 2003 07:29:54 -0500
- Previous message: [Python-Dev] Fast access to __builtins__
- Next message: [Python-Dev] Fast access to __builtins__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, 2003-03-27 at 23:49, Guido van Rossum wrote: > Frankly, I'm a bit confused by your post. Maybe I don't understand > what you're proposing? Modules are modules, right? That is, pickle.py and cPickle.so are both represented as module objects at runtime. A C extension can call PyModule_GetDict() on any module. If so, then any extension module can add names to the __dict__ of any Python module. The problem is that modules expose their representation at the C API level (namespace implemented as PyDictObject), so it's difficult to forbid things at the C level. Jeremy
- Previous message: [Python-Dev] Fast access to __builtins__
- Next message: [Python-Dev] Fast access to __builtins__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]