Commit Graph

13776 Commits

Author SHA1 Message Date
Zachary Ware 1007432c95 Issue #19987: Re-write test_alias_fallback in test_winsound to have two
acceptable outcomes: success or RuntimeError. Without being able to
actually hear whether a sound was played, either one could be right, but
any other error would be a failure.
2013-12-16 09:02:41 -06:00
Serhiy Storchaka 593568bf47 Issue #19912: Fixed numerous bugs in ntpath.splitunc().
* splitunc() no more return illegal result for paths with redundant slashes.
* splitunc() now correctly processes the 'İ' character
  (U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
* Deprecation warnings now emitted for every use of splitunc().
* Added tests for splitunc().
2013-12-16 15:13:28 +02:00
Serhiy Storchaka 3d7e11520e Issue #19911: ntpath.splitdrive() now correctly processes the 'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
2013-12-16 14:34:55 +02:00
R David Murray 8a1d1e647e #19532: make compileall with no file/dir args respect -f and -q.
Patch by Vajrasky Kok.
2013-12-15 20:49:38 -05:00
Serhiy Storchaka c836a28cc1 Issue #17576: Removed deprecation warnings added in changeset 618cca51a27e. 2013-12-14 21:07:09 +02:00
Serhiy Storchaka 84d28b4ee5 Issue #19623: Fixed writing to unseekable files in the aifc module. 2013-12-14 20:35:04 +02:00
Serhiy Storchaka 5da107ac72 Issue #17919: Fixed integer overflow in the eventmask parameter. 2013-12-14 19:12:02 +02:00
Brett Cannon 98620d87f2 Issue #19963: Document that importlib.import_module() will import
parent packages automatically.
2013-12-13 13:57:41 -05:00
Victor Stinner c9362cf86a Issue #19969: PyBytes_FromFormatV() now raises an OverflowError if "%c"
argument is not in range [0; 255].
2013-12-13 12:14:44 +01:00
Serhiy Storchaka 3ad2d70947 Issue #17919: select.poll.poll() again works with poll.POLLNVAL on AIX. 2013-12-13 12:08:01 +02:00
Victor Stinner 1310510793 Issue #14432: Generator now clears the borrowed reference to the thread state
Fix a crash when a generator is created in a C thread that is destroyed while
the generator is still used. The issue was that a generator contains a frame,
and the frame kept a reference to the Python state of the destroyed C thread.
The crash occurs when a trace function is setup.
2013-12-13 02:17:29 +01:00
Zachary Ware 36193e73b8 Issue #19828: Fixed test_site when the whole suite is run with -S.
Also, cleaned up an unused import.
2013-12-11 16:59:44 -06:00
R David Murray d5c4c7411a #19063: partially fix set_payload handling of non-ASCII string input.
This is a backward compatible partial fix, the complete fix requires raising
an error instead of accepting the invalid input, so the real fix is only
suitable for 3.4.
2013-12-11 16:34:34 -05:00
Serhiy Storchaka 31a655411a Issue #17576: Deprecation warning emitted now when __int__() or __index__()
return not int instance.  Introduced _PyLong_FromNbInt() and refactored
PyLong_As*() functions.
2013-12-11 21:07:54 +02:00
Gregory P. Smith acd17304d2 Fixes Issue #17200: telnetlib's read_until and expect timeout was broken by the
fix to Issue #14635 in Python 3.3.0 to be interpreted as milliseconds instead
of seconds when the platform supports select.poll (ie: everywhere).  It is now
treated as seconds once again.
2013-12-10 18:25:21 -08:00
Ned Deily f3c6589ea3 Issue #18270: Prevent possible IDLE AttributeError on OS X when no initial
shell window is present. (Original patch by Terry Reedy)
2013-12-10 16:24:01 -08:00
Serhiy Storchaka 1f79cdfbfa Issue #19928: Implemented a test for repr() of cell objects. 2013-12-10 10:20:31 +02:00
Serhiy Storchaka 9df8a1c112 Issue #19481: print() of string subclass instance in IDLE no more hangs. 2013-12-10 10:05:19 +02:00
Victor Stinner d860d5cf6d Issue #19932: Fix typo in import.h, missing whitespaces in function prototypes. 2013-12-10 01:19:58 +01:00
Victor Stinner 620c48b7ea Issue #17429: platform.linux_distribution() now decodes files from the UTF-8
encoding with the surrogateescape error handler, instead of decoding from the
locale encoding in strict mode. It fixes the function on Fedora 19 which is
probably the first major distribution release with a non-ASCII name. Patch
written by Toshio Kuratomi.
2013-12-09 00:01:27 +01:00
Gregory P. Smith 589ecda56e Fixes issue #19929: Call os.read with 32768 within subprocess.Popen
communicate rather than 4096 for efficiency.  A microbenchmark shows
Linux and OS X both using ~50% less cpu time this way.
2013-12-08 10:56:07 -08:00
Serhiy Storchaka 3e60a9d602 Issue #19535: Fixed test_docxmlrpc when python is run with -OO. 2013-12-08 18:14:49 +02:00
Zachary Ware 4adb37c40f Issue #19926: Removed unneeded test_main from test_abstract_numbers.
Patch by Vajrasky Kok.
2013-12-08 01:00:14 -06:00
Zachary Ware 9fe6d86709 Issue 19572: More silently skipped tests explicitly skipped. 2013-12-08 00:20:35 -06:00
Gregory P. Smith 774f909489 Fixes issue #19506: Use a memoryview to avoid a data copy when piping data
to stdin within subprocess.Popen.communicate.  5-10% less cpu usage.
2013-12-07 19:12:46 -08:00
Antoine Pitrou dd799d2e32 Issue #18840: Introduce the json module in the tutorial, and deemphasize the pickle module. 2013-12-05 23:46:32 +01:00
Nadeem Vawda 9c72ebc96b #19839: Fix lzma module's handling of non-lzma data at EOF. 2013-12-04 23:03:49 +01:00
Nadeem Vawda 1de19ac7da #19839: Fix regression in bz2 module's handling of non-bzip2 data at EOF. 2013-12-04 23:01:15 +01:00
Tim Peters 13e6d23bb1 Issue #19138: doctest's IGNORE_EXCEPTION_DETAIL now allows no detail at all.
(grafted from c80083ad142db2939507800c755082293a87f2de)
2013-12-03 21:02:05 -06:00
Walter Doerwald 7601a1e56f Add NEWS entry for issue #19834. 2013-12-02 17:19:00 +01:00
Gregory P. Smith 708a3182c9 Fixes issue #15798: subprocess.Popen() no longer fails if file
descriptor 0, 1 or 2 is closed.
The errpipe_write fd will always be >= 3.
2013-12-01 17:27:40 -08:00
Alexandre Vassalotti 5c1c3b4f19 Issue #11480: Fixed copy.copy to work with classes with custom metaclasses.
Patch by Daniel Urban.
2013-12-01 13:25:26 -08:00
Gregory P. Smith 361e30c17a Undo supposed fix for Issue #15798 until I understand why this is
causing test_multiprocessing_forkserver and test_multiprocessing_spawn
failures on head (3.4).
2013-12-01 00:12:24 -08:00
Gregory P. Smith 1eda9e7c30 Fixes Issue #15798 - subprocess.Popen() no longer fails if file
descriptor 0, 1 or 2 is closed.
2013-11-30 19:02:57 -08:00
Alexandre Vassalotti 19b6fa6ebb Issue #6477: Added support for pickling the types of built-in singletons. 2013-11-30 16:06:39 -08:00
Zachary Ware f8ceb04fcf Issue #19845: Updated the Compiling Python on Windows docs. 2013-11-30 16:59:33 -06:00
Alexandre Vassalotti 896414fedf Fixed _pickle.Unpickler to handle empty persistent IDs correctly. 2013-11-30 13:52:35 -08:00
Alexandre Vassalotti 1a83070d9e Issue #19088: Fix incorrect caching of the copyreg module.
This fix does not cause any degradation in performance.
2013-11-30 00:53:09 -08:00
Zachary Ware 04a684b2f2 Issue #19595: Re-enable a long-disabled test in test_winsound 2013-11-27 23:56:04 -06:00
Serhiy Storchaka fbc1c26803 Issue #19795: Improved markup of True/False constants. 2013-11-29 12:17:13 +02:00
Benjamin Peterson 0ee22bf774 fix format spec recursive expansion (closes #19729) 2013-11-26 19:22:36 -06:00
Zachary Ware bb65b5bf1d Issue #19788: kill_python(_d).exe is now run as a PreBuildEvent on the
pythoncore sub-project.  This should prevent build errors due a previous
build's python(_d).exe still running.
2013-11-26 16:32:59 -06:00
Zachary Ware 99fb0513dd Merge heads 2013-11-26 14:57:10 -06:00
Zachary Ware a6edea530b Issue #19588: Fixed tests in test_random that were silently skipped most
of the time.  Patch by Julian Gindi.
2013-11-26 14:50:10 -06:00
Serhiy Storchaka 56507c7862 Issue #11508: Fixed uuid.getnode() and uuid.uuid1() on environment with
virtual interface.  Original patch by Kent Frazier.
2013-11-26 22:47:16 +02:00
Serhiy Storchaka c93329b3dd Issue #11489: JSON decoder now accepts lone surrogates. 2013-11-26 21:25:28 +02:00
Mark Dickinson f45bbb6211 Issue #19638: Raise ValueError instead of crashing when converting billion character strings to float. 2013-11-26 16:19:13 +00:00
Serhiy Storchaka cdac302af3 Issue #19545: Avoid chained exceptions while passing stray % to
time.strptime().  Initial patch by Claudiu Popa.
2013-11-24 18:15:37 +02:00
Andrew Kuchling f92ef9be46 Update Itamar's name 2013-11-22 20:17:24 -05:00
Zachary Ware e1391a0d68 Issue #18326: Clarify that list.sort's arguments are keyword-only.
Also, attempt to reduce confusion in the glossary by not saying there are
different "types" of arguments and parameters.
2013-11-22 13:58:34 -06:00
Serhiy Storchaka d9a018222f Issue #19633: Fixed writing not compressed 16- and 32-bit wave files on
big-endian platforms.

Temporary forbidden test_unseekable_incompleted_write fornot compressed 16-
and 32-bit wave file  on big-endian platforms.
2013-11-21 11:02:30 +02:00
Christian Heimes 2658dd7cab Add workaround for VS 2010 nmake clean issue. VS 2010 doesn't set up PATH for nmake.exe correctly. 2013-11-20 00:41:29 +01:00
R David Murray fb099c9ef1 #19449: Handle non-string keys when generating 'fieldnames' error.
csv was handling non-string keys fine except for the error message
generated when a non-string key was not in 'fieldnames'.

Fix by Tomas Grahn, full patch-with-test by Vajrasky Kok (tweaked slightly).
2013-11-19 13:16:20 -05:00
Zachary Ware 4accf45f0e Issue #19596: Set untestable tests in test_importlib to None
to avoid reporting success on empty tests.
2013-11-18 21:44:38 -06:00
Gregory P. Smith 162307fa35 Fix test.support.bind_port() to not cause an error when Python was compiled
on a system with SO_REUSEPORT defined in the headers but run on a system
with an OS kernel that does not support that reasonably new socket option.
2013-11-17 22:19:32 +00:00
Gregory P. Smith 7929a1da1a Fix compilation error under gcc of the ctypes module bundled libffi for arm.
A variable was declared below the top of a block and one function was using
a K&R C style function declaration!
2013-11-17 21:56:07 +00:00
Georg Brandl 497b3943a3 merge with 3.3.3 release clone 2013-11-17 09:17:18 +01:00
Georg Brandl 9e2043a561 Bump to 3.3.3 final. 2013-11-17 07:58:22 +01:00
Vinay Sajip a76157dca6 Issue #19523: Closed FileHandler leak which occurred when delay was set. 2013-11-15 20:40:27 +00:00
Tim Golden 09a5f5eb26 Issue #13674 Updated NEWS 2013-11-12 13:24:03 +00:00
Zachary Ware c12f09ed24 Issue #19440: Clean up test_capi 2013-11-11 22:47:04 -06:00
Zachary Ware 0eac43a4eb Correct a merge error in Misc/NEWS 2013-11-11 22:30:47 -06:00
Georg Brandl 4cf9b2047d Bump to 3.3.3rc2. 2013-11-11 06:13:54 +01:00
Jason R. Coombs a2ebfd0256 Issue #19544 and Issue #6286: Restore use of urllib over http allowing use of http_proxy for Distutils upload command, a feature accidentally lost in the rollback of distutils2. 2013-11-10 18:50:10 -05:00
Jason R. Coombs 3492e39b44 Issue 19544 and Issue #7457: Restore the read_pkg_file method to distutils.dist.DistributionMetadata accidentally removed in the undo of distutils2. 2013-11-10 18:15:03 -05:00
Serhiy Storchaka a44372fd0b Issue #1575020: Fixed support of 24-bit wave files on big-endian platforms. 2013-11-09 23:12:06 +02:00
Stefan Krah 2915933f4f Valgrind: suppress false positive in _PyOS_GetOpt (getopt.c:84) (Invalid read
of size 8: wcscmp (wcscmp.S:464))
2013-11-08 20:18:09 +01:00
Georg Brandl ee7f3fc586 Backout 7d399099334d. 2013-11-04 07:44:29 +01:00
Jason R. Coombs 32bf5e1273 Update NEWS for 265d369ad3b9. 2013-11-02 13:00:01 -04:00
Benjamin Peterson 35aca89617 merge 3.1 (#19435) 2013-10-30 12:48:59 -04:00
Benjamin Peterson 04e9de40f3 use the collapsed path in the run_cgi method (closes #19435) 2013-10-30 12:43:09 -04:00
Georg Brandl b3acaccf27 Transplant of rev 544b654d000c: directory traversal attack in CGIHttpRequestHandler. 2013-11-11 06:10:23 +01:00
Ned Deily 85b8be1ac8 Issue #15663: Revert OS X installer built-in Tcl/Tk support for 3.3.3.
Some third-party projects, such as matplotlib and PIL/Pillow,
depended on being able to build with Tcl and Tk frameworks in
/Library/Frameworks.  They were unable to build with the built-in
Tcl/Tk and/or execute correctly.
2013-11-05 02:44:17 -08:00
Ezio Melotti 7165d8b9ba #19480: HTMLParser now accepts all valid start-tag names as defined by the HTML5 standard. 2013-11-07 18:33:24 +02:00
Ned Deily 6fc5f98480 Issue #15663: Revert OS X installer built-in Tcl/Tk support for 3.3.3.
Some third-party projects, such as matplotlib and PIL/Pillow,
depended on being able to build with Tcl and Tk frameworks in
/Library/Frameworks.  They were unable to build with the built-in
Tcl/Tk and/or execute correctly.
2013-11-05 02:44:17 -08:00
Serhiy Storchaka 7908068627 Issue #18702: All skipped tests now reported as skipped. 2013-11-03 21:31:18 +02:00
Tim Golden 49667f09a7 Issue #10197: merge heads 2013-11-03 14:20:23 +00:00
Tim Golden e004175c56 Issue #10197 Rework subprocess.get[status]output to use subprocess functionality and thus to work on Windows. Patch by Nick Coghlan. 2013-11-03 12:53:17 +00:00
Serhiy Storchaka 0b9e815d8d Issue #6157: Fixed tkinter.Text.debug(). Original patch by Guilherme Polo. 2013-11-03 14:29:35 +02:00
Serhiy Storchaka 2849e0dfb7 Issue #6160: The bbox() method of tkinter.Spinbox now returns a tuple of
integers instead of a string.  Based on patch by Guilherme Polo.
2013-11-03 14:13:34 +02:00
Jason R. Coombs ca9242f4f9 Merge with 3.2 for Issue #19286. 2013-11-02 13:01:46 -04:00
Serhiy Storchaka 758c521ea8 Issue #19085: Added basic tests for all tkinter widget options. 2013-11-02 10:41:48 +02:00
Benjamin Peterson a50f89954d merge 3.2 (#19435) 2013-10-30 12:50:18 -04:00
Nadeem Vawda 3797065ac5 #19395: Raise exception when pickling a (BZ2|LZMA)(Compressor|Decompressor).
The underlying C libraries provide no mechanism for serializing compressor and
decompressor objects, so actually pickling these classes is impractical.
Previously, these objects would be pickled without error, but attempting to use
a deserialized instance would segfault the interpreter.
2013-10-28 21:35:23 +01:00
Georg Brandl 9b513bf6ca Add news entry for 3.3.3 final. 2013-10-28 08:06:50 +01:00
Georg Brandl ba4e58a021 Add NEWS header for 3.3.4. 2013-10-28 08:05:26 +01:00
Georg Brandl 2d34f41bee Bump to 3.3.3rc1. 2013-10-27 09:22:59 +01:00
Georg Brandl 81be27d53e Issue #19227: Try to fix deadlocks caused by re-seeding then OpenSSL
pseudo-random number generator on fork().
2013-10-27 07:56:11 +01:00
Georg Brandl bf3f8eb960 Issue #16037: HTTPMessage.readheaders() raises an HTTPException when more than
100 headers are read.  Adapted from patch by Jyrki Pulliainen.
2013-10-27 07:34:48 +01:00
Georg Brandl 28e78414f9 Issue #16040: CVE-2013-1752: nntplib: Limit maximum line lengths to 2048 to
prevent readline() calls from consuming too much memory.  Patch by Jyrki
Pulliainen.
2013-10-27 07:29:47 +01:00
Georg Brandl 7e27abbb39 Issue #16041: CVE-2013-1752: poplib: Limit maximum line lengths to 2048 to
prevent readline() calls from consuming too much memory.  Patch by Jyrki
Pulliainen.
2013-10-27 07:23:53 +01:00
Georg Brandl 72c98d3a76 Issue #17997: Change behavior of ``ssl.match_hostname()`` to follow RFC 6125,
for security reasons.  It now doesn't match multiple wildcards nor wildcards
inside IDN fragments.
2013-10-27 07:16:53 +01:00
Georg Brandl ca580f4ec1 Issue #16039: CVE-2013-1752: Change use of readline in imaplib module to limit
line length.  Patch by Emil Lind.
2013-10-27 06:52:14 +01:00
Benjamin Peterson 89d8cd943b just return toplevel symbol table rather than all blocks (closes #19393) 2013-10-26 13:13:51 -04:00
Victor Stinner 2ff68dd526 Close #19339: telnetlib module is now using time.monotonic() when available to
compute timeout.
2013-10-26 09:16:29 +02:00
Ned Deily 3d2f68d242 Issue #19400: Prevent extension module build failures with Xcode 5 on OS X
10.8+ when using a universal Python that included a PPC architecture,
such as with a python.org 32-bit-only binary installer.
2013-10-25 16:03:35 -07:00
Brett Cannon 6fd25c39c4 Issue #19392: Document that imp.reload() now relies on __loader__
being defined on top of __name__.
2013-10-25 13:46:15 -04:00
Ned Deily 4b7a023149 Issue #19019: Change the OS X installer build script to use CFLAGS instead
of OPT for special build options.  By setting OPT, some compiler-specific
options like -fwrapv were overridden and thus not used, which could result
in broken interpreters when building with clang.
2013-10-25 00:46:02 -07:00
Ned Deily 5b3582c919 Issue #15663: Tcl/Tk 8.5.15 is now included with the OS X 10.6+
64-bit/32-bit installer for 10.6+.  It is no longer necessary
to install a third-party version of Tcl/Tk 8.5 to work around the
problems in the Apple-supplied Tcl/Tk 8.5 shipped in OS X 10.6
and later releases.
2013-10-25 00:41:46 -07:00
Ned Deily 65657c27fa Issue #1584: Provide options to override default search paths for Tcl and Tk
when building _tkinter.  configure has two new options; if used, both must
be specified:

  ./configure \
      --with-tcltk-includes="-I/opt/local/include" \
      --with-tcltk-libs="-L/opt/local/lib -ltcl8.5 -ltk8.5"

In addition, the options can be overridden with make:

   make \
       TCLTK_INCLUDES="-I/opt/local/include" \
       TCLTK_LIBS="-L/opt/local/lib -ltcl8.6 -ltk8.6"
2013-10-25 00:34:44 -07:00