]> granicus.if.org Git - python/log
python
11 years agoRemove some dead code in importlib, introduced with the PEP 451 patch.
Eric Snow [Thu, 19 Dec 2013 06:35:15 +0000 (23:35 -0700)]
Remove some dead code in importlib, introduced with the PEP 451 patch.

Early in the PEP 451 implementation some of the importlib loaders had
their own _get_spec() methods to simplify accommodating them.  However,
later implementations removed the need.  They simply failed to remove
this code at the same time. :)

11 years agomerge 3.3 (#20018)
Benjamin Peterson [Wed, 18 Dec 2013 21:37:03 +0000 (15:37 -0600)]
merge 3.3 (#20018)

11 years agoupdate url to spec (closes #20018)
Benjamin Peterson [Wed, 18 Dec 2013 21:35:18 +0000 (15:35 -0600)]
update url to spec (closes #20018)

11 years agoremove trailing spaces
Gregory P. Smith [Wed, 18 Dec 2013 19:27:21 +0000 (11:27 -0800)]
remove trailing spaces

11 years agoremove trailing spaces.
Gregory P. Smith [Wed, 18 Dec 2013 19:27:05 +0000 (11:27 -0800)]
remove trailing spaces.

11 years agoCloses #20005: Fix typo in operator docs. Patch by Claudiu Popa.
Zachary Ware [Wed, 18 Dec 2013 18:22:35 +0000 (12:22 -0600)]
Closes #20005: Fix typo in operator docs.  Patch by Claudiu Popa.

11 years agoIssue #20005: Fix typo in operator docs. Patch by Claudiu Popa.
Zachary Ware [Wed, 18 Dec 2013 18:21:49 +0000 (12:21 -0600)]
Issue #20005: Fix typo in operator docs.  Patch by Claudiu Popa.

11 years agoIssue #19492: Silently skipped distutils tests now reported as skipped.
Serhiy Storchaka [Wed, 18 Dec 2013 14:45:24 +0000 (16:45 +0200)]
Issue #19492: Silently skipped distutils tests now reported as skipped.

11 years agoIssue #19492: Silently skipped distutils tests now reported as skipped.
Serhiy Storchaka [Wed, 18 Dec 2013 14:41:01 +0000 (16:41 +0200)]
Issue #19492: Silently skipped distutils tests now reported as skipped.

11 years agoMerge: #19855: uuid.get_node now looks on the PATH for executables on unix.
R David Murray [Wed, 18 Dec 2013 02:14:41 +0000 (21:14 -0500)]
Merge: #19855: uuid.get_node now looks on the PATH for executables on unix.

11 years ago#19855: uuid.get_node now looks on the PATH for executables on unix.
R David Murray [Wed, 18 Dec 2013 02:13:16 +0000 (21:13 -0500)]
#19855: uuid.get_node now looks on the PATH for executables on unix.

Patch by Serhiy Storchaka.

11 years agoIssue #20006: Fix sporadic failures in test_weakset.
Antoine Pitrou [Tue, 17 Dec 2013 23:32:02 +0000 (00:32 +0100)]
Issue #20006: Fix sporadic failures in test_weakset.

11 years agoIssue #20006: Fix sporadic failures in test_weakset.
Antoine Pitrou [Tue, 17 Dec 2013 23:28:36 +0000 (00:28 +0100)]
Issue #20006: Fix sporadic failures in test_weakset.

11 years agoRevert misled test change in f189da5bda26.
Antoine Pitrou [Tue, 17 Dec 2013 23:29:30 +0000 (00:29 +0100)]
Revert misled test change in f189da5bda26.

11 years agoIssue #20007: HTTPResponse.read(0) no more prematurely closes connection.
Serhiy Storchaka [Tue, 17 Dec 2013 19:51:40 +0000 (21:51 +0200)]
Issue #20007: HTTPResponse.read(0) no more prematurely closes connection.
Original patch by Simon Sapin.

11 years agoIssue #20007: HTTPResponse.read(0) no more prematurely closes connection.
Serhiy Storchaka [Tue, 17 Dec 2013 19:50:02 +0000 (21:50 +0200)]
Issue #20007: HTTPResponse.read(0) no more prematurely closes connection.
Original patch by Simon Sapin.

11 years agoIssue #16404: Add checks for return value of PyLong_FromLong() in
Serhiy Storchaka [Tue, 17 Dec 2013 13:12:46 +0000 (15:12 +0200)]
Issue #16404: Add checks for return value of PyLong_FromLong() in
sys.getwindowsversion() and ossaudiodev.setparameters().
Reported by Ned Batchelder.

11 years agoIssue #16404: Add checks for return value of PyLong_FromLong() in
Serhiy Storchaka [Tue, 17 Dec 2013 13:11:24 +0000 (15:11 +0200)]
Issue #16404: Add checks for return value of PyLong_FromLong() in
sys.getwindowsversion() and ossaudiodev.setparameters().
Reported by Ned Batchelder.

11 years agoFixed leak in sys.flags initialization.
Serhiy Storchaka [Tue, 17 Dec 2013 13:00:53 +0000 (15:00 +0200)]
Fixed leak in sys.flags initialization.

11 years agoFixed leak in sys.flags initialization.
Serhiy Storchaka [Tue, 17 Dec 2013 12:59:42 +0000 (14:59 +0200)]
Fixed leak in sys.flags initialization.

11 years agoClose #19946: use runpy as needed in multiprocessing
Nick Coghlan [Tue, 17 Dec 2013 12:17:26 +0000 (22:17 +1000)]
Close #19946: use runpy as needed in multiprocessing

- handles main files without a suffix
- handles main submodules properly
- adds test cases for the various kinds of __main__

11 years agoIssue #19713: Fix mistakes in the import page of language reference.
Eric Snow [Tue, 17 Dec 2013 06:10:50 +0000 (23:10 -0700)]
Issue #19713: Fix mistakes in the import page of language reference.

These mistakes were introduced by the initial PEP 451 merge.

11 years agoIssue #19713: Update importlib docs for module spec changes, including deprecations.
Eric Snow [Tue, 17 Dec 2013 06:06:52 +0000 (23:06 -0700)]
Issue #19713: Update importlib docs for module spec changes, including deprecations.

11 years agoIssue #20001: Add the SVG source of the pathlib-inheritance diagram to Hg
Eli Bendersky [Tue, 17 Dec 2013 05:13:40 +0000 (21:13 -0800)]
Issue #20001: Add the SVG source of the pathlib-inheritance diagram to Hg

11 years agoBackout a1a05e2724dd: shutil.which(bytes) is a new feature and my patch does not...
Victor Stinner [Mon, 16 Dec 2013 22:39:40 +0000 (23:39 +0100)]
Backout a1a05e2724dd: shutil.which(bytes) is a new feature and my patch does not work on Windows

11 years agotracemalloc: fix usage of strtol(), value can be LONG_MIN or LONG_MAX on ERANGE
Victor Stinner [Mon, 16 Dec 2013 22:06:19 +0000 (23:06 +0100)]
tracemalloc: fix usage of strtol(), value can be LONG_MIN or LONG_MAX on ERANGE

11 years agotracemalloc: only use unsigned types to compute hash
Victor Stinner [Mon, 16 Dec 2013 22:05:13 +0000 (23:05 +0100)]
tracemalloc: only use unsigned types to compute hash

Commit to simplify the backport to python 2.7 and to make the code more
consistent.

11 years agoIssue #18283: shutil.which() now supports bytes argument, not only text argument.
Victor Stinner [Mon, 16 Dec 2013 21:48:48 +0000 (22:48 +0100)]
Issue #18283: shutil.which() now supports bytes argument, not only text argument.

11 years ago(Merge 3.3) Close #19999: tolerate coarse time when testing time.monotonic() on
Victor Stinner [Mon, 16 Dec 2013 21:38:46 +0000 (22:38 +0100)]
(Merge 3.3) Close #19999: tolerate coarse time when testing time.monotonic() on
very busy/slow buildbot

11 years agoClose #19999: tolerate coarse time when testing time.monotonic() on very
Victor Stinner [Mon, 16 Dec 2013 21:36:50 +0000 (22:36 +0100)]
Close #19999: tolerate coarse time when testing time.monotonic() on very
busy/slow buildbot

11 years agomerge
Christian Heimes [Mon, 16 Dec 2013 20:17:02 +0000 (21:17 +0100)]
merge

11 years agoIssue #19919: Fix flacky SSL test. connect_ex() sometimes returns
Christian Heimes [Mon, 16 Dec 2013 20:16:45 +0000 (21:16 +0100)]
Issue #19919: Fix flacky SSL test. connect_ex() sometimes returns
EWOULDBLOCK on Windows or VMs hosted on Windows.

11 years agoIssue #19919: Fix flacky SSL test. connect_ex() sometimes returns
Christian Heimes [Mon, 16 Dec 2013 20:15:44 +0000 (21:15 +0100)]
Issue #19919: Fix flacky SSL test. connect_ex() sometimes returns
EWOULDBLOCK on Windows or VMs hosted on Windows.

11 years agoMention specific exceptions instead of OSError where appropriate.
Antoine Pitrou [Mon, 16 Dec 2013 20:00:53 +0000 (21:00 +0100)]
Mention specific exceptions instead of OSError where appropriate.

11 years agoIssue #19921: When Path.mkdir() is called with parents=True, any missing parent is...
Antoine Pitrou [Mon, 16 Dec 2013 19:22:37 +0000 (20:22 +0100)]
Issue #19921: When Path.mkdir() is called with parents=True, any missing parent is created with the default permissions, ignoring the mode argument (mimicking the POSIX "mkdir -p" command).

Patch by Serhiy.

11 years agoIssue #19887: Improve the Path.resolve() algorithm to support certain symlink chains.
Antoine Pitrou [Mon, 16 Dec 2013 18:57:41 +0000 (19:57 +0100)]
Issue #19887: Improve the Path.resolve() algorithm to support certain symlink chains.

Original patch by Serhiy.

11 years agoIssue #19987: Merge with 3.3
Zachary Ware [Mon, 16 Dec 2013 15:05:44 +0000 (09:05 -0600)]
Issue #19987: Merge with 3.3

11 years agoIssue #19987: Re-write test_alias_fallback in test_winsound to have two
Zachary Ware [Mon, 16 Dec 2013 15:02:41 +0000 (09:02 -0600)]
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.

11 years agoIssue #19987: disable test_winsound's test_alias_fallback test when no sound card
Christian Heimes [Mon, 16 Dec 2013 13:54:24 +0000 (14:54 +0100)]
Issue #19987: disable test_winsound's test_alias_fallback test when no sound card
is available. The test fails on Windows Server 2008.

11 years agomerge
Christian Heimes [Mon, 16 Dec 2013 13:35:58 +0000 (14:35 +0100)]
merge

11 years agoIssue #18215: Add script Tools/ssl/test_multiple_versions.py to compile and
Christian Heimes [Mon, 16 Dec 2013 13:35:39 +0000 (14:35 +0100)]
Issue #18215: Add script Tools/ssl/test_multiple_versions.py to compile and
run Python's unit tests with multiple versions of OpenSSL.

11 years agoNull merge
Serhiy Storchaka [Mon, 16 Dec 2013 13:17:33 +0000 (15:17 +0200)]
Null merge

11 years agoMerge heads
Serhiy Storchaka [Mon, 16 Dec 2013 13:17:13 +0000 (15:17 +0200)]
Merge heads

11 years agoMerge heads
Serhiy Storchaka [Mon, 16 Dec 2013 13:16:35 +0000 (15:16 +0200)]
Merge heads

11 years agoIssue #19912: Fixed numerous bugs in ntpath.splitunc().
Serhiy Storchaka [Mon, 16 Dec 2013 13:14:19 +0000 (15:14 +0200)]
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().

11 years agoIssue #19912: Fixed numerous bugs in ntpath.splitunc().
Serhiy Storchaka [Mon, 16 Dec 2013 13:13:28 +0000 (15:13 +0200)]
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().

11 years agoMere.
Charles-François Natali [Mon, 16 Dec 2013 12:49:56 +0000 (13:49 +0100)]
Mere.

11 years agoMerge.
Charles-François Natali [Mon, 16 Dec 2013 12:49:38 +0000 (13:49 +0100)]
Merge.

11 years agoMerge.
Charles-François Natali [Mon, 16 Dec 2013 12:49:30 +0000 (13:49 +0100)]
Merge.

11 years agoMerge.
Charles-François Natali [Mon, 16 Dec 2013 12:49:19 +0000 (13:49 +0100)]
Merge.

11 years agoIssue #19911: ntpath.splitdrive() now correctly processes the 'İ' character
Serhiy Storchaka [Mon, 16 Dec 2013 12:36:10 +0000 (14:36 +0200)]
Issue #19911: ntpath.splitdrive() now correctly processes the 'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).

11 years agoIssue #19911: ntpath.splitdrive() now correctly processes the 'İ' character
Serhiy Storchaka [Mon, 16 Dec 2013 12:34:55 +0000 (14:34 +0200)]
Issue #19911: ntpath.splitdrive() now correctly processes the 'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).

11 years agoIssue #17919: add missing import of USHRT_MAX
Christian Heimes [Mon, 16 Dec 2013 12:28:20 +0000 (13:28 +0100)]
Issue #17919: add missing import of USHRT_MAX

11 years agoIssue #17919: add missing import of USHRT_MAX
Christian Heimes [Mon, 16 Dec 2013 12:27:16 +0000 (13:27 +0100)]
Issue #17919: add missing import of USHRT_MAX

11 years agoMerge.
Charles-François Natali [Mon, 16 Dec 2013 11:03:05 +0000 (12:03 +0100)]
Merge.

11 years agoMerge.
Charles-François Natali [Mon, 16 Dec 2013 11:02:42 +0000 (12:02 +0100)]
Merge.

11 years agoMerge: #19532: make compileall with no file/dir args respect -f and -q.
R David Murray [Mon, 16 Dec 2013 01:56:00 +0000 (20:56 -0500)]
Merge: #19532: make compileall with no file/dir args respect -f and -q.

11 years ago#19532: make compileall with no file/dir args respect -f and -q.
R David Murray [Mon, 16 Dec 2013 01:49:38 +0000 (20:49 -0500)]
#19532: make compileall with no file/dir args respect -f and -q.

Patch by Vajrasky Kok.

11 years agotest_ssl: skip tests when SNI is not available
Christian Heimes [Sun, 15 Dec 2013 20:49:17 +0000 (21:49 +0100)]
test_ssl: skip tests when SNI is not available

11 years agotest_poplib: skip stls_context test when SNI is not available
Christian Heimes [Sun, 15 Dec 2013 20:44:43 +0000 (21:44 +0100)]
test_poplib: skip stls_context test when SNI is not available

11 years agoMerge.
Stefan Krah [Sun, 15 Dec 2013 20:02:28 +0000 (21:02 +0100)]
Merge.

11 years agoMinor code clean-up. Keep the C-API all in one section.
Raymond Hettinger [Sun, 15 Dec 2013 19:56:14 +0000 (11:56 -0800)]
Minor code clean-up.  Keep the C-API all in one section.

11 years agoMerge from 3.3.
Stefan Krah [Sun, 15 Dec 2013 19:52:08 +0000 (20:52 +0100)]
Merge from 3.3.

11 years agoIssue #19986: Avoid an incorrect warning of older gcc versions.
Stefan Krah [Sun, 15 Dec 2013 19:45:08 +0000 (20:45 +0100)]
Issue #19986: Avoid an incorrect warning of older gcc versions.

11 years agofixed test_ftplib
Christian Heimes [Sun, 15 Dec 2013 18:50:13 +0000 (19:50 +0100)]
fixed test_ftplib

11 years agotest_imaplib: skip check_hostname test when SNI is not available
Christian Heimes [Sun, 15 Dec 2013 18:39:32 +0000 (19:39 +0100)]
test_imaplib: skip check_hostname test when SNI is not available

11 years agotest_ftplib: skip check_hostname test when SNI is not available
Christian Heimes [Sun, 15 Dec 2013 18:38:22 +0000 (19:38 +0100)]
test_ftplib: skip check_hostname test when SNI is not available

11 years agoIssue #19965: Make sure that Python-ast.h is properly taken into account in the
Charles-François Natali [Sun, 15 Dec 2013 18:12:52 +0000 (19:12 +0100)]
Issue #19965: Make sure that Python-ast.h is properly taken into account in the
makefile.

11 years agoMerge.
Charles-François Natali [Sun, 15 Dec 2013 18:12:07 +0000 (19:12 +0100)]
Merge.

11 years agoIssue #19965: Make sure that Python-ast.h is properly taken into account in the
Charles-François Natali [Sun, 15 Dec 2013 18:09:00 +0000 (19:09 +0100)]
Issue #19965: Make sure that Python-ast.h is properly taken into account in the
makefile.

11 years agoSkip some tests that require server name indication (SNI)
Christian Heimes [Sun, 15 Dec 2013 16:02:36 +0000 (17:02 +0100)]
Skip some tests that require server name indication (SNI)

11 years agoImport USHRT_MAX to fix failing test_devpool test
Christian Heimes [Sun, 15 Dec 2013 14:36:20 +0000 (15:36 +0100)]
Import USHRT_MAX to fix failing test_devpool test

11 years agoIssue #19700: set __spec__ appropriately in runpy
Nick Coghlan [Sun, 15 Dec 2013 10:33:02 +0000 (20:33 +1000)]
Issue #19700: set __spec__ appropriately in runpy

Note that __spec__.name is not currently guaranteed to be in
sys.modules when the code is running, only __name__ is.

The "running module is in sys.modules" invariant will be
expanded to also cover __spec__.name in a subsequent patch.

11 years agoNull merge
Serhiy Storchaka [Sat, 14 Dec 2013 19:07:51 +0000 (21:07 +0200)]
Null merge

11 years agoIssue #17576: Removed deprecation warnings added in changeset 618cca51a27e.
Serhiy Storchaka [Sat, 14 Dec 2013 19:07:09 +0000 (21:07 +0200)]
Issue #17576: Removed deprecation warnings added in changeset 618cca51a27e.

11 years agoIssue #19623: Fixed writing to unseekable files in the aifc module.
Serhiy Storchaka [Sat, 14 Dec 2013 18:42:22 +0000 (20:42 +0200)]
Issue #19623: Fixed writing to unseekable files in the aifc module.

11 years agoIssue #19623: Fixed writing to unseekable files in the aifc module.
Serhiy Storchaka [Sat, 14 Dec 2013 18:35:04 +0000 (20:35 +0200)]
Issue #19623: Fixed writing to unseekable files in the aifc module.

11 years agoIssue #17919: Fixed integer overflow in the eventmask parameter.
Serhiy Storchaka [Sat, 14 Dec 2013 17:18:39 +0000 (19:18 +0200)]
Issue #17919: Fixed integer overflow in the eventmask parameter.

11 years agoIssue #17919: Fixed integer overflow in the eventmask parameter.
Serhiy Storchaka [Sat, 14 Dec 2013 17:12:02 +0000 (19:12 +0200)]
Issue #17919: Fixed integer overflow in the eventmask parameter.

11 years ago#19970: fix additional typo in 3.4 asyncio docs.
R David Murray [Sat, 14 Dec 2013 16:26:06 +0000 (11:26 -0500)]
#19970: fix additional typo in 3.4 asyncio docs.

11 years agoIssue #19972: Add rarely used freefunc. This fixes a leak if sys.exit()
Stefan Krah [Sat, 14 Dec 2013 12:43:10 +0000 (13:43 +0100)]
Issue #19972: Add rarely used freefunc.  This fixes a leak if sys.exit()
is used in a program.

11 years agoMerge from 3.3.
Stefan Krah [Sat, 14 Dec 2013 11:58:59 +0000 (12:58 +0100)]
Merge from 3.3.

11 years agoFix C++ header usage. This __STDC_LIMIT_MACROS scheme can still be subverted
Stefan Krah [Sat, 14 Dec 2013 11:58:09 +0000 (12:58 +0100)]
Fix C++ header usage.  This __STDC_LIMIT_MACROS scheme can still be subverted
by including stdint.h before mpdecimal.h.  In that case the only option left
is to compile with -D_STDC_LIMIT_MACROS.

11 years ago#19981: merge with 3.3.
Ezio Melotti [Sat, 14 Dec 2013 10:43:08 +0000 (12:43 +0200)]
#19981: merge with 3.3.

11 years ago#19981: fix typo in email.mailbox docs. Patch by Claudiu Popa.
Ezio Melotti [Sat, 14 Dec 2013 10:42:29 +0000 (12:42 +0200)]
#19981: fix typo in email.mailbox docs.  Patch by Claudiu Popa.

11 years agoMerge: #19970: Fix some comment typos.
R David Murray [Sat, 14 Dec 2013 01:53:26 +0000 (20:53 -0500)]
Merge: #19970: Fix some comment typos.

11 years ago#19970: Fix some comment typos.
R David Murray [Sat, 14 Dec 2013 01:52:19 +0000 (20:52 -0500)]
#19970: Fix some comment typos.

Report and patch by Vajrasky Kok.

11 years ago#19975: remove unused imports from webbrowser module.
R David Murray [Fri, 13 Dec 2013 22:21:42 +0000 (17:21 -0500)]
#19975: remove unused imports from webbrowser module.

Report and patch by Claudiu Popa.

11 years agoIssue #19704: Port test.test_threaded_import to PEP 451
Brett Cannon [Fri, 13 Dec 2013 21:47:19 +0000 (16:47 -0500)]
Issue #19704: Port test.test_threaded_import to PEP 451

11 years agomerge for issue #19963
Brett Cannon [Fri, 13 Dec 2013 18:58:47 +0000 (13:58 -0500)]
merge for issue #19963

11 years agoIssue #19963: Document that importlib.import_module() will import
Brett Cannon [Fri, 13 Dec 2013 18:57:41 +0000 (13:57 -0500)]
Issue #19963: Document that importlib.import_module() will import
parent packages automatically.

11 years agoMerge: #18036: update .pyc FAQ entry in light of PEP 3147.
R David Murray [Fri, 13 Dec 2013 17:30:29 +0000 (12:30 -0500)]
Merge: #18036: update .pyc FAQ entry in light of PEP 3147.

11 years ago#18036: update .pyc FAQ entry in light of PEP 3147.
R David Murray [Fri, 13 Dec 2013 17:29:29 +0000 (12:29 -0500)]
#18036: update .pyc FAQ entry in light of PEP 3147.

Initial patch by Phil Connell.

11 years agoIssue #19946: Raise ImportError when the main module cannot be found
Brett Cannon [Fri, 13 Dec 2013 16:43:10 +0000 (11:43 -0500)]
Issue #19946: Raise ImportError when the main module cannot be found
by multiprocessing.spawn (before it was raising an AttributeError).

11 years agoIssue #14432: Document the removal of the PyFrameObject.f_tstate field
Victor Stinner [Fri, 13 Dec 2013 13:33:01 +0000 (14:33 +0100)]
Issue #14432: Document the removal of the PyFrameObject.f_tstate field

11 years agoasyncio doc: explain where does the task come from.
Victor Stinner [Fri, 13 Dec 2013 11:51:24 +0000 (12:51 +0100)]
asyncio doc: explain where does the task come from.

11 years agoasyncio doc: change style of the sequence diagram to focus on the control flow
Victor Stinner [Fri, 13 Dec 2013 11:47:39 +0000 (12:47 +0100)]
asyncio doc: change style of the sequence diagram to focus on the control flow

11 years ago(Merge 3.3) Issue #19969: PyBytes_FromFormatV() now raises an OverflowError if
Victor Stinner [Fri, 13 Dec 2013 11:15:31 +0000 (12:15 +0100)]
(Merge 3.3) Issue #19969: PyBytes_FromFormatV() now raises an OverflowError if
"%c" argument is not in range [0; 255].

11 years agoIssue #19969: PyBytes_FromFormatV() now raises an OverflowError if "%c"
Victor Stinner [Fri, 13 Dec 2013 11:14:44 +0000 (12:14 +0100)]
Issue #19969: PyBytes_FromFormatV() now raises an OverflowError if "%c"
argument is not in range [0; 255].

11 years agoIssue #19787: PyThread_set_key_value() now always set the value
Victor Stinner [Fri, 13 Dec 2013 10:08:56 +0000 (11:08 +0100)]
Issue #19787: PyThread_set_key_value() now always set the value

In Python 3.3, PyThread_set_key_value() did nothing if the key already exists
(if the current value is a non-NULL pointer).

When _PyGILState_NoteThreadState() is called twice on the same thread with a
different Python thread state, it still keeps the old Python thread state to
keep the old behaviour. Replacing the Python thread state with the new state
introduces new bugs: see issues #10915 and #15751.