summaryrefslogtreecommitdiffstats
path: root/Lib/asynchat.py
Commit message (Collapse)AuthorAgeFilesLines
* [Patch #1002763] Allow long ints as terminator values; also, treat a ↵Andrew M. Kuchling2005-06-091-2/+2
| | | | terminator of 0 like the empty string or None
* Trivial bug fix: deque == [] is not a good way to check if a deque is empty.Armin Rigo2004-09-271-1/+1
|
* Replace left(), right(), and __reversed__() with the more general purposeRaymond Hettinger2004-03-011-1/+1
| | | | | | | __getitem__() and __setitem__(). Simplifies the API, reduces the code size, adds flexibility, and makes deques work with bisect.bisect(), random.shuffle(), and random.sample().
* Improvements to collections.deque():Raymond Hettinger2004-02-291-5/+1
| | | | | | | | * Add doctests for the examples in the library reference. * Add two methods, left() and right(), modeled after deques in C++ STL. * Apply the new method to asynchat.py. * Add comparison operators to make deques more substitutable for lists. * Replace the LookupErrors with IndexErrors to more closely match lists.
* Use collection.deque() instead of a list for a FIFO queue.Raymond Hettinger2004-02-071-5/+10
|
* [Patch #649762] Fix for asynchat endless loopAndrew M. Kuchling2003-03-101-1/+1
| | | | | | When the null string is used as the terminator, it used to be the same as None, meaning "collect all the data". In the current code, however, it falls into an endless loop; this change reverts to the old behavior.
* Use isinstance() instead of type comparisonAndrew M. Kuchling2003-03-101-3/+2
|
* Code modernization. Replace v=s[i]; del s[i] with single lookup v=s.pop(i)Raymond Hettinger2002-06-301-3/+1
|
* Whitespace normalization.Tim Peters2002-04-161-6/+6
|
* A faster version of the find_prefix_at_end() function (that I found in theAndrew M. Kuchling2002-03-201-9/+7
| | | | | | last Medusa release) Should be safe as a bugfix candidate, though it's not fixing a bug.
* [Bug #491820] Define two abstract methods to shut up Pychecker, and forAndrew M. Kuchling2002-03-081-0/+6
| | | | | documentation purposes. These implementations are the same as the ones suggested by Skip in the bug report.
* Fix from the Madusa mailing list:Tim Peters2001-04-081-1/+1
| | | | | | | | | | | | | | | | | http://groups.yahoo.com/group/medusa/message/333 It's clear that Medusa should not be checking for an empty buffer via "buf is ''". The patch merely changes "is" to "==". However, there's a mystery here all the same: Python attempts to store null strings uniquely, so it's unclear why "buf is ''" ever returned false when buf actually was empty. *Some* string operations produce non-unique null strings, e.g. >>> "abc"*0 is "abc"*0 0 >>> but they're rare, and I don't see any such operations in asynchat.
* Make the docstring a raw string, for pydoc.Guido van Rossum2001-04-061-1/+1
| | | | (How many opre of these will we need? :-( )
* Fix the fix (my error -- hasty pasty).Tim Peters2001-04-051-1/+1
|
* One-liner critical fix from Jim Fulton: Eric's string-method crusadeTim Peters2001-04-051-1/+1
| | | | got the order backwards in a line (for .find()).
* Whitespace normalization.Tim Peters2001-02-091-1/+1
|
* String method conversion.Eric S. Raymond2001-02-091-2/+1
|
* New asynchat.py from Sam Rushing: this foregoes using the regex moduleAndrew M. Kuchling2001-01-241-36/+12
| | | | | to find the prefix of strings, thus removing a warning, and simply uses straightforward string slicing.
* Whitespace standardization.Tim Peters2001-01-141-239/+239
|
* Match Sam Rushing's current version of asyncore.py and asynchat.pyAndrew M. Kuchling2000-09-081-4/+7
| | | | (SF patch 101447, fixing PR#113704)
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-161-1/+1
| | | | | | | | | | comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
* Actually, the previous batch's comment should have been different;Guido van Rossum2000-02-041-18/+21
| | | | | | | | | | *this* set of patches is Ka-Ping's final sweep: The attached patches update the standard library so that all modules have docstrings beginning with one-line summaries. A new docstring was added to formatter. The docstring for os.py was updated to mention nt, os2, ce in addition to posix, dos, mac.
* Put Sam Rushing's original RCS ID string back, without dollars around it.Guido van Rossum1999-09-141-1/+1
|
* Sam's latest versionsGuido van Rossum1999-06-081-39/+61
|
* A gift from Sam Rushing - modules asyncore and asynchat for theGuido van Rossum1999-01-121-0/+290
standard Python library. (Async socket support.)