On Apr 21, 5:20 pm, Paul Rubin <http://phr...@NOSPAM.invalid> wrote: > bearophileH... at lycos.com writes: > > In some algorithms a sentinel value may be useful, so for Python 3.x > > Better to just use object() to generate sentinels. Infinity is a number that compares always like.