Commit Graph

10052 Commits

Author SHA1 Message Date
Antoine Pitrou e3ae321222 Issue #15379: Fix passing of non-BMP characters as integers for the charmap decoder (already working as unicode strings).
Patch by Serhiy Storchaka.
2012-11-17 21:14:58 +01:00
Jesus Cea f34e4de3f5 Closes #16461: Wave library should be able to deal with 4GB wav files, and sample rate of 44100 Hz. 2012-11-17 03:38:17 +01:00
Chris Jerdonek 080123119d Backport from 3.2: update PyPI docs regarding listing versions (issue #16400). 2012-11-14 12:36:53 -08:00
Antoine Pitrou b704eab599 Issue #16453: Fix equality testing of dead weakref objects.
Also add tests for hashing.
2012-11-11 19:36:51 +01:00
Nadeem Vawda 04050b80b1 Issue #15677: Document that zlib and gzip accept a compression level of 0 to mean 'no compression'.
Patch by Brian Brazil.
2012-11-11 13:52:10 +01:00
Gregory P. Smith 9d3b6e9822 Fixes issue #16327: The subprocess module no longer leaks file descriptors
used for stdin/stdout/stderr pipes to the child when fork() fails.
2012-11-10 22:49:03 -08:00
Gregory P. Smith f2705aebb0 Fixes issue #14396: Handle the odd rare case of waitpid returning 0
when not expected in subprocess.Popen.wait().
2012-11-10 21:13:20 -08:00
Gregory P. Smith c1ce93a4ab Fixes issue #9535: Fix pending signals that have been received but not yet
handled by Python to not persist after os.fork() in the child process.
2012-11-10 20:38:17 -08:00
Nadeem Vawda 3c30970d29 Issue #16411: Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.
Patch by Serhiy Storchaka.
2012-11-11 03:14:56 +01:00
Nadeem Vawda 252f4dc6c9 Issue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush().
Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).

