A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-March/034262.html below:

[Python-Dev] Fast access to __builtins__

[Python-Dev] Fast access to __builtins__ [Python-Dev] Fast access to __builtins__Jeremy Hylton jeremy@alum.mit.edu
28 Mar 2003 07:29:54 -0500
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





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