Commit Graph

10399 Commits

Author SHA1 Message Date
Benjamin Peterson 4b394db41f merge 2.7.4 release branch (#17550) 2013-03-26 08:56:16 -04:00
Benjamin Peterson b9be7bbe2e fix variable reference to fix --enable-profiling (closes #17550) 2013-03-26 08:55:37 -04:00
Vinay Sajip 1e76e8643b Issue #12718: Set importer on instance if Python function, to avoid bad interaction with winpdb. 2013-03-25 23:37:41 +00:00
Benjamin Peterson bc1d9c9963 merge 2.7.4 release branch 2013-03-23 22:32:34 -05:00
Benjamin Peterson da2c7ebd23 allow any type with __getitem__ to be a mapping for the purposes of % (#15801) 2013-03-23 22:32:00 -05:00
Benjamin Peterson 2350ecd711 merge 2.7.4 release branch 2013-03-23 16:35:57 -05:00
Benjamin Peterson 7e2f197a2b update NEWS for #17531 2013-03-23 16:35:45 -05:00
Benjamin Peterson 4a03c7d482 merge 2.7.4 release branch 2013-03-23 15:40:48 -05:00
Benjamin Peterson 01d9a775fa group ids and user ids can be longs now (#17531) 2013-03-23 15:40:36 -05:00
Benjamin Peterson aec813993f add 2.7.5 header 2013-03-23 15:24:13 -05:00
Benjamin Peterson 31289230e2 return int instead long when possible (#17531) 2013-03-23 15:22:20 -05:00
Benjamin Peterson a1f6fab464 version to 2.7.4rc1 2013-03-23 10:17:29 -05:00
Vinay Sajip bb2dad8915 Issue #17521: Corrected non-enabling of logger following two calls to fileConfig(). 2013-03-23 11:18:10 +00:00
Vinay Sajip 0e29f22855 Updated Misc/NEWS with #17508. 2013-03-23 10:56:39 +00:00
Martin v. Loewis 18613e6e7b Issue #17425: Build against openssl 0.9.8y on Windows. 2013-03-22 22:01:56 +01:00
Benjamin Peterson 469ee9d84c backout 66e30c4870bb for breaking OSX (#13150) 2013-03-22 09:37:13 -05:00
doko@ubuntu.com 28b7c05131 - Issue #13150: sysconfig no longer parses the Makefile and config.h files
when imported, instead doing it at build time.  This makes importing
  sysconfig faster and reduces Python startup time by 20%.
2013-03-21 15:02:16 -07:00
Kristján Valur Jónsson 9795ca44fb Issue #10212: Support new buffer interface for struct.unpack and
cStringIO
2013-03-19 17:17:47 -07:00
Kristján Valur Jónsson 8927e8f421 Issue #12098: multiprocessing on Windows now starts child processes
using the same sys.flags as the current process.
Backport from default branch.
2013-03-19 15:07:35 -07:00
doko@ubuntu.com 4950a3b6cc - Issue #17477: Update the bsddb module to pybsddb 5.3.0, supporting
db-5.x, and dropping support for db-4.1 and db-4.2.
2013-03-19 14:46:29 -07:00
R David Murray a39c47aab0 #8862: Fix curses cleanup with getchar is interrupted by a signal.
I have no idea how one would write a test for this.

Patch by July Tikhonov.
2013-03-19 16:26:53 -04:00
Kristján Valur Jónsson 6ebc8f3f38 Issue #9090 : Error code 10035 calling socket.recv() on a socket with a timeout
(WSAEWOULDBLOCK - A non-blocking socket operation could not be completed
 immediately)
2013-03-19 10:58:59 -07:00
Gregory P. Smith 46ce27ab1e Fixes issue #17192: Update the ctypes module's libffi to v3.0.13. This
specifically addresses a stack misalignment issue on x86 and issues on
some more recent platforms.
2013-03-18 16:58:50 -07:00
Ezio Melotti e015b6b1fc #11420: make test suite pass with -B/DONTWRITEBYTECODE set. Initial patch by Thomas Wouters. 2013-03-16 20:04:44 +02:00
Terry Jan Reedy 0b2173a1ee Issue #17412: update 2.7 Doc/make.bat to also use sphinx-1.0.7. 2013-03-14 19:32:22 -04:00
Serhiy Storchaka 923baea9f9 Issue #1285086: Get rid of the refcounting hack and speed up urllib.unquote(). 2013-03-14 21:31:09 +02:00
Serhiy Storchaka 2556c8388c Issue #17299: Add test coverage for cPickle with file objects and general IO
objects.  Original patch by Aman Shah.
2013-03-14 20:59:09 +02:00
Ezio Melotti fda7a8ce78 #17368: Fix an off-by-one error in the Python JSON decoder that caused a failure while decoding empty object literals when object_pairs_hook was specified. 2013-03-13 01:49:57 +02:00
Eli Bendersky 981c3bde8d Issue #11367: fix documentation of some find* methods in ElementTree 2013-03-12 06:08:04 -07:00
Terry Jan Reedy 21e52aad13 Fix issue number 2013-03-12 02:19:09 -04:00
Terry Jan Reedy f9d31069db Issue #14707: add news entry 2013-03-12 01:26:28 -04:00
Ezio Melotti 617e2c186d #16004: Add `make touch`. 2013-03-11 09:14:09 +02:00
Ezio Melotti efaad09c9a #11963: remove human verification from test_subprocess. 2013-03-11 00:34:33 +02:00
Terry Jan Reedy 3d08f25acf Issue #17332: fix json doc typo /convered/converted/ found by Ernie Hershey. 2013-03-08 19:35:15 -05:00
Senthil Kumaran 6234cc0098 Reverting the changeset c31d700dea8b made for Issue #12921 2013-03-05 02:24:03 -08:00
Senthil Kumaran c74e764c21 Fix Issue #12921: BaseHTTPServer's send_error should send the correct error
response message when  send_error includes a message in addition to error
status. Patch contributed by Karl.
2013-03-05 01:21:13 -08:00
Ned Deily eec152d217 Issue #16848: python-config now returns proper --ldflags values for OS X
framework builds.
2013-03-04 14:31:04 -08:00
Antoine Pitrou 49e4dfeec8 Issue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when the list is being resized concurrently. 2013-03-04 20:30:01 +01:00
Mark Dickinson 7cac1c25a1 Issue #16445: Fix potential segmentation fault when deleting an exception message. 2013-03-03 11:13:34 +00:00
Chris Jerdonek 2277b947bb Issue #16406: combine the doc pages for uploading and registering to PyPI. 2013-02-27 09:55:39 -08:00
Richard Oudkerk ba48264bce Issue #17018: Make Process.join() retry if os.waitpid() fails with EINTR. 2013-02-26 12:37:07 +00:00
R David Murray 5b2cf5e651 #17275: Fix class name in init errors in C bufferedio classes.
This fixes an apparent copy-and-paste error.

Original patch by Manuel Jacob.
2013-02-23 22:11:21 -05:00
Petri Lehtinen f794bde17d Revert "Issue #16121: Fix line number accounting in shlex" 2013-02-23 23:05:54 +01:00
Petri Lehtinen 43072780df Issue #16121: Fix line number accounting in shlex 2013-02-23 22:07:39 +01:00
Petri Lehtinen fead3c8cca Issue #16403: Document how distutils uses the maintainer field in PKG-INFO 2013-02-23 21:05:48 +01:00
Petri Lehtinen 2342784d28 Issue #16695: Document how glob handles filenames starting with a dot 2013-02-23 19:53:03 +01:00
Petri Lehtinen 0b785036ef Issue #8890: Stop advertising an insecure use of /tmp in docs 2013-02-23 19:24:31 +01:00
Petri Lehtinen 9e14755b46 Issue #14720: sqlite3: Convert datetime microseconds correctly
Patch by Lowe Thiderman
2013-02-23 19:05:09 +01:00
Petri Lehtinen c23178ba36 Issue #5033: Fix building of the sqlite3 extension module 2013-02-23 17:05:28 +01:00
Ezio Melotti 2fddfd85bd #17249: convert a test in test_capi to use unittest and reap threads. 2013-02-23 05:45:37 +02:00
Chris Jerdonek 13cee1696f Issue #17203: add long option names to unittest discovery docs. 2013-02-21 18:52:12 -08:00
Ezio Melotti 7d0eb4b234 #17255: test short-circuiting behavior of any()/all(). Patch by Wim Glenn. 2013-02-21 23:15:40 +02:00
Serhiy Storchaka 49d4022d7d Issue #17225: JSON decoder now counts columns in the first line starting
with 1, as in other lines.
2013-02-21 20:17:54 +02:00
Barry Warsaw f25d95732c - Issue #16248: Disable code execution from the user's home directory by
tkinter when the -E flag is passed to Python.  Patch by Zachary Ware.
2013-02-20 18:19:55 -05:00
Benjamin Peterson 8e830a0664 fix building without pymalloc (closes #17228) 2013-02-20 16:54:30 -05:00
R David Murray c32b678fd0 #7842: backport fix for py_compile.compile syntax error message handling. 2013-02-19 20:00:11 -05:00
R David Murray 5aff27aec1 #7963: fix error message when 'object' called with arguments.
Patch by Alexander Belopolsky.
2013-02-18 22:04:59 -05:00
Serhiy Storchaka 4676448941 Issue #13153: Tkinter functions now raise TclError instead of ValueError when
a unicode argument contains non-BMP character.
2013-02-18 13:00:08 +02:00
Serhiy Storchaka 6a8e2b4982 Issue #9669: Protect re against infinite loops on zero-width matching in
non-greedy repeat.  Patch by Matthew Barnett.
2013-02-16 21:23:01 +02:00
Serhiy Storchaka e18e05cce9 Issue #13169: The maximal repetition number in a regular expression has been
increased from 65534 to 2147483647 (on 32-bit platform) or 4294967294 (on
64-bit).
2013-02-16 16:47:15 +02:00
Ezio Melotti 94bf697b01 #17178: update any()/all() docstrings to document their behavior with empty iterables. Patch by Ankur Ankan. 2013-02-15 23:35:14 +02:00
Richard Oudkerk f4b6560f7c Add Misc/NEWS entry for Issue #16743 2013-02-13 15:17:47 +00:00
Serhiy Storchaka 8d7d6bcc25 Issue #11311: StringIO.readline(0) now returns an empty string as all other
file-like objects.
2013-02-13 12:26:58 +02:00
Serhiy Storchaka 34fe1b7a3d Issue #5308: Raise ValueError when marshalling too large object (a sequence
with size >= 2**31), instead of producing illegal marshal data.
2013-02-13 12:07:43 +02:00
Serhiy Storchaka 0127de0b87 Issue #16800: tempfile.gettempdir() no longer left temporary files when
the disk is full.  Original patch by Amir Szekely.
2013-02-13 00:34:46 +02:00
Serhiy Storchaka cdc7a91dde Issue #13555: cPickle now supports files larger than 2 GiB. 2013-02-12 21:36:47 +02:00
Serhiy Storchaka da5c2a0646 Issue #4591: Uid and gid values larger than 2**31 are supported now. 2013-02-12 09:27:53 +02:00
Ned Deily aa1e1a2755 Issue #17111: Prevent test_surrogates (test_fileio) failure on OS X 10.4.
An odd bug in OS X 10.4 causes open(2) on a non-existent,
invalid-encoded filename to return errno 22, EINVAL: Invalid argument,
instead of the expected errno 2, ENOENT: No such file or directory,
*if* the containing directory is not empty.  That caused frequent
failures when running the buildbot tests on 10.4 depending on the state
of the test working directory.  The failure is easy to reproduce on
10.4 by running the test directly (not with regrtest), first in an empty
directory, then after adding a file to it.  The fix is to check for and
pass if either errno is returned.
2013-02-11 22:10:59 -08:00
Michael Foord c36bf99189 Correction to issue 17052 fix 2013-02-11 12:53:21 +00:00
Michael Foord cb66ee7f56 Issue 17502: unittest discovery should use self.testLoader 2013-02-10 23:59:46 +00:00
Serhiy Storchaka 65d56390bb Issue #17141: random.vonmisesvariate() no more hangs for large kappas. 2013-02-10 19:27:37 +02:00
Mark Dickinson 9aaeb5e0c8 Issue #17149: Fix random.vonmisesvariate to always return results in [0, 2*math.pi]. 2013-02-10 14:13:40 +00:00
Serhiy Storchaka f898038ca0 Issue #1470548: XMLGenerator now works with UTF-16 and UTF-32 encodings. 2013-02-10 14:26:08 +02:00
Serhiy Storchaka 0dd3d309ab Issue #6975: os.path.realpath() now correctly resolves multiple nested symlinks on POSIX platforms. 2013-02-10 12:21:49 +02:00
Serhiy Storchaka 15ea3ac67a Issue #17156: pygettext.py now correctly escapes non-ascii characters. 2013-02-09 22:36:22 +02:00
Raymond Hettinger 4234992c75 Keep IDLE from displaying spurious SystemExit tracebacks
when running scripts that terminated by raising SystemExit
(i.e. unittest and turtledemo).
2013-02-09 14:20:55 -05:00
R David Murray a5e7f8f8e0 #16564: test to confirm behavior that regressed in python3.
Also add running of test_email_renamed to the email regrtest.  It contains
tests that the base email/tests/test_email.py does not, which I discovered
while trying to backport this test for confirmation of the behavior.
2013-02-09 12:53:29 -05:00
Serhiy Storchaka 276f1d5139 Issue #7358: cStringIO.StringIO now supports writing to and reading from
a stream larger than 2 GiB on 64-bit systems.
2013-02-09 13:47:43 +02:00
Serhiy Storchaka beaa3adae9 Issue #10355: SpooledTemporaryFile properties and xreadline method now work for unrolled files. 2013-02-09 12:20:18 +02:00
Serhiy Storchaka 62e709c52b Issue #16686: Fixed a lot of bugs in audioop module.
* avgpp() and maxpp() no more crash on empty and 1-samples input fragment. They now work when peak-peak values are greater INT_MAX.
* ratecv() no more crashes on empty input fragment.
* Fixed an integer overflow in ratecv().
* Fixed an integer overflow in add() and bias() for 32-bit samples.
* reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples.
* max() and rms() no more returns negative result for 32-bit sample -0x80000000.
* minmax() now returns correct max value for 32-bit sample -0x80000000.
* avg(), mul(), tomono() and tostereo() now round negative result down and can return 32-bit sample -0x80000000.
* add() now can return 32-bit sample -0x80000000.
2013-02-09 11:10:30 +02:00
Ned Deily ed1e4382c4 Issue #17161: make install now also installs a python2 and python man page. 2013-02-08 22:51:52 -08:00
Serhiy Storchaka c12dcd2e4d Fix accidental non-breakable space (U+00A0). 2013-02-08 11:21:32 +02:00
Serhiy Storchaka 35c52b687f Issue #17073: Fix some integer overflows in sqlite3 module. 2013-02-07 16:59:34 +02:00
Serhiy Storchaka d5327d95d2 Issue #17043: The unicode-internal decoder no longer read past the end of
input buffer.
2013-02-07 16:23:11 +02:00
Serhiy Storchaka a07a8b4f18 Issue #6083: Fix multiple segmentation faults occured when PyArg_ParseTuple
parses nested mutating sequence.
2013-02-04 12:45:46 +02:00
Benjamin Peterson f727c31133 fix find_library on Solaris (closes #5289) 2013-02-03 19:25:11 -05:00
Éric Araujo 3e081c73b8 Add alias to restore 2.7.2 compatibility for setup scripts (#13994).
The customize_compiler function moved many times during the 2.7 series;
in 2.7.3, setup scripts importing this function from ccompiler were
broken.  This commit restores compatibility without reintroducing the
issue that #13994 originally fixed (duplication of the function).

A unit test makes little sense here, as distutils tests never do imports
in functions, and the fix is very simple.
2013-02-03 11:41:19 -05:00
Serhiy Storchaka 354d50ee37 Issue #17106: Fix a segmentation fault in io.TextIOWrapper when an underlying
stream or a decoder produces data of an unexpected type (i.e. when
io.TextIOWrapper initialized with text stream or use bytes-to-bytes codec).
2013-02-03 17:10:42 +02:00
Ned Deily cc23cc672f Issue #16698: Skip posix test_getgroups when built with OS X
deployment target prior to 10.6.
2013-02-02 15:06:45 -08:00
Antoine Pitrou d66c0ee76e Issue #15633: httplib.HTTPResponse is now mark closed when the server sends less than the advertised Content-Length. 2013-02-02 22:49:34 +01:00
Nadeem Vawda 1efd9824d8 Back out fix for issue #13886; it introduced a new bug in interactive readline use. 2013-02-02 20:52:54 +01:00
Benjamin Peterson eff492f4b7 Issue #15881: Fixed atexit hook in multiprocessing. 2013-02-02 11:15:50 -05:00
Gregory P. Smith a5df290e06 Update the embedded copy of the expat XML parser to 2.1.0. It brings
with it a vareity of bug fixes, both security and behavior.  See
http://www.libexpat.org/ for the list.

NOTE: I already backported the expat hash randomization fix in March.

Fixes issue #14340.
2012-07-14 14:12:35 -07:00
Serhiy Storchaka 07fbf60cc8 Merge heads 2013-02-02 10:36:43 +02:00
Serhiy Storchaka 8673ab97cc Issue #11159: SAX parser now supports unicode file names. 2013-02-02 10:28:30 +02:00
Ned Deily 7045f0579b Issue #15116: Remove references to appscript as it is no longer being
supported.
2013-02-02 00:14:44 -08:00
Ned Deily 6e7da15279 Issue #15587: Enable Tk high-resolution text rendering on Macs with
Retina displays.  Applies to Tkinter apps, such as IDLE, on OS X
framework builds linked with Cocoa Tk 8.5+.
Suggested by Kevin Walzer
2013-02-01 23:10:56 -08:00
Ned Deily acf7b95219 Issue #16256: OS X installer now sets correct permissions for doc directory. 2013-02-01 13:58:00 -08:00
Gregory P. Smith a06ad5b366 better news entry 2013-02-01 13:07:27 -08:00
Gregory P. Smith a998ad0135 Additional fix for Issue #12268: The io module file object writelines() methods
no longer abort early when one of its write system calls is interrupted (EINTR).
2013-02-01 13:02:59 -08:00
Gregory P. Smith 608cc451c7 Fixes Issue #6972: The zipfile module no longer overwrites files outside of
its destination path when extracting malicious zip files.
2013-02-01 11:40:18 -08:00
doko@python.org d65e2bab3b - Issue #17086: Backport the patches from the 3.3 branch to cross-build
the package.
2013-01-31 23:52:03 +01:00
Serhiy Storchaka 8d510cd6e1 Issue #17049: Localized calendar methods now return unicode if a locale
includes an encoding and the result string contains month or weekday (was
regression from Python 2.6).
2013-01-31 15:57:51 +02:00
Serhiy Storchaka 0be506a5ba Issue #4844: ZipFile now raises BadZipfile when opens a ZIP file with an
incomplete "End of Central Directory" record.  Original patch by Guilherme
Polo and Alan McIntyre.
2013-01-31 15:26:55 +02:00
Ned Deily 18fae3f954 Issue #13590: OS X Xcode 4 - improve support for universal extension modules
In particular, fix extension module build failures when trying to use
    32-bit-only installer Pythons on systems with Xcode 4 (currently
    OS X 10.8, 10.7, and optionally 10.6).
    * Backport 3.3.0 fixes to 2.7 branch (for release in 2.7.4)
    * Since Xcode 4 removes ppc support, extension module builds now
      check for ppc compiler support and by default remove ppc and
      ppc64 archs when they are not available.
    * Extension module builds now revert to using system installed
      headers and libs (/usr and /System/Library) if the SDK used
      to build the interpreter is not installed or has moved.
    * Try to avoid building extension modules with deprecated
      and problematic Apple llvm-gcc compiler.  If original compiler
      is not available, use clang instead by default.
2013-01-31 01:24:55 -08:00
Michael Foord 77cd8aab23 Issue 15505. unittest.installHandler and non callable signal handlers 2013-01-29 22:59:02 +00:00
Serhiy Storchaka 64cca12622 Move NEWS entity from library to core section. 2013-01-29 12:04:55 +02:00
Serhiy Storchaka c8e58126a2 Issue #16979: Fix error handling bugs in the unicode-escape-decode decoder. 2013-01-29 10:20:34 +02:00
Serhiy Storchaka acf40179c8 Add Robert Xiao to Misc/ACKS for issue17051. 2013-01-28 20:27:28 +02:00
Serhiy Storchaka 46f5b35bc0 Issue #17051: Fix a memory leak in os.path.isdir() on Windows. Patch by Robert Xiao. 2013-01-28 20:19:50 +02:00
Serhiy Storchaka 72121c6c30 - Issue #17041: Fix testing when Python is configured with the
--without-doc-strings option.
2013-01-27 19:45:49 +02:00
Nadeem Vawda 221508cdef Issue #13886: Fix input() to not strip out supposedly-invalid input bytes. 2013-01-27 14:21:26 +01:00
Serhiy Storchaka c59c85c1ac Issue #10156: In the interpreter's initialization phase, unicode globals
are now initialized dynamically as needed.
2013-01-26 12:13:40 +02:00
Serhiy Storchaka 01b3a08f5e Issue #16975: Fix error handling bug in the escape-decode decoder. 2013-01-25 23:30:50 +02:00
Ronald Oussoren 1c60c7ac4c Issue #1602133: 'environ' is not really available with shared libraries on OSX
There already was a workaround for this for framework builds on OSX,
this changeset enables the same workaround for shared libraries.

Closes #1602133
2013-01-25 17:55:39 +01:00
doko@python.org fa3f9a38b2 - Issue #3754: fix typo in pthread AC_CACHE_VAL. 2013-01-25 15:32:31 +01:00
Serhiy Storchaka 9abc830c6a Issue #9290: In IDLE the sys.std* streams now implement io.TextIOBase
interface and support all mandatory methods and properties.
2013-01-25 15:30:35 +02:00
doko@python.org 4e63fbe04d - Issue #17029: Let h2py search the multiarch system include directory. 2013-01-25 13:08:27 +01:00
Serhiy Storchaka b09ec9b618 Issue #13454: Fix a crash when deleting an iterator created by itertools.tee()
if all other iterators were very advanced before.
2013-01-25 13:31:05 +02:00
Serhiy Storchaka 353e54edc4 Issue #1159051: GzipFile now raises EOFError when reading a corrupted file
with truncated header or footer.
Added tests for reading truncated gzip and bzip2 files.
2013-01-22 17:13:26 +02:00
Ezio Melotti 302ad8d126 Fix a few typos in Misc/NEWS. 2013-01-19 19:44:58 +02:00
Charles-François Natali a41cf29c0b Issue #16953: Fix socket module compilation on platforms with HAVE_BROKEN_POLL.
Patch by Jeffrey Armstrong.
2013-01-19 12:15:56 +01:00
Benjamin Peterson 08e153ae37 check windows fd validity (closes #16992) 2013-01-18 00:10:24 -05:00
Serhiy Storchaka e39ba04e22 Issue #15861: tkinter now correctly works with lists and tuples containing
strings with whitespaces, backslashes or unbalanced braces.
2013-01-15 18:01:21 +02:00
Serhiy Storchaka 9599745e2c Issue #14850: Now a chamap decoder treates U+FFFE as "undefined mapping"
in any mapping, not only in an unicode string.
2013-01-15 14:42:59 +02:00
Richard Oudkerk 90b5d9288d Issue #10527: Use poll() instead of select() for multiprocessing pipes 2013-01-14 23:09:14 +00:00
Serhiy Storchaka 80a9fd77a0 Issue #9720: zipfile now writes correct local headers for files larger than 4 GiB. 2013-01-15 00:29:51 +02:00
Serhiy Storchaka eebcb5f790 Issue #16829: IDLE printing no longer fails if there are spaces or other
special characters in the file path.
2013-01-12 18:12:27 +02:00
Raymond Hettinger 2cdb6435d6 Issue #16398: Optimize deque.rotate() 2013-01-12 00:05:00 -08:00
Serhiy Storchaka 8cd7f82024 Issue #15539: Fix a number of bugs in Tools/scripts/pindent.py.
Now pindent.py works with a "with" statement.  pindent.py no longer produces
improper indentation.  pindent.py now works with continued lines broken after
"class" or "def" keywords and with continuations at the start of line.  Added
regression tests for pindent.py.  Modernized pindent.py.
2013-01-11 11:59:59 +02:00
Ezio Melotti 57dfb227a3 #16154: fix some doctests in Doc/library. Patch by Ravi Sinha. 2013-01-11 08:53:10 +02:00
Ezio Melotti 5c4e32b131 #13899: \A, \Z, and \B now correctly match the A, Z, and B literals when used inside character classes (e.g. [A]). Patch by Matthew Barnett. 2013-01-11 08:32:01 +02:00
R David Murray 32851d61f2 #15109: revert '%'->'format' changes in 4b105d328fe7 to fix regression.
With '%', non-ascii worked because the '%' automatically got promoted to
unicode.  With format that doesn't happen, which led to encoding errors.  This
fix goes back to using %, and adds a test to make sure non-ascii string values
work in iterdump.
2013-01-10 21:10:40 -05:00
R David Murray d618684d65 #15545: sort iterdump via SQL instead of in python code
Although there is not a regression in Python2, we make the same update here to
keep the code bases in sync.

(The fix for issue 9750 introduced a regression in Python 3 by sorting the row
objects returned by fetchall.  But if a row_factory such as sqlite3.Row is
used, the rows may not be sortable (in Python3), which leads to an exception.
The sorting is still a nice idea, so the patch moves the sort into the sql.)

Fix and test by Peter Otten.
2013-01-10 11:30:51 -05:00
Ned Deily ec8f8f7959 Issue #15782: Prevent compile errors of OS X Carbon modules _Fm, _Qd, and
_Qdoffs when compiling with an SDK of 10.7 or later.  The OS X APIs they
wrap have long been deprecated and have now been removed with 10.7.
These modules were already empty for 64-bit builds and have been removed
in Python 3.  (Original patch by Ronald Oussoren.)
2013-01-09 22:04:35 -08:00
Serhiy Storchaka c4b82c037e Issue #11461: Fix the incremental UTF-16 decoder. Original patch by
Amaury Forgeot d'Arc. Added tests for partial decoding of non-BMP
characters.
2013-01-08 23:12:00 +02:00
Charles-François Natali be2b907ce2 Issue #16836: Enable IPv6 support even if IPv6 is disabled on the build host. 2013-01-08 19:47:00 +01:00
Ezio Melotti 58abc5bcd7 #13094: add Programming FAQ entry about the behavior of closures. 2013-01-05 00:49:48 +02:00
Victor Stinner 23a32ba0e5 Issue #16367: Fix FileIO.readall() on Windows for files larger than 2 GB 2013-01-03 03:33:21 +01:00
Nadeem Vawda 895cc22b8b Issue #16828: Fix error incorrectly raised by bz2.compress('').
Patch by Martin Packman.
2013-01-02 22:59:51 +01:00
Benjamin Peterson b7ee47b4b7 add Tom Tromey to ACKS 2013-01-02 12:22:11 -06:00
Benjamin Peterson a708adfcf6 call PyErr_Clear() when ignoring error from PyNumber_Int (closes #15516)
Patch from Tom Tromey.
2013-01-02 12:21:32 -06:00
Benjamin Peterson 140794d6e7 merge heads 2013-01-02 09:37:33 -06:00
Benjamin Peterson 6b3f8d375b ensure the attribute name string is initalized before using it (closes #16839) 2013-01-02 09:36:23 -06:00
Serhiy Storchaka dbaac37a5f Fix incorrect grammar in Misc/NEWS. 2013-01-02 11:56:58 +02:00
Serhiy Storchaka 14224420d0 Issue #16819: IDLE method completion now correctly works for unicode literals. 2013-01-01 22:27:45 +02:00
Richard Oudkerk 7450a81970 Issue #9586: Redefine SEM_FAILED on MacOSX to keep compiler happy. 2013-01-01 17:25:09 +00:00
Ned Deily 10e93a6d40 Issue #14958: backport to 2.7.x from 3.3 (patch by Roger Serwy) 2012-12-31 15:06:38 -08:00
Giampaolo Rodola' cef2006eaf Fix issue 10527: make multiprocessing use poll() instead of select() if available. 2012-12-31 17:23:09 +01:00
Serhiy Storchaka 4ed797efbc Issue #16485: Fix file descriptor not being closed if file header patching fails on closing of aifc file. 2012-12-29 22:25:59 +02:00
Antoine Pitrou 40f12ab0c5 Backport Python 3.2 fix for issue #12065, and add another test for SSLSocket.connect_ex(). 2012-12-28 19:03:43 +01:00
Serhiy Storchaka cf095f8e0f Issue #16761: Raise TypeError when int() or long() called with base argument only. 2012-12-28 09:31:59 +02:00
Chris Jerdonek 3684c79e00 Issue #15324: Fix regrtest parsing of --fromfile and --randomize options. 2012-12-27 18:14:01 -08:00
Brian Curtin 33e05e7905 Fix #16759. Convert DWORD registry values using unsigned long.
When converting REG_DWORD registry values into Python, the conversion
needs to be made from an *unsigned* long (k instead of i) to match the
DWORD type.
2012-12-27 14:37:06 -06:00
Serhiy Storchaka a0b7e9c74c Null merge. 2012-12-27 22:00:12 +02:00
Serhiy Storchaka 61006a2113 Issue #16504: Catch SyntaxErrors raised by tokenizer in IDLE. 2012-12-27 21:34:23 +02:00
Brian Curtin 0e091b0365 Fix #14420. Check for PyLong as well as PyInt when converting in Py2Reg.
This fixes a ValueError seen in winreg.SetValueEx when passed long
winreg.REG_DWORD values that should be supported by the underlying API.
2012-12-27 12:28:51 -06:00
Hynek Schlawack 4a5a4c2808 #16618: Add more glob regression tests
Mostly about symlinks and str/unicode behavior.

Patch by Serhiy Storchaka.
2012-12-27 10:24:21 +01:00
Senthil Kumaran 2f01e239cb Issue #16702: Skip proxies for localhost in urllib2_localnet tests 2012-12-26 01:45:22 -08:00
Senthil Kumaran 1974baadc6 Fix issue16713 - tel url parsing with params 2012-12-24 13:56:54 -08:00
Mark Dickinson 9fade768c8 Issue #13863: fix incorrect .pyc timestamps on Windows / NTFS (apparently due to buggy fstat) 2012-12-24 16:33:18 +00:00
Andrew Svetlov 1c6c90fc73 Issue #16443: Add docstrings to regular expression match objects.
Patch by Anton Kasyanov.
2012-12-23 20:09:01 +02:00
Senthil Kumaran f8a6b005fd Fix Issue15701 - HTTPError info method call raises AttributeError. Fix that to return headers correctly 2012-12-23 09:00:47 -08:00
Petri Lehtinen ab7dd183f3 #8853: Allow port to be of type long for socket.getaddrinfo() 2012-12-20 21:09:56 +02:00
Benjamin Peterson 92014420d7 add news note (#16597) 2012-12-20 12:55:52 -06:00
Giampaolo Rodola' c2a8169aa3 Fix issue #16646: ftplib.FTP.makeport() might lose socket error details. (patch by Serhiy Storchaka) 2012-12-17 14:30:48 +01:00
Brian Curtin bc453ca81d Fix #14901. Update some sections of Windows FAQ.
Patch by Ashish Nitin Patil.
2012-12-17 00:17:49 -06:00
Antoine Pitrou 124ee8b1ab Issue #16626: Fix infinite recursion in glob.glob() on Windows when the pattern contains a wildcard in the drive or UNC path.
Patch by Serhiy Storchaka.
2012-12-16 13:55:47 +01:00
Hynek Schlawack 646c7b5086 #16664: Add regression tests for glob's behaviour concerning "."-entries
Patch by Sebastian Kreft.
2012-12-16 12:30:57 +01:00
Antoine Pitrou 4113d2bd36 Issue #16298: In HTTPResponse.read(), close the socket when there is no Content-Length and the incoming stream is finished.
Patch by Eran Rundstein.
2012-12-15 19:11:54 +01:00
Antoine Pitrou 7dddec4e9d Issue #16248: Disable code execution from the user's home directory by tkinter when the -E flag is passed to Python.
Patch by Zachary Ware.
2012-12-09 14:46:18 +01:00
Éric Araujo 367efc254d Branch merge 2012-12-08 22:45:09 -05:00
Éric Araujo 2320fa08a8 Fix setup.py register failure with invalid rst in description (#13614).
Original patch by Julien Courteau and Pierre Paul Lefebvre.
2012-12-08 22:26:57 -05:00
Antoine Pitrou d38c990bb7 Issue #16602: When a weakref's target was part of a long deallocation chain, the object could remain reachable through its weakref even though its refcount had dropped to zero.
Thanks to Eugene Toder for diagnosing and reporting the issue.
2012-12-08 21:15:26 +01:00
Andrew Svetlov bd5279ea24 Drop double newlines printed in some file iteration examples.
Patch by Steven Kryskalla.
2012-12-08 18:01:27 +02:00
Antoine Pitrou 8eeda72742 Issue #16628: Fix a memory leak in ctypes.resize(). 2012-12-08 11:05:50 +01:00
Jesus Cea 7ddd9c21da Closes #16588: Silence unused-but-set warnings in Python/thread_pthread.h 2012-12-05 14:41:11 +01:00
Victor Stinner 8c7c697e49 Issue #15747: skip chflags UF_IMMUTABLE tests if EOPNOTSUPP is raised.
This is necessary for ZFS systems, which don't support UF_IMMUTABLE.
--
Kubilay Kocak (koobs) asked me on IRC to backport this fix to Python 2.7: done!
2012-12-04 10:07:16 +01:00
Antoine Pitrou b83575b0a5 Issue #10182: The re module doesn't truncate indices to 32 bits anymore.
Patch by Serhiy Storchaka.
2012-12-02 12:52:36 +01:00
Benjamin Peterson 4f3b5943a9 Add Bruno Dupuis 2012-11-30 16:15:24 -05:00
Chris Jerdonek 8da8268b1f Backport from 3.2: improve argument/parameter documentation (issue #15990).
The corresponding 3.x commits are 69d5d834c5cb, 40fd26a4206b, and
74d8a2a20c52.
2012-11-29 19:03:37 -08:00
Benjamin Peterson 256aaf7b47 add changelog 2012-11-29 10:57:01 -05:00
Ezio Melotti def6ee5979 #16476: Fix json.tool to avoid including trailing whitespace. 2012-11-29 02:22:49 +02:00
Ezio Melotti d8feba904c #16549: Add tests for json.tools. Initial patch by Berker Peksag and Serhiy Storchaka. 2012-11-29 02:14:52 +02:00
Gregory P. Smith 0d68ab3f48 Plug a leak in timemodule. The module dictionary is saved during
initialization. If the interpreter is shut down and reinitialized (embedded
CPython), the old module dictionary was not dec-refed during the next import of
the time extension module.

Contributed by Torsten Marek of Google.
2012-11-27 10:19:29 -08:00
Ezio Melotti 282d331ec7 #16559: Add more tests for the json module. Patch by Serhiy Storchaka. 2012-11-26 19:22:58 +02:00
Mark Dickinson b1cc6aa2df Issue #9011: AST creation no longer modifies CST for negated numeric literals. 2012-11-25 17:11:33 +00:00
Antoine Pitrou b83ea144cc Issue #1160: Fix compiling large regular expressions on UCS2 builds.
Patch by Serhiy Storchaka.
2012-11-20 22:30:42 +01:00
Ezio Melotti db5947f0f3 #16306: Fix multiple error messages when unknown command line parameters where passed to the interpreter. Patch by Hieu Nguyen. 2012-11-18 13:46:38 +02:00
Ezio Melotti 9e94972eed #14313: zipfile now raises NotImplementedError when the compression type is unknown. 2012-11-18 13:18:06 +02:00
Antoine Pitrou 02512fb1cf Issue #16408: Fix file descriptors not being closed in error conditions in the zipfile module.
Patch by Serhiy Storchaka.
2012-11-17 23:56:53 +01:00
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