[Python-ideas] Deprecating repr() and the like
Serhiy Storchaka
storchaka at gmail.com
Sun Aug 11 12:30:12 CEST 2013
09.08.13 23:52, Tim Peters написав(ла):
> And don't forget the digit 1! It looks too much like lowercase letter
> L. It would be silly require constructs like 42 // 42 instead, so
> let's add a new builtin "one":
>
>>>> 1
> SyntaxError: invalid syntax
>>>> one == 42 // 42
> True
>>>> one
> 1
>
> I'm not sure how to replace the confusing output from that last line ;-)
Use Enum. ;-)
More information about the Python-ideas
mailing list