Complaint Dept: My shoes!

Fredrik Lundh effbot at telia.com
Thu Apr 13 13:02:42 EDT 2000


musingattheruins at my-deja.com wrote:
> if len(shoe)>0: print shoe, hit_on_head()

real python programmers use:

    if shoe:
        print shoe, hit_on_head()

for more information, read the fine manual; section 5.10 in
the language reference describes what's true and what's
false:

    http://www.python.org/doc/current/ref/lambda.html

</F>





More information about the Python-list mailing list