Suggestions for good programming practices?
aahz at pythoncraft.com
Tue Jun 25 23:49:38 CEST 2002
In article <afafee$fc$0 at 126.96.36.199>, Bengt Richter <bokr at oz.net> 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 pythoncraft.com) <*> http://www.pythoncraft.com/
Project Vote Smart: http://www.vote-smart.org/
More information about the Python-list