Re: Coding style
- From: Steve Holden <steve@xxxxxxxxxxxxx>
- Date: Mon, 17 Jul 2006 18:41:11 +0100
tac-tics wrote:
Take them off to where they belong!Or even just:
lst = []
;-)
Indeed.
I'd say the second one. Empty lists are not false. They are empty. Long
live dedicated boolean data types.
I'll bet you still write
if a>3 == True:
don't you ;-)
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden
.
- Follow-Ups:
- Re: Coding style
- From: Donn Cave
- Re: Coding style
- From: Peter Otten
- 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: Coding style
- Next by Date: Re: Augument assignment versus regular assignment
- Previous by thread: Re: Coding style
- Next by thread: Re: Coding style
- Index(es):
Relevant Pages
|