stylistic question -- optional return value

Andrew Koenig ark at
Wed Aug 28 15:13:41 EDT 2002

Bjorn> You know your situation best of course, so maybe it makes more sense for
Bjorn> you to always return a tuple with sentinels for missing data...?

That's one of the alternatives I mentioned (None is probably
a fine sentinel for the purpose).

More information about the Python-list mailing list