[Python-Dev] RE: [Python-checkins] python/dist/src/Lib
asyncore.py, 1.51, 1.52
Josiah Carlson
jcarlson at uci.edu
Mon Jun 14 11:36:57 EDT 2004
> > ! def loop(timeout=30.0, use_poll=False, map=None, count=1e309):
>
> Would sys.maxint have sufficed?
No. On 32 bit machines that would only result in 2**31 - 1 passes
through the loop, not quite a practical infinity. On 64 bit machines,
2^63 - 1 would be a practical infinity.
The latest patch uses None instead, which doesn't fail when asyncore.py
exists. The use of FP infinity was a cute hack, but only worthwhile if
you can rely on FP infinity being marshalled and unmarshalled correctly.
I didn't know there was an issue with such things, but should have
tested it on my end before posting it. I have tested None, and at least
with Python 2.3, it works fine.
- Josiah
More information about the Python-Dev
mailing list