A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2006-March/062206.html below:

[Python-Dev] Making builtins more efficient

[Python-Dev] Making builtins more efficient [Python-Dev] Making builtins more efficientNick Coghlan ncoghlan at gmail.com
Thu Mar 9 10:47:55 CET 2006
Steven Elliott wrote:
> I'm interested in how builtins could be more efficient.  I've read over
> some of the PEPs having to do with making global variables more
> efficient (search for "global"):
>     http://www.python.org/doc/essays/pepparade.html
> But I think the problem can be simplified by focusing strictly on
> builtins.

Unfortunately, builtins can currently be shadowed in the module global 
namespace from outside the module (via constructs like "import mod; mod.str = 
my_str"). Unless/until that becomes illegal, focusing solely on builtins 
doesn't help - the difficulties lie in optimising builtin access while 
preserving the existing name shadowing semantics.

PEP 280 seems to be about as simple as an approach can get while still 
possessing the correct semantics.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org
More information about the Python-Dev mailing list

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