Suggestions for good programming practices?

Aahz aahz at
Tue Jun 25 17:49:38 EDT 2002

In article <afafee$fc$0 at>, Bengt Richter <bokr at> wrote:
>Do you recommend using def foo(*args) and testing len(args) instead?

Only if you really want a list of unnamed parameters.  Personally, I
usually prefer to pass a sequence directly in such cases, to distinguish
between None (i.e. no list) and the empty list.
Aahz (aahz at           <*>

Project Vote Smart:

More information about the Python-list mailing list