mmitchell at transparent.com
Mon Nov 16 19:30:02 CET 2009
The information contained in this electronic message and any attached document(s) is intended only for the personal and confidential use of the designated recipients named above. This message may be confidential. If the reader of this message is not the intended recipient, you are hereby notified that you have received this document in error, and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify sender immediately by telephone (603) 262-6300 or by electronic mail immediately. Thank you.
From: python-list-bounces+mmitchell=transparent.com at python.org
[mailto:python-list-bounces+mmitchell=transparent.com at python.org] On
Behalf Of r
Sent: Monday, November 16, 2009 12:16 AM
To: python-list at python.org
Subject: Re: tkFileDialog question
There is also a nice thing you need to know about Python if you
already do not know. That is the fact that all empty collections bool
to False. This makes Truth testing easier.
>>> bool(' ')
any empty collection, string, or 0 always bools to False.
Thank you both for all the help. Your suggestions have helped clean up
a bunch of my code.
More information about the Python-list