cpython/Lib
Mark Dickinson 2ffb26fb83 Issue #5260: Various portability and standards compliance fixes, optimizations
and cleanups in Objects/longobject.c.  The most significant change is that
longs now use less memory:  average savings are 2 bytes per long on 32-bit
systems and 6 bytes per long on 64-bit systems.  (This memory saving already
exists in py3k.)
2009-02-15 10:13:41 +00:00
..
bsddb Issue #5073: Fix occasional failure of bsddb/test/test_lock.py. Thanks 2009-01-26 21:51:56 +00:00
compiler Issue #999042: The Python compiler now handles explict global statements 2009-02-07 00:54:41 +00:00
ctypes make tests fail if they can't be imported 2009-01-10 22:42:10 +00:00
curses Issue #3239. Differentiate the ascii call from the curses one and 2008-07-05 20:39:59 +00:00
distutils Replace variable 2009-02-14 14:12:30 +00:00
email #2676: email/message.py [Message.get_content_type]: Trivial regex hangs on pathological input 2008-08-15 21:03:21 +00:00
encodings
hotshot Added warning for the removal of 'hotshot' in Py3k. 2008-03-22 04:08:44 +00:00
idlelib Remove startup firewall message. That is handled by an error dialog 2009-01-26 23:29:09 +00:00
importlib Make importlib backwards-compatible to Python 2.2 (but this is not promised to 2009-02-03 21:13:05 +00:00
json check for error conditions in _json #3623 2008-10-16 21:09:28 +00:00
lib-tk Some tests for Tkinter.Text.search 2009-02-09 19:21:21 +00:00
lib2to3 Merged revisions 68306-68308,68340,68368,68422 via svnmerge from 2009-01-09 02:13:34 +00:00
logging Issue #5170: Fixed Unicode output bug in logging and added test case. This is a regression which did not occur in 2.5. 2009-02-08 19:06:08 +00:00
msilib Issue #3732: Backported r53335 to supress deprecation warning. 2008-09-01 14:24:04 +00:00
multiprocessing Properly document multiprocessing's logging support, resolve outstanding issues with the custom levels 2009-01-25 03:36:13 +00:00
plat-aix3
plat-aix4
plat-atheos
plat-beos5
plat-darwin
plat-freebsd4
plat-freebsd5
plat-freebsd6
plat-freebsd7
plat-freebsd8
plat-generic
plat-irix5 Deprecate WAIT for removal in 3.0. 2008-05-15 04:17:35 +00:00
plat-irix6 Deprecate WAIT for removal in 3.0. 2008-05-15 04:17:35 +00:00
plat-linux2
plat-mac Fix for issues #841800 and #900506 2009-01-02 15:25:36 +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
plat-sunos5 Deprecate sunaudiodev/SUNAUDIODEV for removal in 3.0. 2008-05-16 00:10:24 +00:00
plat-unixware7
site-packages
sqlite3 Remove usage of apply() in sqlite3 to silence warnings under -3. 2008-08-04 21:19:41 +00:00
test Issue #5260: Various portability and standards compliance fixes, optimizations 2009-02-15 10:13:41 +00:00
wsgiref Silence warnings under -3 triggered by wsgiref. 2008-08-04 21:30:53 +00:00
xml Issue 2235: Py3k warnings are now emitted for classes that will no longer inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings. 2008-08-11 15:45:58 +00:00
BaseHTTPServer.py Move test.test_support.catch_warning() to the warnings module, rename it 2008-09-02 01:25:16 +00:00
Bastion.py Deprecate Bastion and rexec for 3.0. 2008-05-10 02:27:04 +00:00
CGIHTTPServer.py #3345: fix docstring. 2008-07-16 22:09:17 +00:00
ConfigParser.py Remove a __getitem__() removal on an exception to silence a warning triggered 2008-08-02 03:37:50 +00:00
Cookie.py #1638033: add support for httponly on Cookie.Morsel 2008-09-06 19:28:11 +00:00
DocXMLRPCServer.py Remove a dict.has_key() use in DocXMLRPCServer that comes up under -3. 2008-08-03 22:59:46 +00:00
HTMLParser.py revert creation of the html.entities and html.parser modules 2008-05-20 06:08:38 +00:00
MimeWriter.py
Queue.py give the threading API PEP 8 names 2008-06-11 17:27:50 +00:00
SimpleHTTPServer.py Issue839496: SimpleHTTPServer should open all files in binary mode. 2008-07-06 21:34:39 +00:00
SimpleXMLRPCServer.py Remove a dict.has_key() and callable() usage in SimpleXMLRPCServer as triggered 2008-08-03 22:57:23 +00:00
SocketServer.py socketserver renaming reversal part 3: move the module into the right 2008-05-24 18:31:28 +00:00
StringIO.py
UserDict.py Register IterableUserDict as a MutableMapping. 2008-06-07 16:16:12 +00:00
UserList.py Issue 2235: Py3k warnings are now emitted for classes that will no longer inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings. 2008-08-11 15:45:58 +00:00
UserString.py Issue 2235: __hash__ is once again inherited by default, but inheritance can be blocked explicitly so that collections.Hashable remains meaningful 2008-07-15 14:27:37 +00:00
_LWPCookieJar.py
_MozillaCookieJar.py
__future__.py Patch #2477: Added from __future__ import unicode_literals 2008-03-26 22:01:37 +00:00
__phello__.foo.py
_abcoll.py Issue 4920: Fixed next() vs __next__() issues in the ABCs 2009-01-28 23:02:26 +00:00
_strptime.py
_threading_local.py give the threading API PEP 8 names 2008-06-11 17:27:50 +00:00
abc.py Issue 3747: Fix caching in ABCMeta.__subclasscheck__ (R: Georg Brandl) 2008-09-02 10:14:47 +00:00
aifc.py Remove tuple parameter unpacking in aifc to silence warnings under -3. 2008-08-04 21:33:00 +00:00
antigravity.py easter egg 2008-10-15 11:49:10 +00:00
anydbm.py
ast.py ast.literal_eval can properly evaluate complex numbers now. This fixes issue4907. 2009-01-13 11:52:23 +00:00
asynchat.py warnings.catch_warnings() now returns a list or None instead of the custom 2008-09-09 00:49:16 +00:00
asyncore.py Fix for issue 4332 in trunk. 2008-11-19 18:26:12 +00:00
atexit.py
audiodev.py Deprecate the audiodev module for 3.0. 2008-05-06 23:23:34 +00:00
base64.py
bdb.py Fix several issues relating to access to source code inside zipfiles. Initial work by Alexander Belopolsky. See Misc/NEWS in this checkin for details. 2008-12-14 10:54:50 +00:00
binhex.py
bisect.py Issue 3301: Bisect functions behaved badly when lo was negative. 2008-07-10 14:03:19 +00:00
cProfile.py
calendar.py Remove some from __future__ import with_statements 2008-04-30 21:25:55 +00:00
cgi.py Issue #1055234: cgi.parse_header(): Fixed parsing of header parameters to 2008-12-04 18:25:17 +00:00
cgitb.py
chunk.py
cmd.py
code.py #1288615: Python code.interact() and non-ASCII input 2008-08-07 18:42:40 +00:00
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 Issue 1818: collections.namedtuple() to support automatic renaming of invalid fieldnames. 2009-02-10 01:24:05 +00:00
colorsys.py pep8tify conditionals 2009-01-30 02:02:25 +00:00
commands.py take Brett's advice on a few warnings 2008-05-26 20:41:45 +00:00
compileall.py compileall used the ctime of bytecode and source to determine if the bytecode 2009-02-10 02:07:38 +00:00
contextlib.py #1748: use functools.wraps instead of rolling own metadata update. 2008-04-30 21:08:42 +00:00
cookielib.py Update __all__ for cookielib, csv, os, and urllib2 for objects imported into 2008-08-18 00:46:22 +00:00
copy.py Revert the renaming of repr to reprlib. 2008-05-23 05:03:59 +00:00
copy_reg.py Revert copy_reg -> copyreg rename. 2008-05-20 07:49:57 +00:00
csv.py Update __all__ for cookielib, csv, os, and urllib2 for objects imported into 2008-08-18 00:46:22 +00:00
dbhash.py Deprecate bsddb for removal in Python 3.0. 2008-09-05 18:33:51 +00:00
decimal.py Register decimals as numbers.Number 2009-02-03 03:37:03 +00:00
difflib.py Use functools.reduce() in difflib instead of __builtin__.reduce() to silence 2008-08-09 23:34:11 +00:00
dircache.py Deprecate the dircache module for 3.0. 2008-05-10 21:12:57 +00:00
dis.py #4222: document dis.findlabels() and dis.findlinestarts() and 2009-01-01 12:09:40 +00:00
doctest.py Stronger tests for combinatoric relationships. 2009-01-27 09:52:35 +00:00
dumbdbm.py
dummy_thread.py Remove imports of 'warnings' that are no longer needed in dummy_thread, 2008-08-17 22:10:11 +00:00
dummy_threading.py
filecmp.py Remove imports of 'warnings' that are no longer needed in dummy_thread, 2008-08-17 22:10:11 +00:00
fileinput.py Remove a use of callable() in fileinput to silence a -3 warning. 2008-08-03 23:52:32 +00:00
fnmatch.py
formatter.py
fpformat.py Deprecate the fpformat module for removal in 3.0. 2008-05-10 22:11:45 +00:00
fractions.py Manually merge r68095,68186,68187,68188,68190 from 2.6 branch. 2009-01-03 22:03:11 +00:00
ftplib.py backport r66656 so people using -Qnew aren't affected 2008-09-27 22:08:12 +00:00
functools.py Copy reduce() to _functools so to have functools.reduce() not raise a warning 2008-08-09 23:30:55 +00:00
genericpath.py
getopt.py #4458: recognize "-" as an argument, not a malformed option in gnu_getopt(). 2008-12-05 09:23:14 +00:00
getpass.py Major improvements: 2008-04-22 08:08:41 +00:00
gettext.py
glob.py
gzip.py Issue #3860: GzipFile and BZ2File now support the context manager protocol. 2009-01-10 16:13:45 +00:00
hashlib.py issue3715: docstring representation of hex escaped string needs to be double 2008-08-31 16:34:18 +00:00
heapq.py I believe the intention here was to avoid a global lookup 2009-01-31 21:00:10 +00:00
hmac.py silence callable warning in hmac 2008-08-19 19:07:38 +00:00
htmlentitydefs.py revert creation of the html.entities and html.parser modules 2008-05-20 06:08:38 +00:00
htmllib.py Deprecate htmllib and sgmllib for 3.0. 2008-06-01 21:19:14 +00:00
httplib.py Issue 4879: Allow buffering for HTTPResponse 2009-01-11 16:23:37 +00:00
ihooks.py Deprecate ihooks for removal in 3.0. 2008-05-10 22:45:07 +00:00
imaplib.py
imghdr.py #3424 rearrange the order of tests in imghdr to place more common types first 2008-08-16 16:29:02 +00:00
imputil.py Deprecate the imputil module for removal in 3.0. 2008-05-08 18:15:14 +00:00
inspect.py fix inspect.isclass() on instances with a custom __getattr__ #1225107 2009-01-17 22:27:54 +00:00
io.py #4736 BufferRWPair.closed shouldn't try to call another property as a function 2008-12-24 15:10:27 +00:00
keyword.py
linecache.py Fix several issues relating to access to source code inside zipfiles. Initial work by Alexander Belopolsky. See Misc/NEWS in this checkin for details. 2008-12-14 10:54:50 +00:00
locale.py convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222) 2008-07-25 20:40:19 +00:00
macpath.py Add Py3k warnings to os.path.walk 2008-05-09 00:27:01 +00:00
macurl2path.py
mailbox.py Bug 3228: Explicitly supply the file mode to avoid creating executable files, 2008-08-04 01:43:43 +00:00
mailcap.py
markupbase.py
md5.py
mhlib.py Deprecated the mhlib module for removal in 3.0. 2008-05-11 03:01:47 +00:00
mimetools.py warnings.catch_warnings() now returns a list or None instead of the custom 2008-09-09 00:49:16 +00:00
mimetypes.py
mimify.py
modulefinder.py Fixed a modulefinder crash on certain relative imports. 2008-10-30 20:18:13 +00:00
multifile.py Deprecate the multifile module as per PEP 4. 2008-05-12 03:19:20 +00:00
mutex.py use True and False 2009-01-27 23:15:48 +00:00
netrc.py
new.py Deprecate the new module for removal in 3.0. 2008-05-09 05:18:40 +00:00
nntplib.py
ntpath.py Add Py3k warnings to os.path.walk 2008-05-09 00:27:01 +00:00
nturl2path.py
numbers.py Issue 4998: __slots__ on Fractions was useless. 2009-01-20 20:34:19 +00:00
opcode.py Issue #2183: Simplify and optimize bytecode for list comprehensions. 2008-12-17 00:38:28 +00:00
optparse.py raise a better error 2008-11-23 02:09:41 +00:00
os.py Issue #3708: os.urandom no longer goes into an infinite loop when passed a 2008-09-02 05:36:11 +00:00
os2emxpath.py
pdb.doc Add some sentence endings. 2008-05-11 14:17:13 +00:00
pdb.py Fix several issues relating to access to source code inside zipfiles. Initial work by Alexander Belopolsky. See Misc/NEWS in this checkin for details. 2008-12-14 10:54:50 +00:00
pickle.py Remove use of callable() from pickle to silence warnings under -3. 2008-08-04 21:34:34 +00:00
pickletools.py Issue #3657: fix occasional test_pickletools failures. 2009-01-24 21:08:38 +00:00
pipes.py
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 #4157 move two test functions out of platform.py. 2008-10-21 22:01:38 +00:00
plistlib.py Add warnings to and deprecated all those Mac modules 2008-05-12 21:42:13 +00:00
popen2.py
poplib.py Fixed the semantic of timeout for socket.create_connection and 2008-05-29 16:39:26 +00:00
posixfile.py
posixpath.py excellent place to use a set() #5069 2009-01-27 03:07:53 +00:00
pprint.py Fixed issue #2888. Now the behaviour of pprint when working with nested 2008-06-21 17:43:56 +00:00
profile.py Remove a dict.has_key() usage in profile to silence a -3 DeprecationWarning. 2008-08-03 22:38:19 +00:00
pstats.py Silence -3 warnings in pstats: a dict.has_key() usage and backport solution to 2008-08-03 22:52:42 +00:00
pty.py
py_compile.py
pyclbr.py Minor cleanups: 2008-04-28 02:57:23 +00:00
pydoc.py Patch #4739 by David Laban: add symbols to pydoc help topics, 2008-12-27 18:20:04 +00:00
pydoc_topics.py update pydoc topics 2008-10-02 20:46:58 +00:00
quopri.py
random.py Issue #4869: clarify documentation for random.expovariate. 2009-01-07 17:48:33 +00:00
re.py #4185: clarify escape behavior of replacement strings. 2009-01-01 12:00:19 +00:00
repr.py Revert the renaming of repr to reprlib. 2008-05-23 05:03:59 +00:00
rexec.py Deprecate Bastion and rexec for 3.0. 2008-05-10 02:27:04 +00:00
rfc822.py fix test_py3kwarns 2008-07-14 17:42:17 +00:00
rlcompleter.py Remove a use of callable() to silence the warning triggered under -3. 2008-08-01 01:45:49 +00:00
robotparser.py Close issue 3437 - missing state change when Allow lines are processed. 2008-07-27 00:49:02 +00:00
runpy.py Issue 4195: Restore the ability to execute packages with the -m switch (but this time in a way that leaves the import machinery in a valid state). (Original patch by Andi Vajda) 2009-02-08 01:26:34 +00:00
sched.py #2803: fix wrong invocation of heappush in seldom-reached code. 2008-05-11 15:20:16 +00:00
sets.py Issue 2235: __hash__ is once again inherited by default, but inheritance can be blocked explicitly so that collections.Hashable remains meaningful 2008-07-15 14:27:37 +00:00
sgmllib.py Deprecate htmllib and sgmllib for 3.0. 2008-06-01 21:19:14 +00:00
sha.py
shelve.py Remove imports of 'warnings' that are no longer needed in dummy_thread, 2008-08-17 22:10:11 +00:00
shlex.py
shutil.py make destinsrc private 2009-02-07 19:08:22 +00:00
site.py Docstring typo 2008-05-10 17:36:24 +00:00
smtpd.py
smtplib.py Issue 4929: Handle socket errors when receiving 2009-01-15 17:20:21 +00:00
sndhdr.py
socket.py Remove buffer() usage in the socket module by just slicing directly on the 2008-08-08 04:27:28 +00:00
sre.py
sre_compile.py remove set compat cruft 2008-10-14 22:37:18 +00:00
sre_constants.py
sre_parse.py remove set compat cruft 2008-10-14 22:37:18 +00:00
ssl.py fix name collision issues 2008-12-31 04:08:55 +00:00
stat.py
statvfs.py Deprecated statvfs for removal in 3.0. 2008-05-16 00:50:02 +00:00
string.py fix comment 2008-11-09 01:52:32 +00:00
stringold.py Replace all map(None, a) with list(a). 2008-07-18 19:06:13 +00:00
stringprep.py
struct.py
subprocess.py #5179: don't leak PIPE fds when child execution fails. 2009-02-14 17:01:36 +00:00
sunau.py
sunaudio.py Deprecate the sunaudio module for removal in Python 3.0. The sunau module can provide similar functionality. 2008-07-18 19:30:22 +00:00
symbol.py
symtable.py fix silly errors of mine 2008-08-20 02:15:42 +00:00
tabnanny.py
tarfile.py Issue #4616: TarFile.utime(): Restore directory times on Windows. 2008-12-12 13:58:03 +00:00
telnetlib.py Fixed the semantic of timeout for socket.create_connection and 2008-05-29 16:39:26 +00:00
tempfile.py Remove references to platform 'mac' 2008-05-12 11:24:33 +00:00
textwrap.py Follow-up to r67746 in order to restore backwards-compatibility for 2008-12-27 18:27:53 +00:00
this.py
threading.py Backport relevant part of r66274 (in issue #874900). 2008-09-06 23:04:32 +00:00
timeit.py
toaiff.py Deprecate the toaiff module for removal in 3.0. 2008-05-09 05:32:42 +00:00
token.py
tokenize.py Remove a tuple unpacking in a parameter list to remove a SyntaxWarning raised 2008-08-02 03:15:20 +00:00
trace.py
traceback.py Fix a DeprecationWarning about __getitem__() and exceptions in the 'traceback' module. 2008-08-01 01:21:50 +00:00
tty.py
types.py Issue 2408: remove the _types module 2008-04-08 22:07:05 +00:00
unittest.py Issue #2153: modernize coding style of unittest.py, remove obsolete compatibility stuff. 2008-12-28 16:01:11 +00:00
urllib.py Issue 4336: Let users of HTTPConnection.endheaders() submit a message body to the function if required. 2009-01-09 20:27:16 +00:00
urllib2.py no need for this __bases__ trick anymore 2009-02-12 04:17:04 +00:00
urlparse.py Issue 600362: Relocated parse_qs() and parse_qsl(), from the cgi module 2008-09-03 22:35:50 +00:00
user.py Deprecate the user module for removal in 3.0. 2008-05-08 20:36:09 +00:00
uu.py
uuid.py #4363: Let uuid.uuid1() and uuid.uuid4() run even if the ctypes module is not present. 2008-11-21 22:05:48 +00:00
warnings.py Issue #3781: Final cleanup of warnings.catch_warnings and its usage in the test suite. Closes issue w.r.t. 2.6 (R: Brett Cannon) 2008-09-11 12:11:06 +00:00
wave.py
weakref.py Update __all__ for cookielib, csv, os, and urllib2 for objects imported into 2008-08-18 00:46:22 +00:00
webbrowser.py
whichdb.py
wsgiref.egg-info
xdrlib.py
xmllib.py
xmlrpclib.py fix test_xmlrpc failures #4939 2009-01-13 23:43:50 +00:00
zipfile.py Issue #4710: Extract directories properly in the zipfile module; 2009-01-24 14:00:33 +00:00