new enum idiom
Rainer Deyke
root at rainerdeyke.com
Wed Jan 10 23:36:25 EST 2001
"Steve Holden" <sholden at holdenweb.com> wrote in message
news:8N876.2727$24.36420 at e420r-atl2.usenetserver.com...
> "Rainer Deyke" <root at rainerdeyke.com> wrote in message
> > >>> enum('foo', bar=32, 'fee')
> > SyntaxError: non-keyword arg after keyword arg
> This seems a little obtuse. What would be wrong with
>
> enum('foo', 'bar=32', 'fee')
Oh, right. That would work, but I don't like it. Parsed string arguments
lead to the dark side. It's only a small step to this:
enum('foo, bar=32, fee')
When that happens, we are no longer using the same language.
--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games - http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor
More information about the Python-list
mailing list