]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
I don't think it's safe to use map.iteritems() in the various poll
authorGuido van Rossum <guido@python.org>
Thu, 12 Sep 2002 04:57:29 +0000 (04:57 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 12 Sep 2002 04:57:29 +0000 (04:57 +0000)
commitd560ace3a76d1fa162fa40ec90a158d4d3540036
tree292a2882325cd34190cb54883d2e702433e04539
parent78170048f968a00ff7d440c4ff60164a70c20c22
I don't think it's safe to use map.iteritems() in the various poll
routines.  I got some errors "dictionary changed size during
iteration" when running ZEO tests on machine while doing heavy
forground work in another window, and thinking about it, I believe
that it should be okay if readable() or writable() modifies the map.

I also finally made all the spacing conform to the Python style guide:
no space between a function/method name and the following left
parenthesis (fixed lots of occurrences), spaces around assignment
operators (fixed a few, always of the form "map=..."), and a blank
line between the class statement and the first method definition (a
few).
Lib/asyncore.py