Keith,
Thanks for clarifying that.
- Dermot
On 11/01/10 22:35, Keith Mitchell wrote:
217:
"if len(args):" is better, I think?
219:
I'd prefer "if len(kwargs.keys()):" but perhaps Drew can suggest the
most correct
expression to use?
Alok is planning on addressing some/most of this block.
FYI: PEP-8 actually calls for the "if args:" form:
For sequences, (strings, lists, tuples), use the fact that empty
sequences are false.
Yes: if not seq:
if seq:
No: if len(seq)
if not len(seq)
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss