From a910cef5666331aeb7b287cf661271ba3c3dab8b Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 11 Feb 2002 01:33:51 +0000 Subject: [PATCH] Add PEP 280, optimizing access to globals. --- pep-0000.txt | 2 ++ pep-0280.txt | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 pep-0280.txt diff --git a/pep-0000.txt b/pep-0000.txt index fa4ac11c1..115c0875a 100644 --- a/pep-0000.txt +++ b/pep-0000.txt @@ -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 diff --git a/pep-0280.txt b/pep-0280.txt new file mode 100644 index 000000000..4da9939bb --- /dev/null +++ b/pep-0280.txt @@ -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!)