Add PEP 280, optimizing access to globals.

This commit is contained in:
Guido van Rossum 2002-02-11 01:33:51 +00:00
parent 27577312e1
commit a910cef566
2 changed files with 41 additions and 0 deletions

View File

@ -90,6 +90,7 @@ Index by Category
S 277 Unicode file name support for Windows NT Hodgson
S 278 Universal Newline Support Jansen
S 279 Enhanced Generators Hettinger
S 280 Optimizing access to globals Montanaro, Hylton, van Rossum, Peters
Finished PEPs (done, implemented in CVS)
@ -241,6 +242,7 @@ Numerical Index
S 277 Unicode file name support for Windows NT Hodgson
S 278 Universal Newline Support Jansen
S 279 Enhanced Generators Hettinger
S 280 Optimizing access to globals Montanaro, Hylton, van Rossum, Peters
SR 666 Reject Foolish Indentation Creighton

39
pep-0280.txt Normal file
View File

@ -0,0 +1,39 @@
PEP: 280
Title: Optimizing access to globals
Version: $Revision$
Last-Modified: $Date$
Author: skip@pobox.com, jeremy@alum.mit.edu, guido@python.org, tim.one@comcast.net,
Status: Draft
Type: Standards Track
Created: 10-Feb-2002
Python-Version: 2.3
Post-History:
Abstract
This PEP attempts to summarize various approaches for avoiding the
dictionary lookup for accessing globals and built-ins in most
cases. There are several competing approaches, which originated
in historical order by authors Montanaro, Hylton, and Van Rossum.
The fourth author is added for his valuable feedback during all
stages.
The expectation is that eventually one approach will be picked and
implemented; possibly multiple approaches will be prototyped
first.
Montanaro's approach: tracking globals
XXX (Skip, please check in a description!).
Hylton's approach: using a dlict
XXX (Jerely, please check in a description!)
Van Rossum's approach: using a celldict
XXX (Guido, please check in a description!)