Patch by Serhiy Storchaka.
2012-11-11 02:14:15 +01:00
Chris Withers 2cc0b07a4c Bug #16441: avoid excessive memory usage working with large gzip files 2012-11-09 15:48:17 +00:00
Ezio Melotti dc118790de #13301: use ast.literal_eval() instead of eval() in Tools/i18n/msgfmt.py. Patch by Serhiy Storchaka. 2012-11-09 11:46:19 +01:00
Hynek Schlawack b271b3e188 Issue #15001: fix segfault on "del sys.modules['__main__']"
Patch by Victor Stinner.
2012-11-07 09:41:28 +01:00
Nadeem Vawda 6cad3712b3 Issue #16350: Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.
Patch by Serhiy Storchaka.
2012-11-05 00:55:06 +01:00
Ezio Melotti 751a50fadc Fix typo. 2012-11-05 00:06:50 +02:00
Ezio Melotti c18cc0edff #5057: the peepholer no longer optimizes subscription on unicode literals (e.g. u"foo"[0]) in order to produce compatible pyc files between narrow and wide builds. 2012-11-05 00:03:21 +02:00
Ezio Melotti 50bc66a983 Fix a couple typos in Misc/NEWS. 2012-11-03 21:29:08 +02:00
Ezio Melotti 67dc4a87fc #8401: assigning an int to a bytearray slice (e.g. b[3:4] = 5) now raises an error. 2012-11-03 21:10:45 +02:00
Ezio Melotti ef3173877c #12759: sre_parse now raises a proper error when the name of the group is missing. Initial patch by Serhiy Storchaka. 2012-11-03 20:31:12 +02:00
Ezio Melotti 7d24b1698a #16152: fix tokenize to ignore whitespace at the end of the code when no newline is found. Patch by Ned Batchelder. 2012-11-03 17:30:51 +02:00
Andrew Svetlov 5018db76aa Issue #1207589: Add Cut/Copy/Paste items to IDLE right click Context Menu
Patch by Todd Rovito.
2012-11-01 22:39:14 +02:00
Antoine Pitrou 0552fc2b8a Issue #16230: Fix a crash in select.select() when one the lists changes size while iterated on.
Patch by Serhiy Storchaka.
2012-11-01 20:13:54 +01:00
Antoine Pitrou e9e35c3f6b Issue #16228: Fix a crash in the json module where a list changes size while it is being encoded.
Patch by Serhiy Storchaka.
2012-11-01 20:07:40 +01:00
Benjamin Peterson c40ddae84c fix spelling 2012-10-31 14:16:09 -04:00
Benjamin Peterson 0ec820fc5f only fast-path fromkeys() when the constructor returns a empty dict (closes #16345) 2012-10-31 14:05:55 -04:00
Jesus Cea bdf1b9e267 Closes #16369: Global PyTypeObjects not initialized with PyType_Ready(...). DOCUMENT IT! 2012-10-31 17:00:19 +01:00
Petri Lehtinen 5c89c19eae #14897: Enhance error messages of struct.pack and struct.pack_into
Patch by Matti Mäki.
2012-10-29 21:20:19 +02:00
Mark Dickinson 75d3600466 Issue #14700: Fix buggy overflow checks for large precision and width in new-style and old-style formatting. 2012-10-28 10:00:46 +00:00
Ezio Melotti 3d072066c7 #8040: add a version switcher to the documentation. Patch by Yury Selivanov. 2012-10-27 22:04:56 +03:00
R David Murray 54eed2e36d #12890: don't emit <p> tags in text mode when logdir specified.
Patch by Jeff McNeil.
2012-10-27 14:42:36 -04:00
Trent Nelson e9992292be Issue #16274: Fix test_asyncore on Solaris. 2012-10-26 22:21:46 -04:00
Ezio Melotti b8fbff889f #16210: combine the two type() docs. Patch by Pete Sevander. 2012-10-24 23:01:30 +03:00
Petri Lehtinen 9ad6a563a7 #15040: Close files in mailbox tests for PyPy compatibility
Original patch by Matti Picus.
2012-10-23 14:42:13 +03:00
Nadeem Vawda 45dba1da32 Issue #14398: Fix size truncation and overflow bugs in bz2 module. 2012-10-21 23:09:08 +02:00
Nadeem Vawda dd72b3f6b7 Issue #5148: Ignore 'U' in mode given to gzip.open() and gzip.GzipFile(). 2012-10-21 18:15:05 +02:00
Antoine Pitrou e97a24d06a Issue #16220: wsgiref now always calls close() on an iterable response.
Patch by Brent Tubbs.
2012-10-21 14:09:05 +02:00
Nick Coghlan b48c028ca7 Issue #6074: Restore the long-broken support for running with read-only source files on Windows 2012-10-19 21:58:18 +10:00
Andrew Svetlov f892597eb5 Issue #9583: Document startup option/environment interaction.
Patch by Todd Rovito.
2012-10-17 17:14:28 +03:00
Gregory P. Smith 99716166b1 Fixes Issue #12268 for the io module - File readline, readlines and
read or readall methods no longer lose data when an underlying read
system call is interrupted within an io module object.  IOError is no
longer raised due to a read system call returning EINTR from within
these methods.

This is a backport of changeset 781b95159954 from 3.2.
The earlier 2.7 changeset 67dc99a989cd already fixed this for the
builtin python 2.x file object.
2012-10-12 13:02:06 -07:00
Brian Curtin c1924ab729 Fix #16176. Properly identify Windows 8 via platform.platform()
Add handling of the 6.2 release line, aka Windows 8 and Windows 2012 Server.
2012-10-11 16:16:50 -05:00
Chris Jerdonek 1906c0c992 Issue #16115: Backport subprocess.Popen() documentation improvements from 3.2. 2012-10-08 23:18:17 -07:00
Chris Jerdonek ad4b000179 Issue #14783: Backport changes from 3.2. 2012-10-07 20:37:54 -07:00
Andrew Svetlov 75033a38d9 Issue #14900: Distuguish call count and primitive call count in pstat output.
Patch by Arne Babenhauserheide.
2012-10-07 18:57:21 +03:00
Jesus Cea 3e94e14a68 Backed out changeset 5abacebec9d2 2012-10-04 15:06:57 +02:00
Jesus Cea 82a3924122 Backed out changeset c73b90b6dadd 2012-10-04 14:22:16 +02:00
Jesus Cea 95038fa526 Closes #16112: platform.architecture does not correctly escape argument to /usr/bin/file 2012-10-04 13:46:33 +02:00
Jesus Cea 364f79d7b3 Fix Misc/ACKS alphabetic order 2012-10-03 02:14:14 +02:00
Jesus Cea e884be67bd Closes #15897: zipimport.c doesn't check return value of fseek() 2012-10-03 02:13:05 +02:00
Ezio Melotti 31a9e83d7d #15979: improve timeit documentation. 2012-10-02 05:34:38 +03:00
Chris Jerdonek 71d74b0c4e Close #16036: Backport 3.x documentation improvement.
See changeset 6ccb04c4cbae for the corresponding 3.3 change.
2012-09-30 21:07:56 -07:00
Ezio Melotti c820de5e60 #15923: fix a mistake in asdl_c.py that resulted in a TypeError after 2801bf875a24 (see #15801). 2012-09-30 22:41:37 +03:00
Gregory P. Smith 0798cbc1df Issue #15756: subprocess.poll() now properly handles errno.ECHILD to
return a returncode of 0 when the child has already exited or cannot
be waited on.
2012-09-29 12:02:48 -07:00
Mark Dickinson 218a8ab5eb Issues #16029, #16030: Fix pickling and repr of large xranges. 2012-09-28 20:36:36 +01:00
Michael Foord bf2ad34650 Pass on parameters in unittest.TextTestResult.__init__ super call 2012-09-28 12:54:56 +01:00
Petri Lehtinen a4fd0dc574 #15222: Insert blank line after each message in mbox mailboxes 2012-09-25 22:01:23 +03:00
Barry Warsaw 0dea936e78 - Issue #15935: Clarification of argparse docs, re: add_argument() type and
default arguments.  Patch contributed by Chris Jerdonek.
2012-09-25 10:32:53 -04:00
Christian Heimes 671138f27d Issue #16037: Limit httplib's _read_status() function to work around broken
HTTP servers and reduce memory usage. It's actually a backport of a Python
3.2 fix. Thanks to Adrien Kunysz.
2012-09-25 13:29:30 +02:00
Senthil Kumaran d41dc7ce46 2.7 : Issue #16013: Fix CSV Reader parsing issue with ending quote characters. Patch by Serhiy Storchaka. 2012-09-25 02:48:21 -07:00
Christian Heimes 8112ea2360 Issue #16012: Fix a regression in pyexpat. The parser's UseForeignDTD()
method doesn't require an argument again.
2012-09-24 13:17:08 +02:00
Ezio Melotti cadff70ba5 #15421: fix an OverflowError in Calendar.itermonthdates() after datetime.MAXYEAR. Patch by Cédric Krier. 2012-09-21 17:26:35 +03:00
doko@ubuntu.com 3d2fc15f82 - Issue #11715: Fix multiarch detection without having Debian development
tools (dpkg-dev) installed.
2012-09-21 13:51:40 +02:00
Ezio Melotti 6d6fb3aa9f #15970: xml.etree.ElementTree now serializes correctly the empty HTML elements "meta" and "param". 2012-09-19 08:11:03 +03:00
Ezio Melotti 7d85760c02 #15437, #15439: merge Doc/ACKS.txt with Misc/ACKS and modify Doc/about.rst accordingly. 2012-09-14 01:58:33 +03:00
Barry Warsaw 03fcfbef0a - Issue #15906: Fix a regression in argparse caused by the preceding change,
when action='append', type='str' and default=[].
2012-09-11 21:06:29 -04:00
Jesus Cea 3fb774ec5f Closes #15910: MD5 and SHA1 crash when "updated" with strings bigger than 2**32 bytes 2012-09-10 21:39:07 +02:00
Jesus Cea 03a9d2a20b Closes #15908: SHA1 crashes in 64 bits when the string to hash is bigger than 2**32 bytes 2012-09-10 21:04:42 +02:00
Jesus Cea dc0170a84a #15676: Proper attribution in Misc/ACKS 2012-09-10 20:18:43 +02:00
Jesus Cea 8b54d6d733 Closes #15676: mmap: add empty file check prior to offset check 2012-09-10 00:22:39 +02:00
Ned Deily 10fc104fed Issue #15822: Fix installation of lib2to3 grammar pickles to ensure
they are created in the install locations and with the proper timestamp.
(Solution suggested by MvL)
2012-09-08 18:47:27 -07:00
Antoine Pitrou e299cae230 Issue #15340: Fix importing the random module when /dev/urandom cannot be opened.
This was a regression caused by the hash randomization patch.
2012-09-07 23:49:07 +02:00
Antoine Pitrou 58098a77e6 Issue #13992: The trashcan mechanism is now thread-safe. This eliminates
sporadic crashes in multi-thread programs when several long deallocator
chains ran concurrently and involved subclasses of built-in container
types.

Because of this change, a couple extension modules compiled for 2.7.4
(those which use the trashcan mechanism, despite it being undocumented)
will not be loadable by 2.7.3 and earlier. However, extension modules
compiled for 2.7.3 and earlier will be loadable by 2.7.4.
2012-09-06 00:59:49 +02:00
Antoine Pitrou c5eec0e387 Issue #15841: The readable(), writable() and seekable() methods of io.BytesIO
and io.StringIO objects now raise ValueError when the object has been closed.
Patch by Alessandro Moura.
2012-09-05 20:11:49 +02:00
Petri Lehtinen 80f4553d56 #15802: Fix test logic in TestMaildir.test_create_tmp 2012-09-01 14:25:48 +03:00
Petri Lehtinen f9e1f1128b #13769: Enhance docs for ensure_ascii semantics in JSON decoding functions 2012-09-01 07:29:06 +03:00
R David Murray 201018718f #12776,#11839: call argparse type function only once.
Before, the type function was called twice in the case where the default
was specified and the argument was given as well.  This was especially
problematic for the FileType type, as a default file would always be
opened, even if a file argument was specified on the command line.

Patch by Arnaud Fontaine, with additional test by Mike Meyer.
2012-08-31 23:15:28 -04:00
Trent Nelson f6407a184d Issue #15819: Fix out-of-tree builds from a readonly source. 2012-08-30 14:56:13 +00:00
Trent Nelson da4277a739 Issue #15765: Fix quirky NetBSD getcwd() behaviour.
This is done by extending a previous fix for issue #9185 that was made for
Solaris and OpenBSD to NetBSD as well.
2012-08-29 09:20:41 -04:00
Benjamin Peterson 23d49d3e7e use the stricter PyMapping_Check (closes #15801) 2012-08-28 17:55:35 -04:00
Hynek Schlawack 7d978902d0 #14880: Fix kwargs notation in csv.reader, .writer & .register_dialect
Patch by Chris Rebert.
2012-08-28 12:33:46 +02:00
Ronald Oussoren a00b100c9c Fix issue 13370: Ensure that ctypes works on Mac OS X when Python is compiled using the clang compiler 2012-08-25 11:18:48 +02:00
Mark Dickinson 088cec3ab7 Issue #15544: Fix Decimal.__float__ to work with payload-carrying NaNs. 2012-08-24 20:06:30 +01:00
Antoine Pitrou f3e0a69d88 Issue #14674: Add a discussion of the json module's standard compliance.
Patch by Chris Rebert.
2012-08-24 19:46:17 +02:00
Ned Deily 8622f09d98 Issue #15645: Ensure 2to3 grammar pickles are properly installed.
(Patch by Ronald Oussoren)
2012-08-22 23:26:06 -07:00
Petri Lehtinen 4efdc09a8d #15199: Fix JavaScript's default MIME type to application/javascript 2012-08-20 21:28:46 +03:00
Antoine Pitrou 0e3a4c8058 Issue #15615: Add some tests for the json module's handling of invalid input data.
Patch by Kushal Das.
2012-08-18 20:51:05 +02:00
Mark Dickinson 2de4be2efd Add workaround for log1p(-0.0) on platforms where it's broken. 2012-08-18 12:31:34 +01:00
Antoine Pitrou c5bef75c77 Issue #15604: Update uses of PyObject_IsTrue() to check for and handle errors correctly.
Patch by Serhiy Storchaka.
2012-08-15 23:16:51 +02:00
R David Murray c7b8f809e7 #15543: reflow paragraphs. 2012-08-15 11:22:58 -04:00
Petri Lehtinen 2d44ceeada #11062: Fix adding a message from file to Babyl mailbox 2012-08-15 14:25:41 +03:00
Richard Oudkerk faee75c33a Issue #15646: Prevent equivalent of a fork bomb when using multiprocessing
on Windows without the "if __name__ == '__main__'" idiom.
2012-08-14 11:41:19 +01:00
Brian Curtin bc77d3690b Fix #15496. Add directory removal helpers to make Windows tests more reliable. Patch by Jeremy Kloth 2012-08-13 17:26:48 -05:00
Senthil Kumaran 2f76f73d73 Issue #15630: Add an example for "continue" statement in the tutorial. Patch by
Daniel Ellis.
2012-08-12 11:58:53 -07:00
Georg Brandl d26b658f14 Graft a89d654adaa2 from 3.2 branch. Fixes #15620. 2012-08-11 11:08:04 +02:00
Meador Inge 2d639d5665 Issue #15424: Add a __sizeof__ implementation for array objects.
Patch by Ludwig Hähne.
2012-08-10 22:05:45 -05:00
Brian Curtin a939105a40 Fix #15567. collections.deque wasn't imported 2012-08-09 23:04:42 -05:00
Andrew Svetlov 8afcec41f4 Issue #15501: Document exception classes in subprocess module.
Initial patch by Anton Barkovsky.
2012-08-09 15:23:49 +03:00
Ned Deily 670280470d Issue #15560: Fix building _sqlite3 extension on OS X with an SDK. 2012-08-05 14:42:45 -07:00
Andrew Svetlov 8ba844ac14 Issue #13052: Fix IDLE crashing when replace string in Search/Replace dialog ended with '\'.
Patch by Roger Serwy.
2012-08-04 21:45:23 +03:00
Jesus Cea d4e58dc966 Closes #15469: Correct __sizeof__ support for deque 2012-08-03 14:48:23 +02:00
Jesus Cea 3e3192d8f7 Closes #15512: Correct __sizeof__ support for parser 2012-08-03 14:25:53 +02:00