A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-June/045378.html below:

[Python-checkins] python/dist/src/Lib asyncore.py, 1.51, 1.52

[Python-Dev] RE: [Python-checkins] python/dist/src/Lib asyncore.py, 1.51, 1.52Josiah 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4