[Python-3000] Set literal

Christian Heimes lists at cheimes.de
Fri Jan 25 18:37:05 CET 2008


Dj Gilcrease wrote:
> This probably will not go over well, but why not use the pipe
> character to define a frozenset?
> 
> if urltxt in |'html', 'xml', 'php'|:

The pipe char is ambiguous because is no direction. It was suggested and
rejected last year.

Christian



More information about the Python-3000 mailing list