]> granicus.if.org Git - python/log
python
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 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.

11 years agoIssue #17919: select.poll.poll() again works with poll.POLLNVAL on AIX.
Serhiy Storchaka [Fri, 13 Dec 2013 10:08:55 +0000 (12:08 +0200)]
Issue #17919: select.poll.poll() again works with poll.POLLNVAL on AIX.

11 years agoIssue #17919: select.poll.poll() again works with poll.POLLNVAL on AIX.
Serhiy Storchaka [Fri, 13 Dec 2013 10:08:01 +0000 (12:08 +0200)]
Issue #17919: select.poll.poll() again works with poll.POLLNVAL on AIX.

11 years agoasyncio: remove references to the Tulip project, rename Tulip to asyncio.
Victor Stinner [Fri, 13 Dec 2013 09:57:04 +0000 (10:57 +0100)]
asyncio: remove references to the Tulip project, rename Tulip to asyncio.
Patch written by Vajrasky Kok.

11 years agoBackout changeset 46393019b650
Victor Stinner [Fri, 13 Dec 2013 03:14:41 +0000 (04:14 +0100)]
Backout changeset 46393019b650

test_capi is failing and the fix is not trivial, I prefer to revert

11 years ago#19957: Simplify encode_7or8bit now that _payload is always str.
R David Murray [Fri, 13 Dec 2013 02:40:20 +0000 (21:40 -0500)]
#19957: Simplify encode_7or8bit now that _payload is always str.

Patch by Vajrasky Kok, test enhancement by me.

11 years agoClose #19787: PyThread_set_key_value() now always set the value. In Python 3.3,
Victor Stinner [Fri, 13 Dec 2013 02:22:00 +0000 (03:22 +0100)]
Close #19787: PyThread_set_key_value() now always set the value. In Python 3.3,
the function did nothing if the key already exists (if the current value is a
non-NULL pointer).

_testcapi.run_in_subinterp() now correctly sets the new Python thread state of
the current thread when a subinterpreter is created.

11 years agoIssue #19952: test_asyncio: relax timings of Windows events, buildbots are
Victor Stinner [Fri, 13 Dec 2013 01:45:18 +0000 (02:45 +0100)]
Issue #19952: test_asyncio: relax timings of Windows events, buildbots are
sometimes busy

11 years ago(Merge 3.3) Issue #14432: Fix compilation when thread support is disabled
Victor Stinner [Fri, 13 Dec 2013 01:32:37 +0000 (02:32 +0100)]
(Merge 3.3) Issue #14432: Fix compilation when thread support is disabled

11 years agoIssue #14432: Fix compilation when thread support is disabled
Victor Stinner [Fri, 13 Dec 2013 01:30:12 +0000 (02:30 +0100)]
Issue #14432: Fix compilation when thread support is disabled

11 years agoIssue #14432: Null merge 3.3, Python 3.4 has a different fix
Victor Stinner [Fri, 13 Dec 2013 01:18:41 +0000 (02:18 +0100)]
Issue #14432: Null merge 3.3, Python 3.4 has a different fix

11 years agoIssue #14432: Generator now clears the borrowed reference to the thread state
Victor Stinner [Fri, 13 Dec 2013 01:17:29 +0000 (02:17 +0100)]
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.

11 years agoIssue #14432: Remove the thread state field from the frame structure. Fix a
Victor Stinner [Fri, 13 Dec 2013 01:01:38 +0000 (02:01 +0100)]
Issue #14432: Remove the thread state field from the frame structure. 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.

11 years agoClose #19576: PyGILState_Ensure() now initializes threads. At startup, Python
Victor Stinner [Fri, 13 Dec 2013 00:46:43 +0000 (01:46 +0100)]
Close #19576: PyGILState_Ensure() now initializes threads. At startup, Python
has no concrete GIL. If PyGILState_Ensure() is called from a new thread for the
first time and PyEval_InitThreads() was not called yet, a GIL needs to be
created.

11 years agoIssue #19751: Fix hash_info test of test_sys on SPARC Solaris
Victor Stinner [Thu, 12 Dec 2013 22:07:40 +0000 (23:07 +0100)]
Issue #19751: Fix hash_info test of test_sys on SPARC Solaris

11 years agoIssue #19751: Fix typo in configuration option
Victor Stinner [Thu, 12 Dec 2013 22:06:07 +0000 (23:06 +0100)]
Issue #19751: Fix typo in configuration option

