pre-PEP: The create statement

Michael Ekstrand michael at elehack.net
Thu Apr 6 08:32:28 EDT 2006


Carl Banks wrote:
> That's probably even more readable than class A, if not as familiar.
> My biggest concern with this is the special arguments of the caller.
> It breaks my heart that we couldn't do something like this:
> 
> create dict keymap:
>     A = 1
>     B = 2
> 

Why couldn't you? Maybe I'm not reading carefully enough, but I didn't
see anything in the PEP prohibiting that. As long as dict knows how to
take arguments appropriately.

- Michael

-- 
mouse, n: a device for pointing at the xterm in which you want to type.
                -- Fortune
Visit me on the Web: http://www.elehack.net



More information about the Python-list mailing list