updated pre-PEP: The create statement

Michele Simionato michele.simionato at gmail.com
Thu Apr 6 12:17:59 EDT 2006


Steven Bethard wrote:
> I've updated the PEP based on a number of comments on comp.lang.python.
> The most updated versions are still at:
>
>      http://ucsu.colorado.edu/~bethard/py/pep_create_statement.txt
>      http://ucsu.colorado.edu/~bethard/py/pep_create_statement.html
>
> In this post, I'm especially soliciting review of Carl Banks's point
> (now discussed under Open Issues) which asks if it would be better to
> have the create statement translated into:
>
>      <name> = <callable>("<name>", *<tuple>, **<namespace>)
>
> instead of the current:
>
>      <name> = <callable>("<name>", <tuple>, <namespace>)
>
> The former allows the create statement to be applied to a wider variety
> of callables; the latter keeps a better parallel with the class statement.

Maybe I am thick this evening, but how that would work? It would break
for
classes if we do not follow the signature of 'type'. -1 unless you
explain me
what I am missing.

               Michele Simionato




More information about the Python-list mailing list