I don't understand PEP 308.
Peter Hansen
peter at engcorp.com
Wed Mar 12 13:36:19 EST 2003
Tetsuo wrote:
>
> I saw there's a debate over it, and decided to read it. I didn't read
> much, but what I can understand is that it proposes an if-then
> statement.
>
> So how is it different from what's there already? You know...
>
> if a == abs(g):
> ...print "a = abs(" + str(g) + ")"
> else:
> ...print zlib.compress(str(locals())
Those are statements. PEP 308 deals with *expressions*. You can't
directly do the one with the other.
More information about the Python-list
mailing list