Steven Bethard wrote: > The PEP below should be mostly self explanatory. I'll try to keep the > most updated versions available at: > > http://ucsu.colorado.edu/~bethard/py/pep_create_statement.txt > http://ucsu.colorado.edu/~bethard/py/pep_create_statement.html > > > > PEP: XXX > Title: The create statement > Version: $Revision: 1.4 $ > Last-Modified: $Date: 2003/09/22 04:51:50 $ > Author: Steven Bethard <[EMAIL PROTECTED]> > Status: Draft > Type: Standards Track > Content-Type: text/x-rst > Created: 05-Apr-2006 > Python-Version: 2.6 > Post-History: 05-Apr-2006 > > > Abstract > ======== > > This PEP proposes a generalization of the class-declaration syntax, > the ``create`` statement. The proposed syntax and semantics parallel > the syntax for class definition, and so:: > > create <callable> <name> <tuple>: > <block> > > is translated into the assignment:: > > <name> = <callable>("<name>", <tuple>, <namespace>) > > where ``<namespace>`` is the dict created by executing ``<block>``. > The PEP is based on a suggestion [1]_ from Michele Simionato on the > python-dev list. >
Seems mostly clean. +1. (and I do prefer it with the 'create' statement - more explicit and readable than Michele's original proposition IMHO). -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')])" -- http://mail.python.org/mailman/listinfo/python-list