PEP 285: Adding a bool type: yes, but not as int subtype
logistix
logstx at bellatlantic.net
Tue Apr 2 00:44:54 EST 2002
>
> >>> 2-1 # doesn't change
> 1
> >>> 2<1 # changes to False
> 0
> >>>
>
> ? Probably, but I don't really care -- nobody tried to make computers
easy
> for me, and suffering builds character <wink>. I've been at this for
> decades now, and I'll need a millisecond less thought.
>
So this PEP will break the ternary hack (a and b or c) and other crazy
exploitation of short-circuiting tricks in lambdas? Not that I mind. ;)
More information about the Python-list
mailing list