Re: Coding style
- From: dwelch91 <donald.welch@xxxxxx>
- Date: Mon, 17 Jul 2006 10:27:06 -0700
tac-tics wrote:
Uh, no, empty lists are False in a boolean context:
I'd say the second one. Empty lists are not false. They are empty. Long
live dedicated boolean data types.
http://docs.python.org/lib/truth.html
-Don
.
- Follow-Ups:
- Re: Coding style
- From: tac-tics
- Re: Coding style
- References:
- Coding style
- From: PTY
- Re: Coding style
- From: Simon Brunning
- Re: Coding style
- From: tac-tics
- Coding style
- Prev by Date: Re: Starting a GUI application out of an console application
- Next by Date: Re: Coding style
- Previous by thread: Re: Coding style
- Next by thread: Re: Coding style
- Index(es):
Relevant Pages
|