stylistic question -- optional return value

Andrew Koenig ark at research.att.com
Wed Aug 28 21:13:41 CEST 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