Suggestions for good programming practices?
Aahz
aahz at pythoncraft.com
Tue Jun 25 17:49:38 EDT 2002
In article <afafee$fc$0 at 216.39.172.122>, 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
mailing list