Commit Graph

15383 Commits

Author SHA1 Message Date
Brett Cannon f811bbfe6c Issue #6386: When executing a script that's a symlink, the directory
where the symlink resolves to is added to sys.path, not the directory
containing the symlink itself.

Thanks to Sanko Resic for an initial attempt at the patch.
2014-02-06 09:22:51 -05:00
Ronald Oussoren 94e44a935b Issue #14455: fix handling of unsigned long long values for binary plist files
Values in the range of an unsigned long long, but outside of the range
of a signed long long were serialized as a negative value.

Due to a bug in PyObjC my test scripts indicated that the previous behavior
matched Apple's plist code, instead the handle large unsigned values correctly.

The change to plistlib.py is from a patch by Serhiy.
2014-02-06 11:19:18 +01:00
Georg Brandl c81402527a Bump to 3.3.4 final 2014-02-09 08:43:05 +01:00
Serhiy Storchaka 255493c813 Issue #19920: TarFile.list() no longer fails when outputs a listing
containing non-encodable characters.  Added tests for TarFile.list().
Based on patch by Vajrasky Kok.
2014-02-05 20:54:43 +02:00
Serhiy Storchaka 3b4f1594ff Issue #19920: TarFile.list() no longer fails when outputs a listing
containing non-encodable characters.  Added tests for TarFile.list().
Based on patch by Vajrasky Kok.
2014-02-05 20:53:36 +02:00
Ned Deily 2aa15d8097 Issue #20465: Update SQLite shipped with OS X installer to 3.8.3. 2014-02-04 18:44:17 -08:00
Christian Heimes 25ff287dd7 Issue #20515: Fix NULL pointer dereference introduced by issue #20368
CID 1167595
2014-02-05 00:29:48 +01:00
Christian Heimes d33491ea76 Issue #20515: Fix NULL pointer dereference introduced by issue #20368
CID 1167595
2014-02-05 00:29:17 +01:00
Benjamin Peterson e9e8907647 merge 3.3 (#19186) 2014-02-04 10:12:18 -05:00
Benjamin Peterson 091d017ab1 restore namespacing of pyexpat symbols (closes #19186) 2014-02-04 10:10:55 -05:00
Nick Coghlan 6edd82a1d2 Close #20053: ignore default pip config settings
ensurepip now sets PIP_CONFIG_FILE to os.devnull before
import pip from the wheel file. This also ensures venv
ignores the default settings when bootstrapping pip.
2014-02-04 23:02:36 +10:00
Nick Coghlan a9b15241c6 Close #20404: blacklist non-text encodings in io.TextIOWrapper
- io.TextIOWrapper (and hence the open() builtin) now use the
  internal codec marking system added for issue #19619
- also tweaked the C code to only look up the encoding once,
  rather than multiple times
- the existing output type checks remain in place to deal with
  unmarked third party codecs.
2014-02-04 22:11:18 +10:00
Martin v. Löwis ca7b04644c Issue #17162: Add PyType_GetSlot. 2014-02-04 09:33:05 +01:00
Ned Deily cb306d1b59 Issue #20474: Fix "unexpected success" test_socket failures on OS X 10.7+. 2014-02-03 14:02:26 -08:00
Ned Deily c564038580 Issue #20474: Fix "unexpected success" test_socket failures on OS X 10.7+. 2014-02-03 13:58:31 -08:00
Antoine Pitrou c49672f25e Issue #20426: When passing the re.DEBUG flag, re.compile() displays the debug output every time it is called, regardless of the compilation cache. 2014-02-03 21:01:35 +01:00
Antoine Pitrou d2cc743ca4 Issue #20426: When passing the re.DEBUG flag, re.compile() displays the debug output every time it is called, regardless of the compilation cache. 2014-02-03 20:59:59 +01:00
Serhiy Storchaka ce591c2868 Issue #20368: The null character now correctly passed from Tcl to Python.
Improved error handling in variables-related commands.
2014-02-03 21:25:56 +02:00
Serhiy Storchaka 1317e14468 Issue #20368: The null character now correctly passed from Tcl to Python.
Improved error handling in variables-related commands.
2014-02-03 21:24:07 +02:00
Antoine Pitrou 1328e9d0a0 Issue #20435: Fix _pyio.StringIO.getvalue() to take into account newline translation settings. 2014-02-02 23:38:48 +01:00
Antoine Pitrou 57839a6349 Issue #20435: Fix _pyio.StringIO.getvalue() to take into account newline translation settings. 2014-02-02 23:37:29 +01:00
R David Murray a56d4e8ea1 whatsnew: hmac accepts more bytes types, importlib decode_source, stat in C. 2014-02-02 12:50:48 -05:00
Terry Jan Reedy 2315779c5e Update the python.gif icon for the Idle classbrowser and pathbowser
from the old green snake to the new new blue and yellow snakes.
2014-02-01 23:14:59 -05:00
Terry Jan Reedy c8d9e0e932 Update the python.gif icon for the Idle classbrowser and pathbowser
from the old green snake to the new new blue and yellow snakes.
2014-02-01 23:08:33 -05:00
Ezio Melotti 153d97b24e #20288: merge with 3.3. 2014-02-01 21:22:26 +02:00
Ezio Melotti f27b9a741a #20288: fix handling of invalid numeric charrefs in HTMLParser. 2014-02-01 21:21:01 +02:00
Larry Hastings 7726ac9163 #Issue 20456: Several improvements and bugfixes for Argument Clinic,
including correctly generating code for Clinic blocks inside C
preprocessor conditional blocks.
2014-01-31 22:03:12 -08:00
Victor Stinner 524be3056e tracemalloc: Fix slicing traces and fix slicing a traceback. 2014-02-01 04:07:02 +01:00
Victor Stinner 8f74a73ecb Issue #20354: Mention the fix in Misc/NEWS 2014-02-01 03:58:07 +01:00
Victor Stinner a17b6bb5fe Issue #20162: Fix an alignment issue in the siphash24() hash function which
caused a crash on PowerPC 64-bit (ppc64).
2014-02-01 03:38:56 +01:00
Brian Quinlan 6d300d672c Fix extra line added in 0bcf23a52d55 2014-02-01 12:07:54 +11:00
Brian Quinlan 2b754f49a5 Issue #20319: concurrent.futures.wait() can block forever even if Futures have completed 2014-02-01 11:49:04 +11:00
Yury Selivanov 63da7c7b0c inspect.signature: Support duck-types of Python functions (Cython, for instance) #17159 2014-01-31 14:48:37 -05:00
Yury Selivanov 4ded1f3553 NEWS: Add news item for #18801 2014-01-31 14:42:34 -05:00
Brett Cannon 1088d98899 The function name for cmath.isinf in PyArg_ParseTuple() was wrong. 2014-01-31 12:04:36 -05:00
Victor Stinner fcfb9461d3 Issue #20311, #20452: poll and epoll now round the timeout away from zero,
instead of rounding towards zero, in select and selectors modules:
select.epoll.poll(), selectors.PollSelector.poll() and
selectors.EpollSelector.poll(). For example, a timeout of one microsecond
(1e-6) is now rounded to one millisecondi (1e-3), instead of being rounded to
zero.

Mention the change in Misc/NEWS.
2014-01-31 13:02:44 +01:00
Gregory P. Smith 63a615cfa1 Remove issue 19081 Misc/NEWS entry since it isn't entirely fixed yet. 2014-01-29 23:02:49 -08:00
Gregory P. Smith 844dcfbf59 Remove issue 19081 Misc/NEWS entry since it isn't entirely fixed yet. 2014-01-29 22:59:34 -08:00
Guido van Rossum 9e3a60b7d7 More asyncio news. 2014-01-29 14:40:56 -08:00
Yury Selivanov d82eddcf05 inspect.getfullargspec: Use inspect.signature API behind the scenes #17481 2014-01-29 11:24:39 -05:00
Serhiy Storchaka 9f2e46de34 Issue #20424: Python implementation of io.StringIO now supports lone surrogates. 2014-01-29 11:45:31 +02:00
Serhiy Storchaka 61f5616348 Move Misc/NEWS entries committed after releasing 3.4.0b3 to correct places. 2014-01-29 11:44:25 +02:00
Serhiy Storchaka c92ea76f3f Issue #20424: Python implementation of io.StringIO now supports lone surrogates. 2014-01-29 11:33:26 +02:00
Larry Hastings 581ee3618c Issue #20326: Argument Clinic now uses a simple, unique signature to
annotate text signatures in docstrings, resulting in fewer false
positives.  "self" parameters are also explicitly marked, allowing
inspect.Signature() to authoritatively detect (and skip) said parameters.

Issue #20326: Argument Clinic now generates separate checksums for the
input and output sections of the block, allowing external tools to verify
that the input has not changed (and thus the output is not out-of-date).
2014-01-28 05:00:08 -08:00
Yury Selivanov 0adc955963 NEWS: Add few missing news items 2014-01-27 19:40:07 -05:00
Yury Selivanov e7dcc5e97a inspect.signature: Support classes without user-defined __init__/__new__ #20308 2014-01-27 19:29:45 -05:00
Serhiy Storchaka f5d2f22475 Issue #19456: ntpath.join() now joins relative paths correctly when a drive
is present.
2014-01-27 23:16:28 +02:00
Serhiy Storchaka c369c2c688 Issue #19456: ntpath.join() now joins relative paths correctly when a drive
is present.
2014-01-27 23:15:14 +02:00
Serhiy Storchaka a28632be56 Issue #19077: tempfile.TemporaryDirectory cleanup no longer fails when
called during shutdown.  Emitting resource warning in __del__ no longer fails.
Original patch by Antoine Pitrou.
2014-01-27 11:21:54 +02:00
Serhiy Storchaka 99e033b02e Issue #19077: tempfile.TemporaryDirectory cleanup is now most likely
successful when called during nulling out of modules during shutdown.
Misleading exception no longer raised when resource warning is emitted
during shutdown.
2014-01-27 11:18:27 +02:00
Victor Stinner b9915973f3 Issue #20367: Fix behavior of concurrent.futures.as_completed() for duplicate
arguments.  Patch by Glenn Langford.
2014-01-27 09:11:48 +01:00
Christian Heimes 2361216a1e I forgot to add a Misc/NEWS entry for issue #20394 2014-01-27 09:07:45 +01:00
Georg Brandl 87203d313d Post release update. 2014-01-27 08:35:20 +01:00
Larry Hastings 23105d8014 Merge. 2014-01-26 22:28:06 -08:00
Larry Hastings ee4cca6e33 Post-release bump for 3.4.0 beta 3. 2014-01-26 22:27:20 -08:00
Terry Jan Reedy 908669bdb3 Issue #17721: Remove non-functional configuration dialog help button until we
make it actually gives some help when clicked. Patch by Guilherme Simões.
2014-01-26 22:27:38 -05:00
Terry Jan Reedy 91d4278fba Issue #17721: Remove non-functional configuration dialog help button until we
make it actually gives some help when clicked. Patch by Guilherme Simões.
2014-01-26 22:24:26 -05:00
Victor Stinner 6834a65773 Issue #20367: Add Glenn Langford to Misc/ACKS 2014-01-26 23:33:49 +01:00
Serhiy Storchaka 62a85b54a3 Issue #19990: Added tests for the imghdr module.
Based on patch by Claudiu Popa.
2014-01-26 23:52:57 +02:00
Serhiy Storchaka 1ac00950b2 Issue #19990: Added tests for the imghdr module.
Based on patch by Claudiu Popa.
2014-01-26 23:48:38 +02:00
Guido van Rossum e6994ff6e3 Fix issue #20367: concurrent.futures.as_completed() for duplicate arguments.
Patch by Glenn Langford.
2014-01-26 09:57:51 -08:00
Serhiy Storchaka dbe0982bc5 Issue #8260: The read(), readline() and readlines() methods of
codecs.StreamReader returned incomplete data when were called after
readline() or read(size).  Based on patch by Amaury Forgeot d'Arc.
2014-01-26 19:27:56 +02:00
Serhiy Storchaka 8003850e22 Issue #8260: The read(), readline() and readlines() methods of
codecs.StreamReader returned incomplete data when were called after
readline() or read(size).  Based on patch by Amaury Forgeot d'Arc.
2014-01-26 19:21:00 +02:00
Nick Coghlan 77b286b2cc Close #20105: set __traceback__ when chaining exceptions in C 2014-01-27 00:53:38 +10:00
Larry Hastings 2d8e1e4f07 Version bump for 3.4.0b3. 2014-01-26 00:48:23 -08:00
Larry Hastings 23e37aa7b7 Issue #20358: Tests for curses.window.overlay and curses.window.overwrite
no longer specify min{row,col} > max{row,col}.
2014-01-25 22:19:47 -08:00
Larry Hastings f0537e8d1c Issue #20390: Final fix, for generating NoPositional/NoKeyword for __init__ calls. 2014-01-25 22:01:12 -08:00
Larry Hastings c20472640c Issue #20390: Small fixes and improvements for Argument Clinic. 2014-01-25 20:43:29 -08:00
Guido van Rossum d6fb2c7629 NEWS update for asyncio. 2014-01-25 17:30:19 -08:00
Eric Snow 6029e08691 Issue 19944: Fix importlib.find_spec() so it imports parents as needed.
The function is also moved to importlib.util.
2014-01-25 15:32:46 -07:00
Victor Stinner f67255ab94 Issue #20311: asyncio: Add a granularity attribute to BaseEventLoop: maximum
between the resolution of the BaseEventLoop.time() method and the resolution of
the selector. The granuarility is used in the scheduler to round time and
deadline.
2014-01-25 15:01:33 +01:00
Victor Stinner 635fca9704 Issue #20311: selectors: Add a resolution attribute to BaseSelector. 2014-01-25 14:56:48 +01:00
Victor Stinner 2041859f27 Issue #20311: Revert e042ea77a152 and 7ce7295393c2, PollSelector.select() and
EpollSelector.select() round again the timeout towards zero
2014-01-25 14:43:45 +01:00
Victor Stinner 38c72bd199 (Merge 3.3) Issue #20311: Revert 033137c12d88 (02f9db3e684e),
select.epoll.poll() rounds again the timeout towards zero
2014-01-25 14:40:04 +01:00
Victor Stinner 933209689e Issue #20311: Revert 033137c12d88, select.epoll.poll() rounds again the timeout
towards zero
2014-01-25 14:37:50 +01:00
Zachary Ware 9d7849f454 Issue #20376: Argument Clinic now escapes backslashes in docstrings. 2014-01-25 03:26:20 -06:00
Georg Brandl 18f2ce9e7d Bump to 3.3.4rc1. 2014-01-25 09:19:50 +01:00
Georg Brandl 381c280815 #20311: revert changes to 3.3 branch for now until experts have decided how to resolve the issue. 2014-01-25 09:11:13 +01:00
Georg Brandl c11435399e #16042: CVE-2013-1752: smtplib fix for unlimited readline() from socket 2014-01-25 09:02:18 +01:00
Zachary Ware 021bb87845 Issue #20381: Fix sanity checking on default arguments when c_default is
also specified.
2014-01-24 22:52:30 -06:00
Larry Hastings 5c66189e88 Issue #20189: Four additional builtin types (PyTypeObject,
PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type)
have been modified to provide introspection information for builtins.
Also: many additional Lib, test suite, and Argument Clinic fixes.
2014-01-24 06:17:25 -08:00
Benjamin Peterson 8f81c3cf3f merge 3.3 (#20374) 2014-01-24 00:33:25 -05:00
Benjamin Peterson 5f6bf55965 use new readline function types (closes #20374) 2014-01-24 00:32:12 -05:00
Terry Jan Reedy 8860443749 Merge with 3.3 2014-01-23 00:39:11 -05:00
Terry Jan Reedy 94338de49b Issue #17390: Add Python version to Idle editor window title bar.
Original patches by Edmond Burnett and Kent Johnson.
2014-01-23 00:36:46 -05:00
Nick Coghlan d58831e688 Merge #20317 from 3.3 2014-01-22 23:04:37 +10:00
Nick Coghlan 09761e7c9c Issue #20317: Don't create a reference loop in ExitStack 2014-01-22 22:24:46 +10:00
Florent Xicluna 45e124e26d Issue #17825: Cursor ^ is correctly positioned for SyntaxError and IndentationError. 2014-01-22 01:16:25 +01:00
Florent Xicluna 758fa5ea81 Issue #17825: Cursor ^ is correctly positioned for SyntaxError and IndentationError. 2014-01-22 01:11:43 +01:00
Serhiy Storchaka 2bd59daf58 Issue #2382: SyntaxError cursor "^" now is written at correct position in most
cases when multibyte characters are in line (before "^").  This still not
works correctly with wide East Asian characters.
2014-01-21 22:29:47 +02:00
Serhiy Storchaka 65fd0592fb Issue #2382: SyntaxError cursor "^" now is written at correct position in most
cases when multibyte characters are in line (before "^").  This still not
works correctly with wide East Asian characters.
2014-01-21 22:26:52 +02:00
Victor Stinner 11da8e24ba Issue #20311: selector.PollSelector.select() now rounds the timeout away from
zero, instead of rounding towards zero. For example, a timeout of one
microsecond is now rounded to one millisecond, instead of being rounded to
zero.

Move also a test in test_epoll which was moved by my previous merge.
2014-01-21 01:48:28 +01:00
Victor Stinner 09354fd606 (Merge 3.3) Issue #20311: select.epoll.poll() now rounds the timeout away from
zero, instead of rounding towards zero. For example, a timeout of one
microsecond is now rounded to one millisecond, instead of being rounded to
zero.
2014-01-21 01:42:11 +01:00
Victor Stinner 665486e0e7 Issue #20311: select.epoll.poll() now rounds the timeout away from zero,
instead of rounding towards zero. For example, a timeout of one microsecond is
now rounded to one millisecond, instead of being rounded to zero.
2014-01-21 01:41:00 +01:00
Serhiy Storchaka c46d1faa4a Issue #20262: Warnings are raised now when duplicate names are added in the
ZIP file or too long ZIP file comment is truncated.
2014-01-20 21:59:33 +02:00
Serhiy Storchaka 9b7a1a1af6 Issue #20262: Warnings are raised now when duplicate names are added in the
ZIP file or too long ZIP file comment is truncated.
2014-01-20 21:57:40 +02:00
Stefan Krah 34e4628453 Merge from 3.3. 2014-01-20 15:35:38 +01:00
Stefan Krah 6c01e38677 Issue #19036: Including locale.h should not depend on HAVE_LANGINFO_H. 2014-01-20 15:31:08 +01:00
Gregory P. Smith 5a6d4bf671 Fixes Issue #20165: The unittest module no longer considers tests marked with
@expectedFailure successful if they pass.
2014-01-20 01:11:18 -08:00
Larry Hastings b7ccb20423 Issue #20294: Argument Clinic now supports argument parsing for __new__ and
__init__ functions.
2014-01-18 23:50:21 -08:00