cpython/Lib
Gregory P. Smith 24237ea8a1 Fix a bug introduced in r62627. see issue2760 and issue2632.
An assertion in readline() would fail as data was already in the
internal buffer even though the socket was in unbuffered read mode.
That case is now handled.  More importantly, read() has been fixed to
not over-recv() and leave newly recv()d data in the _fileobject buffer.

The max() vs min() issue in read() is now gone.  Neither was correct.
On bounded reads, always ask recv() for the exact amount of data we
still need.

Candidate for backporting to release25-maint along with r62627.
2008-05-05 21:53:45 +00:00
..
bsddb #2503 make singletons compared with "is" not == or != 2008-03-29 15:24:25 +00:00
compiler Fix test_compiler after adding unicode_literals 2008-03-27 05:02:57 +00:00
ctypes Add from_buffer and from_buffer_copy class methods to ctypes types. 2008-04-25 15:44:16 +00:00
curses Use file descriptor for real stdout 2008-02-25 16:29:58 +00:00
distutils #2581: Vista UAC/elevation support for bdist_wininst 2008-05-02 12:48:15 +00:00
email Patch #2167 from calvin: Remove unused imports 2008-02-23 17:40:11 +00:00
encodings Fixed bug #1915: Python compiles with --enable-unicode=no again. However several extension methods and modules do not work without unicode support. 2008-01-23 14:20:50 +00:00
hotshot Added warning for the removal of 'hotshot' in Py3k. 2008-03-22 04:08:44 +00:00
idlelib Autocompletion of filenames now support alternate separators, e.g. the 2008-04-27 21:52:19 +00:00
json Add the 'json' package. Code taken from simplejson 1.9 and contributed by Bob 2008-05-05 20:21:38 +00:00
lib-tk #2503 make singletons compared with "is" not == or != 2008-03-29 15:24:25 +00:00
lib2to3 Merged revisions 62263-62646 via svnmerge from 2008-05-02 21:30:20 +00:00
logging Fix: #2315, #2316, #2317: TimedRotatingFileHandler - changed logic to better handle daylight savings time, deletion of old log files, and fixed a bug in calculating rollover when no logging occurs for a longer interval than the rollover period. 2008-04-02 21:09:27 +00:00
msilib
plat-aix3
plat-aix4
plat-atheos
plat-beos5
plat-darwin
plat-freebsd4
plat-freebsd5
plat-freebsd6 - Add support for FreeBSD 8 which is recently forked from FreeBSD 7. 2007-10-28 11:19:02 +00:00
plat-freebsd7 - Add support for FreeBSD 8 which is recently forked from FreeBSD 7. 2007-10-28 11:19:02 +00:00
plat-freebsd8 - Add support for FreeBSD 8 which is recently forked from FreeBSD 7. 2007-10-28 11:19:02 +00:00
plat-generic
plat-irix5
plat-irix6
plat-linux2
plat-mac Fix for issue #2520 (cannot import macerrors) 2008-05-02 21:54:56 +00:00
plat-netbsd1
plat-next3
plat-os2emx #2503 make singletons compared with "is" not == or != 2008-03-29 15:24:25 +00:00
plat-riscos Patch #2167 from calvin: Remove unused imports 2008-02-23 17:40:11 +00:00
plat-sunos5
plat-unixware7
site-packages
sqlite3 Implemented feature request 2157: Converter names are cut off at '(' 2008-05-04 13:42:44 +00:00
test Fix a bug introduced in r62627. see issue2760 and issue2632. 2008-05-05 21:53:45 +00:00
wsgiref
xml #2503 make singletons compared with "is" not == or != 2008-03-29 15:24:25 +00:00
__future__.py Patch #2477: Added from __future__ import unicode_literals 2008-03-26 22:01:37 +00:00
__phello__.foo.py
_abcoll.py Issue 2226: Callable checked for the wrong abstract method. 2008-03-03 22:19:58 +00:00
_LWPCookieJar.py
_MozillaCookieJar.py
_strptime.py add %f format to datetime - issue 1158 2008-03-15 16:04:45 +00:00
_threading_local.py
abc.py Make isinstance(OldstyleClass, NewstyleClass) return False instead of raising 2008-03-17 16:31:21 +00:00
aifc.py
anydbm.py
asynchat.py
asyncore.py
atexit.py Bug #1597824: return the registered function from atexit.register() 2006-11-16 16:50:59 +00:00
audiodev.py
base64.py
BaseHTTPServer.py #1492: allow overriding BaseHTTPServer's content type for error messages. 2008-02-23 15:02:28 +00:00
Bastion.py Patch #1698951: clarify deprecation message in rexec and Bastion 2007-04-12 07:01:19 +00:00
bdb.py #2498 modernized try, except, finally statements in bdb 2008-03-28 20:56:00 +00:00
binhex.py Remove the macfs module. This led to the deprecation of macostools.touched(); 2007-05-20 23:17:38 +00:00
bisect.py SF 1602378 Clarify docstrings for bisect 2007-04-03 00:02:11 +00:00
calendar.py Remove some from __future__ import with_statements 2008-04-30 21:25:55 +00:00
cgi.py Patch #1541463: optimize performance of cgi.FieldStorage operations. 2007-09-20 16:06:07 +00:00
CGIHTTPServer.py Patch #1481079: Support of HTTP_REFERER in CGIHTTPServer.py 2007-03-09 03:15:56 +00:00
cgitb.py HTML-escape the plain traceback in cgitb's HTML output, to prevent 2007-05-15 20:19:34 +00:00
chunk.py
cmd.py
code.py
codecs.py Merged revisions 61750,61752,61754,61756,61760,61763,61768,61772,61775,61805,61809,61812,61819,61917,61920,61930,61933-61934 via svnmerge from 2008-03-26 12:49:49 +00:00
codeop.py
collections.py Neaten-up the named tuple docs 2008-01-10 23:00:01 +00:00
colorsys.py
commands.py Deprecate commands.getstatus(). 2007-03-13 21:32:01 +00:00
compileall.py fix typo 2008-03-04 21:14:04 +00:00
ConfigParser.py Issue 1781. Now ConfigParser.add_section does not let you add a 2008-02-23 12:46:10 +00:00
contextlib.py #1748: use functools.wraps instead of rolling own metadata update. 2008-04-30 21:08:42 +00:00
Cookie.py
cookielib.py Whitespace normalization. 2007-01-30 03:03:46 +00:00
copy.py Issue 2460: Make Ellipsis objects copyable. 2008-03-24 08:17:39 +00:00
copy_reg.py Removed uses of dict.has_key() from distutils, and uses of 2008-02-21 18:18:37 +00:00
cProfile.py
csv.py Issue #2432: give DictReader the dialect and line_num attributes 2008-03-21 20:01:51 +00:00
dbhash.py
decimal.py Make sure that Context traps and flags dictionaries have values 0 and 1 2008-05-04 02:25:46 +00:00
difflib.py Improve usability of the SequenceMatcher by returning named tuples describing match ranges. 2008-01-11 03:20:54 +00:00
dircache.py
dis.py
doctest.py Doctest results return a named tuple for readability 2008-01-11 01:25:54 +00:00
DocXMLRPCServer.py Update PEP URL. 2008-02-05 16:06:57 +00:00
dumbdbm.py Whitespace normalization. 2007-01-30 03:03:46 +00:00
dummy_thread.py Remove specific mention of my name and email address from modules. Not really 2007-01-25 23:30:39 +00:00
dummy_threading.py Remove specific mention of my name and email address from modules. Not really 2007-01-25 23:30:39 +00:00
filecmp.py
fileinput.py
fnmatch.py
formatter.py #1726198: replace while 1: fp.readline() with file iteration. 2008-01-21 17:22:06 +00:00
fpformat.py
fractions.py Change simple instances (in Fraction) of self.numerator and self.denominator to 2008-02-14 07:49:25 +00:00
ftplib.py socket.error inherits from IOError, it no longer needs listing in 2008-04-12 22:24:04 +00:00
functools.py Patch # 1739906 by Christian Heimes -- add reduce to functools (importing 2007-08-27 20:51:00 +00:00
genericpath.py Small speedup. 2007-05-14 20:52:31 +00:00
getopt.py
getpass.py Major improvements: 2008-04-22 08:08:41 +00:00
gettext.py
glob.py Fix for glob.py if filesystem encoding is None. 2007-03-20 23:05:14 +00:00
gzip.py prevent a warning from the struct module when data size >= 2**32. 2008-03-23 23:45:12 +00:00
hashlib.py Mention that crc32 and adler32 are available in a different module (zlib). 2008-03-19 01:38:35 +00:00
heapq.py Simplify the nlargest() code using heappushpop(). 2008-03-13 19:33:34 +00:00
hmac.py Fixes Issue 1385: The hmac module now computes the correct hmac when using 2007-11-06 00:19:03 +00:00
htmlentitydefs.py
htmllib.py
HTMLParser.py Patch #912410: Replace HTML entity references for attribute values 2007-03-06 14:43:00 +00:00
httplib.py #1627: httplib now ignores negative Content-Length headers. 2008-02-24 00:14:24 +00:00
ihooks.py
imaplib.py #1389051: IMAP module tries to read entire message in one chunk. Patch by Fredrik Lundh. 2008-02-23 19:02:33 +00:00
imghdr.py
imputil.py Patch #685268: Consider a package's __path__ in imputil. 2007-02-13 08:34:45 +00:00
inspect.py Prevent an error when inspect.isabstract() is called with something else than a new-style class. 2008-04-08 21:51:57 +00:00
io.py Remove method signatures from the docstrings of io.py 2008-05-04 22:39:33 +00:00
keyword.py #1726198: replace while 1: fp.readline() with file iteration. 2008-01-21 17:22:06 +00:00
linecache.py
locale.py Patch #1710352: add missing public functions to locale.__all__. 2007-05-01 06:08:15 +00:00
macpath.py Bug #1115886: os.path.splitext('.cshrc') gives now ('.cshrc', ''). 2007-03-07 11:04:33 +00:00
macurl2path.py
mailbox.py Bug 1277: make Maildir use the user-provided factory instead of hard-wiring MaildirMessage. 2008-01-19 20:12:04 +00:00
mailcap.py
markupbase.py
md5.py email address update 2007-09-09 20:25:00 +00:00
mhlib.py
mimetools.py
mimetypes.py Patch 1353 by Jacob Winther. 2007-10-29 20:52:45 +00:00
MimeWriter.py Have MimeWriter raise a DeprecationWarning as per PEP 4 and its documentation. 2007-05-30 20:46:26 +00:00
mimify.py Have mimify raise a DeprecationWarning. The docs and PEP 4 have listed the 2007-05-30 21:48:58 +00:00
modulefinder.py Replaced import of the 'new' module with 'types' module and added a deprecation warning to the 'new' module. 2007-11-27 21:34:01 +00:00
multifile.py
mutex.py
netrc.py
new.py Expose Py_Py3kWarningFlag as sys.py3kwarning as discussed in #1504 2007-11-27 23:16:44 +00:00
nntplib.py
ntpath.py Patch #2167 from calvin: Remove unused imports 2008-02-23 17:40:11 +00:00
nturl2path.py
numbers.py Zap one more use of Exact/Inexact. 2008-03-15 20:37:50 +00:00
opcode.py Give meaning to the oparg for BUILD_MAP: estimated size of the dictionary. 2007-12-18 21:24:09 +00:00
optparse.py Change isbasestring function as discussed on the cvs list a while ago 2008-01-27 19:01:45 +00:00
os.py Moved the errno import from inside the functions to the 2007-11-27 18:50:12 +00:00
os2emxpath.py
pdb.doc Patch #1393667: pdb now has a "run" command which restarts the debugged 2007-03-13 21:08:15 +00:00
pdb.py Added help options to PDB 2008-03-26 11:57:47 +00:00
pickle.py
pickletools.py Complete an open todo on pickletools -- add a pickle optimizer. 2008-02-10 20:35:16 +00:00
pipes.py Patch #1680959: add test suite for pipes module. 2007-08-30 10:38:56 +00:00
pkgutil.py Issue 2439: add pkgutils.get_data() as a convenience wrapper for the PEP 302 get_data() API (contributed by Paul Moore) 2008-04-15 10:25:31 +00:00
platform.py If Mark Hammonds win32 tools are not available, try to use the _winreg module 2008-03-20 17:31:36 +00:00
plistlib.py Follow PEP 8 in module docstring. 2008-01-21 20:18:04 +00:00
popen2.py Use os.closerange() in popen2. 2008-02-23 22:09:24 +00:00
poplib.py More work on SSL support. 2007-09-10 21:51:02 +00:00
posixfile.py Enable platform-specific tweaks for FreeBSD 8 (exactly same to FreeBSD 7's yet) 2007-10-28 12:38:09 +00:00
posixpath.py #1742: don't raise exception on os.path.relpath("a", "a"), but return os.curdir. 2008-01-06 14:27:15 +00:00
pprint.py Shorter pprint's for empty sets and frozensets. Fix indentation of frozensets. Add tests including two complex data structures. 2008-01-24 21:47:56 +00:00
profile.py
pstats.py #1269: fix a bug in pstats.add_callers() and add a unit test file for pstats. 2008-01-21 10:24:59 +00:00
pty.py Whitespace normalization. 2007-01-30 03:03:46 +00:00
py_compile.py #2225: return nonzero status code from py_compile if not all files could be compiled. 2008-03-06 07:41:16 +00:00
pyclbr.py Minor cleanups: 2008-04-28 02:57:23 +00:00
pydoc.py #2133: fix HTML color spec. 2008-02-17 21:18:55 +00:00
Queue.py Add queues will alternative fetch orders (priority based and stack based). 2008-01-16 23:40:45 +00:00
quopri.py
random.py Adopt Nick's suggestion for useful default arguments. 2008-03-23 19:37:53 +00:00
re.py In the experimental 'Scanner' feature, the group count was set wrong. 2008-02-05 17:32:15 +00:00
repr.py Bug #1153: repr.repr() now doesn't require set and dictionary items 2007-09-12 19:00:07 +00:00
rexec.py Patch #1698951: clarify deprecation message in rexec and Bastion 2007-04-12 07:01:19 +00:00
rfc822.py Bug #1249573: fix rfc822.parsedate not accepting a certain date format 2007-01-22 21:10:33 +00:00
rlcompleter.py #2220: handle matching failure more gracefully. 2008-03-06 07:43:02 +00:00
robotparser.py Get rid of _test(), _main(), _debug() and _check(). Tests are no longer 2008-04-28 03:27:53 +00:00
runpy.py Try to make command line error messages from runpy easier to understand (and suppress traceback cruft from the implicitly invoked runpy machinery) 2008-02-22 10:54:06 +00:00
sched.py Issue #1861: Add read-only attribute listing upcoming events in the order they will be run. 2008-01-17 19:31:38 +00:00
sets.py Deprecate the sets module. 2007-01-13 00:29:49 +00:00
sgmllib.py Replace unnecessary function call. 2007-08-06 07:39:09 +00:00
sha.py email address update 2007-09-09 20:25:00 +00:00
shelve.py Revert part of r60927 which made invalid assumptions about the API offered by db modules. 2008-02-25 23:17:41 +00:00
shlex.py Fix parameter passing. 2007-05-24 17:33:33 +00:00
shutil.py Issue 1577: shutil.move() where destination is a directory was doing a 2008-03-18 17:24:12 +00:00
SimpleHTTPServer.py #2169: make generated HTML more valid 2008-02-28 14:03:03 +00:00
SimpleXMLRPCServer.py Added a flag (_send_traceback_header) to the SimpleXMLRPCServer class 2007-08-17 19:16:44 +00:00
site.py Add the correct build dir when building with pydebug. 2008-01-21 21:19:07 +00:00
smtpd.py Issue 1307 by Derek Shockey, fox the same bug for RCPT. 2007-10-23 19:25:41 +00:00
smtplib.py #2248: return result of QUIT from quit(). 2008-03-27 13:27:31 +00:00
sndhdr.py
socket.py Fix a bug introduced in r62627. see issue2760 and issue2632. 2008-05-05 21:53:45 +00:00
SocketServer.py Progress on issue #1193577 by adding a polling .shutdown() method to 2008-03-07 06:22:15 +00:00
sre.py Bug #1675967: re patterns pickled with older Python versions can 2007-03-21 20:07:56 +00:00
sre_compile.py Issue2564: Prevent a hang in "import test.autotest", which runs the entire test 2008-04-08 21:27:42 +00:00
sre_constants.py
sre_parse.py Make sre's SubPattern objects accept slice objects like it already accepts 2006-12-19 08:17:50 +00:00
ssl.py Patch #2167 from calvin: Remove unused imports 2008-02-23 17:40:11 +00:00
stat.py #2383: remove obsolete XXX comment in stat.py. 2008-03-20 07:25:55 +00:00
statvfs.py
string.py Backport of PEP 3101, Advanced String Formatting, from py3k. 2008-02-17 19:46:49 +00:00
StringIO.py [Bug #1622533] Make docstrings raw strings because they contain control characters (\0, \1) 2007-01-05 14:22:17 +00:00
stringold.py
stringprep.py
struct.py Added _struct._clearcache() for regression tests 2008-01-04 02:54:42 +00:00
subprocess.py Added kill, terminate and send_signal to subprocess.Popen 2008-04-19 02:23:57 +00:00
sunau.py
sunaudio.py
symbol.py Patch #1759: Backport of PEP 3129 class decorators 2008-02-23 15:01:05 +00:00
symtable.py
tabnanny.py
tarfile.py A stab in the dark attempt to fix the alpha/tru64 buildbot problem and add more 2008-03-25 06:12:45 +00:00
telnetlib.py Added timout parameter to telnetlib.Telnet. Also created 2007-03-29 18:22:35 +00:00
tempfile.py A few small changes: 2008-04-27 22:49:56 +00:00
textwrap.py Issue 2635: fix bug in the fix_sentence_endings option to textwrap.fill. 2008-04-25 16:59:09 +00:00
this.py
threading.py #1733757: the interpreter would hang on shutdown, if the function set by sys.settrace 2008-04-03 23:07:55 +00:00
timeit.py Whitespace normalization. Ugh, we really need to do this more often. 2007-04-25 06:30:05 +00:00
toaiff.py
token.py Issue 2117. Update compiler module to handle class decorators. 2008-02-25 18:06:00 +00:00
tokenize.py Issue2495: tokenize.untokenize did not insert space between two consecutive string literals: 2008-03-27 23:23:54 +00:00
trace.py Add a timing flag to Trace so you can see where slowness occurs 2008-02-26 08:21:28 +00:00
traceback.py
tty.py
types.py Issue 2408: remove the _types module 2008-04-08 22:07:05 +00:00
unittest.py Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (just 2008-01-03 02:21:52 +00:00
urllib.py #1664522: in urllib, don't read non-existing directories in ftp mode, 2008-01-20 12:18:17 +00:00
urllib2.py #2695: Do case-insensitive check for algorithms. 2008-05-04 21:40:44 +00:00
urlparse.py #1726198: replace while 1: fp.readline() with file iteration. 2008-01-21 17:22:06 +00:00
user.py
UserDict.py Update more instances of has_key(). 2008-02-21 19:24:53 +00:00
UserList.py No need to register classes that already inherit from ABCs. 2008-02-11 18:51:08 +00:00
UserString.py No need to register subclass of ABCs. 2008-02-14 19:30:30 +00:00
uu.py Jython compatibility fix: if uu.decode() opened its output file, be sure to 2006-11-20 13:39:37 +00:00
uuid.py uuid creation is now threadsafe, backport from py3k rev. 57375. 2007-08-24 06:10:01 +00:00
warnings.py Remove the use of 'inspect' from 'warnings' for detected deprecated use of the 2008-05-05 16:57:38 +00:00
wave.py Patch #1681153: the wave module now closes a file object it opened if 2007-03-15 07:41:30 +00:00
weakref.py Fixed URL of PEP 205 in weakref's module docstring. 2008-04-27 00:52:24 +00:00
webbrowser.py Fix a few webbrowser.py problems. 2007-07-01 08:11:35 +00:00
whichdb.py
wsgiref.egg-info
xdrlib.py Move xdrlib tests from the module into a separate test script, 2006-12-01 16:59:47 +00:00
xmllib.py
xmlrpclib.py resolve issue 2014 2008-04-18 20:35:46 +00:00
zipfile.py Issue #1734346: Support Unicode file names for zipfiles. 2008-05-05 17:16:58 +00:00