Message22084
Logged In: YES
user_id=4771
Experimenting a bit, I found out that using asynchat.py from Python 2.3.3 in an otherwise CVS HEAD Python solves the problem. The problem was introduced in this file in revision 1.22 by Raymond: "Use collection.deque() instead of a list for a FIFO queue." <Insert random rambling against this kind of optimizations here> The problem is at line 261: "return self.list == []" which is a correct way to check if a list is empty, but not if a deque is empty!
Fix checked in as asynchat.py:1.25.
The same bug doesn't seem to be present anywhere else.
A few usages of deques in the standard library seem unjustified: in shlex.py, items are only added or removed at the left. |
|
Date |
User |
Action |
Args |
2007-08-23 14:25:21 | admin | link | issue1010098 messages |
2007-08-23 14:25:21 | admin | create | |
|