]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
A little refactoring.
authorJeremy Hylton <jeremy@alum.mit.edu>
Sun, 8 Sep 2002 00:14:54 +0000 (00:14 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Sun, 8 Sep 2002 00:14:54 +0000 (00:14 +0000)
commitd750036b20be5f8ce0a356fe625e8ade3a6c071a
treefdba831de54735bf41350202f83da0f6265c9784
parent2c0d3224fca38ed07cee2ea9c334d85b2ff0f4fe
A little refactoring.

Add read(), write(), and readwrite() helper functions to shorten poll
functions.  Use get() instead of try/except KeyError for lookup.
XXX How could the lookup ever fail?

Remove module-level DEBUG flag.

Use iteritems() instead of items() when walking the socket map.

Reformat the functions I touched so that are consistently Pythonic.
Lib/asyncore.py