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/034263.html below:

[Python-Dev] Fast access to __builtins__

[Python-Dev] Fast access to __builtins__ [Python-Dev] Fast access to __builtins__Guido van Rossum guido@python.org
Fri, 28 Mar 2003 07:23:44 -0500
> 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?

>From being poked.  Poking from C code can't really be prevented, but
isn't a problem.

> > 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. :-)

SF?

--Guido van Rossum (home page: http://www.python.org/~guido/)



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