checking if a list is empty

Hans Georg Schaathun hg at schaathun.net
Wed May 11 15:08:19 EDT 2011


On Wed, 11 May 2011 14:59:34 -0400, Prasad, Ramit
  <ramit.prasad at jpmchase.com> wrote:
:  Fair enough. I am a sheep, so I do what other (more knowledgeable)
: people do. It is a fair assumption (for my specific code writing 
: environments) that everyone who is going to read my code understands 
: "if x:" notation or is expected to learn enough Python to understand it.

That's fair enough.  You know your code, so it is probably true.
It would not be true for the code I am writing.

-- 
:-- Hans Georg



More information about the Python-list mailing list