11 years agoMerge from 3.3.
Stefan Krah [Thu, 12 Dec 2013 18:05:08 +0000 (19:05 +0100)]
Merge from 3.3.

11 years agoDo not discard const qualifier without a reason.
Stefan Krah [Thu, 12 Dec 2013 17:51:51 +0000 (18:51 +0100)]
Do not discard const qualifier without a reason.

11 years agoMerge fix from 3.3
Zachary Ware [Thu, 12 Dec 2013 16:33:27 +0000 (10:33 -0600)]
Merge fix from 3.3

11 years agoAvoid UnicodeEncodeError by only printing ASCII.
Zachary Ware [Thu, 12 Dec 2013 16:32:16 +0000 (10:32 -0600)]
Avoid UnicodeEncodeError by only printing ASCII.

This fixes running test_decimal in verbose mode on Windows,
which I broke in issue #19572.

11 years agoAdd a sequence diagram for the chained coroutines example
Victor Stinner [Thu, 12 Dec 2013 11:35:17 +0000 (12:35 +0100)]
Add a sequence diagram for the chained coroutines example

11 years agoProperly filter some recent additions in the Windows build files.
Zachary Ware [Wed, 11 Dec 2013 23:21:13 +0000 (17:21 -0600)]
Properly filter some recent additions in the Windows build files.

11 years agoNull merge with 3.3.
Zachary Ware [Wed, 11 Dec 2013 23:18:37 +0000 (17:18 -0600)]
Null merge with 3.3.

There are enough new things to make the merge harder than making the
change in VS, and there are other things to add filters for in 3.4.

11 years agoFilter namespaceobject's files properly in the pythoncore VS project.
Zachary Ware [Wed, 11 Dec 2013 23:12:34 +0000 (17:12 -0600)]
Filter namespaceobject's files properly in the pythoncore VS project.

11 years agoIssue #19828: Merge with 3.3
Zachary Ware [Wed, 11 Dec 2013 23:01:21 +0000 (17:01 -0600)]
Issue #19828: Merge with 3.3

11 years agoIssue #19828: Fixed test_site when the whole suite is run with -S.
Zachary Ware [Wed, 11 Dec 2013 22:59:44 +0000 (16:59 -0600)]
Issue #19828: Fixed test_site when the whole suite is run with -S.

Also, cleaned up an unused import.

11 years ago#19063: fix set_payload handling of non-ASCII string input.
R David Murray [Wed, 11 Dec 2013 21:52:11 +0000 (16:52 -0500)]
#19063: fix set_payload handling of non-ASCII string input.

This version of the fix raises an error instead of accepting the invalid
input (ie: if a non-ASCII string is used but no charset is specified).

11 years agoNull merge for #19063 (3.4 fix is different).
R David Murray [Wed, 11 Dec 2013 21:48:52 +0000 (16:48 -0500)]
Null merge for #19063 (3.4 fix is different).

11 years ago#19063: partially fix set_payload handling of non-ASCII string input.
R David Murray [Wed, 11 Dec 2013 21:34:34 +0000 (16:34 -0500)]
#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.

11 years agoIssue #17576: Deprecation warning emitted now when __int__() or __index__()
Serhiy Storchaka [Wed, 11 Dec 2013 19:26:36 +0000 (21:26 +0200)]
Issue #17576: Deprecation warning emitted now when __int__() or __index__()
return not int instance.  Introduced _PyLong_FromNbInt() and refactored
PyLong_As*() functions.

11 years agoIssue #17576: Deprecation warning emitted now when __int__() or __index__()
Serhiy Storchaka [Wed, 11 Dec 2013 19:07:54 +0000 (21:07 +0200)]
Issue #17576: Deprecation warning emitted now when __int__() or __index__()
return not int instance.  Introduced _PyLong_FromNbInt() and refactored
PyLong_As*() functions.

11 years agoIssue #18864: Add a setter for ModuleSpec.has_location.
Eric Snow [Wed, 11 Dec 2013 05:16:41 +0000 (22:16 -0700)]
Issue #18864: Add a setter for ModuleSpec.has_location.

11 years agonull merge (3.4 doesn't need this fix)
Gregory P. Smith [Wed, 11 Dec 2013 02:26:02 +0000 (18:26 -0800)]
null merge (3.4 doesn't need this fix)