[Python-Dev] Re: dict.setdefault() (Patch#101102) (original) (raw)

Thomas Wouters thomas@xs4all.net
Wed, 9 Aug 2000 13:29:13 +0200


[Tim]

for-that-matter-i'm-a-fan-of-"from-m-import-x-as-y"-too-ly y'rs - tim

[Guido]

Hm. Predictably, I'm worried about adding 'as' as a reserved word.

[Tim]

But it doesn't need to be, right? That is, change the stuff following 'import' in 'from' dottedname 'import' ('' | NAME (',' NAME)) to ('' | NAME [NAME NAME] (',' NAME [NAME NAME]))

I'm very, very much +1 on this. the fact that (for example) 'from' is a reserved word bothers me no end. If noone is going to comment anymore on range literals or augmented assignment, I might just tackle this ;)

Anyone pointing out that the line from as import as as as would then be legal will be shot.

"Cool, that would make 'from from import as as as' a legal sta"

Damned American gun laws ;)

-- Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!