]> granicus.if.org Git - python/log
python
7 years agobpo-29928: Add f-string to the Glossary (GH-864) (GH-914)
Mariatta [Thu, 30 Mar 2017 19:27:19 +0000 (12:27 -0700)]
bpo-29928: Add f-string to the Glossary (GH-864) (GH-914)

(cherry picked from commit 33db068dac7686e37736f7ecf8abb2aee0345cf2)

7 years agobpo-29935: Fixed error messages in the index() method of tuple, list and deque (...
Serhiy Storchaka [Thu, 30 Mar 2017 16:46:59 +0000 (19:46 +0300)]
bpo-29935: Fixed error messages in the index() method of tuple, list and deque (#887) (#907)

when pass indices of wrong type.
(cherry picked from commit d4edfc9abffca965e76ebc5957a92031a4d6c4d4)

7 years agobpo-27863: Fixed multiple crashes in ElementTree. (#765) (#903)
Serhiy Storchaka [Thu, 30 Mar 2017 15:08:21 +0000 (18:08 +0300)]
bpo-27863: Fixed multiple crashes in ElementTree. (#765) (#903)

(cherry picked from commit 576def096ec7b64814e038f03290031f172886c3)

7 years agoRemove an unrequired TODO in test_urllib2. (#897) (#900)
Senthil Kumaran [Thu, 30 Mar 2017 06:56:52 +0000 (23:56 -0700)]
Remove an unrequired TODO in test_urllib2. (#897) (#900)

(cherry picked from commit e6911a44f69c0d302db60f49952a9cf69da69a2b)

7 years agobpo-29917: DOC: Remove link from PyMethodDef (#890) (#894)
Senthil Kumaran [Thu, 30 Mar 2017 05:29:00 +0000 (22:29 -0700)]
bpo-29917: DOC: Remove link from PyMethodDef (#890) (#894)

(cherry picked from commit c3c7ef088583cc12bd218138036d1edb6de9c63f)

7 years agobpo-29677: DOC: clarify documentation for `round` (GH-877) (GH-892)
Mariatta [Thu, 30 Mar 2017 02:10:07 +0000 (19:10 -0700)]
bpo-29677: DOC: clarify documentation for `round` (GH-877) (GH-892)

(cherry picked from commit 85deefcf61d3cc192846f41a4ccc6df17da60c98)

7 years agobpo-28699: fix abnormal behaviour of pools in multiprocessing.pool (GH-882)
Xiang Zhang [Wed, 29 Mar 2017 04:50:28 +0000 (12:50 +0800)]
bpo-28699: fix abnormal behaviour of pools in multiprocessing.pool (GH-882)

an exception raised at the very first of an iterable would cause pools behave abnormally
(swallow the exception or hang)

7 years agobpo-16011: clarify that 'in' always returns a boolean value (GH-874)
Mariatta [Tue, 28 Mar 2017 16:33:54 +0000 (09:33 -0700)]
bpo-16011: clarify that 'in' always returns a boolean value (GH-874)

(cherry picked from commit 0ae7c8bd614d3aa1fcaf2d71a10ff1148c80d9b5)

7 years agobpo-29643: Fix check for --enable-optimizations (GH-869)
INADA Naoki [Tue, 28 Mar 2017 15:25:26 +0000 (00:25 +0900)]
bpo-29643: Fix check for --enable-optimizations (GH-869)

The presence of the ``--enable-optimizations`` flag is indicated by the
value of ``$enableval``, but the configure script was checking ``$withval``,
resulting in the ``--enable-optimizations`` flag being effectively ignored.
(cherry picked from commit 8cea5929f52801b0ce5928b46ef836e99a24321a)

7 years agobpo-29677: DOC: clarify documentation for `round` (GH-357) (GH-862)
Mariatta [Tue, 28 Mar 2017 00:02:29 +0000 (17:02 -0700)]
bpo-29677: DOC: clarify documentation for `round` (GH-357) (GH-862)

(cherry picked from commit 6003db7db5fec545c01923c198a5fdfca5a91538)

7 years agoDrop the standard gcc test build on Travis (GH-853) (GH-859)
Brett Cannon [Mon, 27 Mar 2017 23:46:31 +0000 (16:46 -0700)]
Drop the standard gcc test build on Travis (GH-853) (GH-859)

Instead have gcc be used for the coverage build so gcc is exercised in at least one place.
(cherry picked from commit ad2f9e2c8a0b44b3e6aec9d28ba59e13239236f7)

7 years agoMinor test cleanup (GH-837) (GH-838)
Zachary Ware [Mon, 27 Mar 2017 05:35:56 +0000 (00:35 -0500)]
Minor test cleanup (GH-837) (GH-838)

* Remove unused test file

* Remove duplicated text in sndhdrdata README

(cherry picked from commit b8a7daf077dab18e9e3701c5380b542ae0aa9a94)

7 years agoTreat Sphinx warnings as errors (GH-832) (GH-834)
Zachary Ware [Mon, 27 Mar 2017 03:53:57 +0000 (22:53 -0500)]
Treat Sphinx warnings as errors (GH-832) (GH-834)

* Treat Sphinx warnings as errors (GH-832)

(cherry picked from commit 334e9ec938ea9876baadef15edb135d6d2aff30c)

* Remove unused suspicious rules

7 years agoimport sys before we use it on line 9 (GH-828) (GH-833)
Mariatta [Mon, 27 Mar 2017 02:53:37 +0000 (19:53 -0700)]
import sys before we use it on line 9 (GH-828) (GH-833)

(cherry picked from commit 0579e81f30d00da562f021760d5b6a9c35186520)

7 years agobpo-29888: Fix the link referring to the "Python download page" (GH-824) (GH-826)
Ned Deily [Sun, 26 Mar 2017 17:58:13 +0000 (13:58 -0400)]
bpo-29888: Fix the link referring to the "Python download page" (GH-824) (GH-826)

(cherry picked from commit f8beb9831acd5cf80b9c56aea5864e16118c5400)

7 years agobpo-29862: Fix grammar in importlib.reload() exception (GH-809) (GH-811)
Mariatta [Sat, 25 Mar 2017 10:41:59 +0000 (03:41 -0700)]
bpo-29862: Fix grammar in importlib.reload() exception (GH-809) (GH-811)

(cherry picked from commit 9f0aa4843f8c26937d5817f27cac4aae9c0a034f)

7 years agobpo-29892: Fix wrong markup on doc-lib-functions (GH-802) (GH-810)
Mariatta [Sat, 25 Mar 2017 03:04:40 +0000 (20:04 -0700)]
bpo-29892: Fix wrong markup on doc-lib-functions (GH-802) (GH-810)

(cherry picked from commit 29540cdf6c66df9f806375a95078c0c63192ef78)

7 years agobpo-28810: Document remaining bytecode changes in 3.6 (GH-651) (GH-808)
Brett Cannon [Fri, 24 Mar 2017 21:18:53 +0000 (14:18 -0700)]
bpo-28810: Document remaining bytecode changes in 3.6 (GH-651) (GH-808)

(cherry picked from commit 8f9e1bbf2dbdf46a0bf920279568a31460043376)

7 years agobpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True)… (#806)
Serhiy Storchaka [Fri, 24 Mar 2017 19:46:25 +0000 (21:46 +0200)]
bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True)… (#806)

when the OS gives priority to errors such as EACCES over EEXIST.

(cherry picked from commit af7b9ec5c855366feef4c67dc492d64b3baf84ca)

7 years agobpo-29861: release references to multiprocessing Pool tasks (#743) (#800)
Antoine Pitrou [Fri, 24 Mar 2017 13:45:34 +0000 (14:45 +0100)]
bpo-29861: release references to multiprocessing Pool tasks (#743) (#800)

* bpo-29861: release references to multiprocessing Pool tasks (#743)

* bpo-29861: release references to multiprocessing Pool tasks

Release references to tasks, their arguments and their results as soon
as they are finished, instead of keeping them alive until another task
arrives.

* Comments in test

(cherry picked from commit 8988945cdc27ffa86ba8c624e095b51c459f5154)

* Fix Misc/NEWS (hopefully)

7 years agofaulthandler: Restore the old sigaltstack during teardown (GH-777) (GH-797)
Christophe Zeitouny [Fri, 24 Mar 2017 11:20:40 +0000 (04:20 -0700)]
faulthandler: Restore the old sigaltstack during teardown (GH-777) (GH-797)

(cherry picked from commit 20fbf8accd494fd15b0fc4c84928178c71ead4d1)

7 years agoRemove an outdated statement in execution model docs (GH-754) (GH-775)
Mariatta [Thu, 23 Mar 2017 01:56:56 +0000 (18:56 -0700)]
Remove an outdated statement in execution model docs (GH-754) (GH-775)

(cherry picked from commit fad7f1560669af1766c583c7ef242c55d8c8de41)

7 years agobpo-28331: fix impl-detail label is removed when content is translated. (GH-769)
INADA Naoki [Wed, 22 Mar 2017 12:09:41 +0000 (21:09 +0900)]
bpo-28331: fix impl-detail label is removed when content is translated. (GH-769)

(cherry picked from commit c351ce6a2c923c5016e48ecbf7b1e4833031d154)

7 years agodoc: minor fix for library/profile (GH-766)
INADA Naoki [Wed, 22 Mar 2017 08:14:03 +0000 (17:14 +0900)]
doc: minor fix for library/profile (GH-766)

(cherry picked from commit bd3d8ba3b22da0bad018b53a3e6610ae03c5aa49)

7 years agofix function name in tabnanny documentation (GH-762)
Xiang Zhang [Wed, 22 Mar 2017 07:26:53 +0000 (15:26 +0800)]
fix function name in tabnanny documentation (GH-762)

7 years agobpo-29864: Don't use Py_SIZE for dict object. (#747) (#750)
Serhiy Storchaka [Wed, 22 Mar 2017 05:45:23 +0000 (07:45 +0200)]
bpo-29864: Don't use Py_SIZE for dict object. (#747) (#750)

7 years agoMerge branch '3.6.1' of github.com:ned-deily/cpython into 3.6
Ned Deily [Wed, 22 Mar 2017 01:03:20 +0000 (21:03 -0400)]
Merge branch '3.6.1' of github.com:ned-deily/cpython into 3.6

7 years agoBump to 3.6.2rc1 development.
Ned Deily [Wed, 22 Mar 2017 00:39:58 +0000 (20:39 -0400)]
Bump to 3.6.2rc1 development.

7 years agoRevert and fix Misc/NEWS after merge error in fca705d53397. (#755)
Ned Deily [Wed, 22 Mar 2017 00:21:49 +0000 (20:21 -0400)]
Revert and fix Misc/NEWS after merge error in fca705d53397. (#755)

7 years agobpo-29859: Fix error messages from return codes for pthread_* calls (GH-753)
INADA Naoki [Tue, 21 Mar 2017 18:46:26 +0000 (03:46 +0900)]
bpo-29859: Fix error messages from return codes for pthread_* calls (GH-753)

(cherry picked from commit d7fa6b259e00fca04dbf816bfcf4115fdda14bb7)

7 years agoUpdate docs and patchlevel for 3.6.1 final v3.6.1
Ned Deily [Tue, 21 Mar 2017 06:32:38 +0000 (02:32 -0400)]
Update docs and patchlevel for 3.6.1 final

7 years agobpo-27593: Revise git SCM build info. (#744) (#745)
Ned Deily [Tue, 21 Mar 2017 04:35:08 +0000 (00:35 -0400)]
bpo-27593: Revise git SCM build info. (#744) (#745)

Use --short form of git hash.  Use output from "git describe" for tag.

Expected outputs:
1. previous hg
2. previous git
3. updated git

Release (tagged) build:
1. Python 3.7.0a0 (v3.7.0a0:4def2a2901a5, ...
2. Python 3.7.0a0 (v3.7.0a0^0:05f53735c8912f8df1077e897f052571e13c3496, ...
3. Python 3.7.0a0 (v3.7.0a0:05f53735c8, ...

Development build:
1. Python 3.7.0a0 (default:41df79263a11, ...
2. Python 3.7.0a0 (master:05f53735c8912f8df1077e897f052571e13c3496, ...
3. Python 3.7.0a0 (heads/master-dirty:05f53735c8, ...

"dirty" means the working tree has uncommitted changes.
See "git help describe" for more info.
(cherry picked from commit 554626ada769abf82a5dabe6966afa4265acb6a6)
(cherry picked from commit e9213d929d7b0075539e87416f6a6fb86c27454b)

7 years agoTakes vcruntime140.dll from the correct source. (#684)
Steve Dower [Thu, 16 Mar 2017 18:03:03 +0000 (11:03 -0700)]
Takes vcruntime140.dll from the correct source. (#684)

(cherry picked from commit 9cd5e87bac51d7b901e3c36bf22728bb1693da59)

7 years ago[3.6] bpo-29723: Consistently configure sys.path[0] (#636)
Nick Coghlan [Sun, 12 Mar 2017 11:34:22 +0000 (21:34 +1000)]
[3.6] bpo-29723: Consistently configure sys.path[0] (#636)

Directory and zipfile execution previously added
the parent directory of the directory or zipfile
as sys.path[0] and then subsequently overwrote
it with the directory or zipfile itself.

This caused problems in isolated mode, as it
overwrote the "stdlib as a zip archive" entry
in sys.path, as the parent directory was
never added.

The attempted fix to that issue in bpo-29319
created the opposite problem in *non*-isolated
mode, by potentially leaving the parent
directory on sys.path instead of overwriting it.

This change fixes the root cause of the problem
by removing the whole "add-and-overwrite" dance
for sys.path[0], and instead simply never adds
the parent directory to sys.path in the first
place.
(cherry picked from commit d2977a3ae2cc6802921b1e3b6e9d13fcfbda872d)

(cherry picked from commit c60948464fb0ec116ea227f6bce8a4bb8fb75257)

7 years agoFix the only non-C90 comment to be C90 compatible. (#568)
n.d. parker [Wed, 8 Mar 2017 22:27:46 +0000 (23:27 +0100)]
Fix the only non-C90 comment to be C90 compatible. (#568)

(cherry picked from commit 51b646a55a4a1c4d0df764c4404a062fbcc6b356)

7 years agobpo-29719: Remove Date and Release field in whatsnew/3.6 (GH-500)
INADA Naoki [Mon, 6 Mar 2017 08:24:28 +0000 (17:24 +0900)]
bpo-29719: Remove Date and Release field in whatsnew/3.6 (GH-500)

(cherry picked from commit 2225ddaa9e64c086b2b6997b0c9ac50921f7aa85)
(cherry picked from commit 4e1a065c20856a00d0fe88ce022b249170608058)

7 years agoFixes the upload script to purge the CDN correctly and display success output. (...
Steve Dower [Mon, 6 Mar 2017 03:58:06 +0000 (19:58 -0800)]
Fixes the upload script to purge the CDN correctly and display success output. (#466) (#497)

(cherry picked from commit e544b40faa5ab61b6aba691577d90b2b641f664d)

7 years agobpo-27593: Revise git SCM build info. (#744) (#745)
Ned Deily [Tue, 21 Mar 2017 04:35:08 +0000 (00:35 -0400)]
bpo-27593: Revise git SCM build info. (#744) (#745)

Use --short form of git hash.  Use output from "git describe" for tag.

Expected outputs:
1. previous hg
2. previous git
3. updated git

Release (tagged) build:
1. Python 3.7.0a0 (v3.7.0a0:4def2a2901a5, ...
2. Python 3.7.0a0 (v3.7.0a0^0:05f53735c8912f8df1077e897f052571e13c3496, ...
3. Python 3.7.0a0 (v3.7.0a0:05f53735c8, ...

Development build:
1. Python 3.7.0a0 (default:41df79263a11, ...
2. Python 3.7.0a0 (master:05f53735c8912f8df1077e897f052571e13c3496, ...
3. Python 3.7.0a0 (heads/master-dirty:05f53735c8, ...

"dirty" means the working tree has uncommitted changes.
See "git help describe" for more info.
(cherry picked from commit 554626ada769abf82a5dabe6966afa4265acb6a6)

7 years agoFix "NotImplentedError" typo in constants documentation (#692) (#739)
Serhiy Storchaka [Mon, 20 Mar 2017 12:54:52 +0000 (14:54 +0200)]
Fix "NotImplentedError" typo in constants documentation (#692) (#739)

`NotImplentedError` --> `NotImplementedError`
(cherry picked from commit 05f53735c8912f8df1077e897f052571e13c3496)

7 years agobpo-28876: bool of large range raises OverflowError (#699) (#734)
Serhiy Storchaka [Mon, 20 Mar 2017 07:13:47 +0000 (09:13 +0200)]
bpo-28876: bool of large range raises OverflowError (#699) (#734)

(cherry picked from commit e46fb8611867fa3b407a813f53137929b7cb4a10)

7 years agobpo-29856: Fix typo in curses documentation (GH-730) (GH-731)
Mariatta [Mon, 20 Mar 2017 03:55:16 +0000 (20:55 -0700)]
bpo-29856: Fix typo in curses documentation (GH-730) (GH-731)

From Shifted Dxit -> Shifted Exit in Doc/library/curses.rst
(cherry picked from commit 64508780d72769e4c7afc67a511c057261c578f6)

7 years agobpo-29116: Fix error messages for concatenating bytes and bytearray with unsupported...
Serhiy Storchaka [Sun, 19 Mar 2017 19:06:29 +0000 (21:06 +0200)]
bpo-29116: Fix error messages for concatenating bytes and bytearray with unsupported type. (#709) (#723)

(cherry picked from commit 6b5a9ec4788770c652bac3bf5d5a0a3b710b82ae)

7 years agobpo-29845: Mark tests that use _testcapi as CPython-only (#711) (#725)
Serhiy Storchaka [Sun, 19 Mar 2017 18:53:42 +0000 (20:53 +0200)]
bpo-29845: Mark tests that use _testcapi as CPython-only (#711) (#725)

(cherry picked from commit 24c738a9e91b8f46da6166663d8ce7ec18cec784)

7 years agobpo-25455: Fixed crashes in repr of recursive buffered file-like objects. (#514)...
Serhiy Storchaka [Sun, 19 Mar 2017 18:27:16 +0000 (20:27 +0200)]
bpo-25455: Fixed crashes in repr of recursive buffered file-like objects. (#514) (#722)

(cherry picked from commit a5af6e1af77ee0f9294c5776478a9c24d9fbab94)

7 years agobpo-28749: Fixed the documentation of the mapping codec APIs. (#487) (#714)
Serhiy Storchaka [Sun, 19 Mar 2017 18:26:26 +0000 (20:26 +0200)]
bpo-28749: Fixed the documentation of the mapping codec APIs. (#487) (#714)

Added the documentation for PyUnicode_Translate().
(cherry picked from commit c85a26628ceb9624c96c3064e8b99033c026d8a3)

7 years agoDrop C++ header compatibility test (#718) (#719)
Brett Cannon [Sun, 19 Mar 2017 17:03:39 +0000 (10:03 -0700)]
Drop C++ header compatibility test (#718) (#719)

The $CXX environment variable is not exported under the 'c' language on Travis.
(cherry picked from commit 77ed11552da3e01dd235b7d68988076866b1f604)

7 years agoCombine the C++ header CI build into the main C build (GH-697) (GH-704)
Brett Cannon [Fri, 17 Mar 2017 22:41:35 +0000 (15:41 -0700)]
Combine the C++ header CI build into the main C build (GH-697) (GH-704)

This will eliminate one of the builds in Travis, allowing for CI overall to complete faster.
(cherry picked from commit 993d4b3440f2282976901ce66879037c4443868a)

7 years agobpo-29808: Do not fail in SysLogHandler constructor if syslog isn't available. (...
Vinay Sajip [Fri, 17 Mar 2017 19:52:56 +0000 (19:52 +0000)]
bpo-29808: Do not fail in SysLogHandler constructor if syslog isn't available. (#696)

bpo-29808: SysLogHandler: Do not fail if initial connect to syslog failed.

(cherry picked from commit 1b038e073807ecb6fd176edaf3386a8e3205416e)

7 years agobpo-16355: Clarify when inspect.getcomments() returns None (#428) (#690)
Berker Peksag [Fri, 17 Mar 2017 11:59:16 +0000 (14:59 +0300)]
bpo-16355: Clarify when inspect.getcomments() returns None (#428) (#690)

Initial patch by Vajrasky Kok.

(cherry picked from commit 3f2155ffe683080f2a1b28408fa48d43ba92f943)

7 years agoAdd sockaddr_alg to sock_addr_t (GH-234) (GH-533)
Mariatta [Fri, 17 Mar 2017 03:59:36 +0000 (20:59 -0700)]
Add sockaddr_alg to sock_addr_t (GH-234) (GH-533)

(cherry picked from commit d37c068e695f8ec72b5c1b5a5a5ece2337fda768)

7 years agoupdate test_socket AEAD test for kernel 4.9 and up (GH-133) (GH-548)
Mariatta [Fri, 17 Mar 2017 03:58:42 +0000 (20:58 -0700)]
update test_socket AEAD test for kernel 4.9 and up (GH-133) (GH-548)

(cherry picked from commit 9764c151c51480a7ca6042b1ccd69be2620ff360)

7 years agobpo-29820: othergui.rst: Remove outdated information (GH-685) (GH-688)
Mariatta [Fri, 17 Mar 2017 02:56:56 +0000 (19:56 -0700)]
bpo-29820: othergui.rst: Remove outdated information  (GH-685) (GH-688)

(cherry picked from commit 1bb0f3762ec5104014aeed0ae6e9d64598d8fcac)

7 years agoTakes vcruntime140.dll from the correct source. (#684)
Steve Dower [Thu, 16 Mar 2017 18:03:03 +0000 (11:03 -0700)]
Takes vcruntime140.dll from the correct source. (#684)

7 years agoFix stderr bug in json.tool test (#346) (#676)
Berker Peksag [Thu, 16 Mar 2017 13:22:35 +0000 (16:22 +0300)]
Fix stderr bug in json.tool test (#346) (#676)

See https://github.com/python/cpython/pull/201#discussion_r103229425.(cherry picked from commit b4e9087e7b77e8f76feac76f9c1ab21b49c0c766)

7 years agoChange assertRaises to assertRaisesRegex in test_xmlrpc (#481) (#674)
Berker Peksag [Wed, 15 Mar 2017 11:12:53 +0000 (14:12 +0300)]
Change assertRaises to assertRaisesRegex in test_xmlrpc (#481) (#674)

(cherry picked from commit c6b448b36d22769c684bb3276f85c1b47d15ab63)

7 years agoDelete duplicate entry in Misc/NEWS (#673)
Berker Peksag [Wed, 15 Mar 2017 11:12:22 +0000 (14:12 +0300)]
Delete duplicate entry in Misc/NEWS (#673)

It has already been added in the build section.

7 years agobpo-29800: Fix crashes in partial.__repr__ if the keys of partial.keywords are not...
Michael Seifert [Wed, 15 Mar 2017 07:42:02 +0000 (08:42 +0100)]
bpo-29800: Fix crashes in partial.__repr__ if the keys of partial.keywords are not strings (#649) (#671)

7 years agobpo-28856: Let %b format for bytes support objects that follow the buffer protocol...
Xiang Zhang [Tue, 14 Mar 2017 07:27:01 +0000 (15:27 +0800)]
bpo-28856: Let %b format for bytes support objects that follow the buffer protocol  (GH-664)

7 years agoftplib.FTP.retrbinary callback gets a bytes, not a str (GH-652) (GH-657)
Xiang Zhang [Mon, 13 Mar 2017 03:03:36 +0000 (11:03 +0800)]
ftplib.FTP.retrbinary callback gets a bytes, not a str (GH-652) (GH-657)

7 years agofix the name of argument to ftplib.FTP.set_pasv and fix wording (GH-653) (GH-654)
Xiang Zhang [Mon, 13 Mar 2017 02:36:34 +0000 (10:36 +0800)]
fix the name of argument to ftplib.FTP.set_pasv and fix wording (GH-653) (GH-654)

7 years agobpo-29742: asyncio get_extra_info() throws exception (#525) (#645)
Yury Selivanov [Sun, 12 Mar 2017 21:06:16 +0000 (17:06 -0400)]
bpo-29742: asyncio get_extra_info() throws exception (#525) (#645)

7 years agoFix wrapping into StopIteration of return values in generators and coroutines (#644...
Yury Selivanov [Sun, 12 Mar 2017 21:04:06 +0000 (17:04 -0400)]
Fix wrapping into StopIteration of return values in generators and coroutines (#644) (#647)

7 years ago[3.6] bpo-8256: Fixed possible failing or crashing input() (#641)
Serhiy Storchaka [Sun, 12 Mar 2017 19:52:17 +0000 (21:52 +0200)]
[3.6] bpo-8256: Fixed possible failing or crashing input() (#641)

if attributes "encoding" or "errors" of sys.stdin or sys.stdout are not set or are not strings.

7 years ago[3.6] bpo-29723: Consistently configure sys.path[0] (#636)
Nick Coghlan [Sun, 12 Mar 2017 11:34:22 +0000 (21:34 +1000)]
[3.6] bpo-29723: Consistently configure sys.path[0] (#636)

Directory and zipfile execution previously added
the parent directory of the directory or zipfile
as sys.path[0] and then subsequently overwrote
it with the directory or zipfile itself.

This caused problems in isolated mode, as it
overwrote the "stdlib as a zip archive" entry
in sys.path, as the parent directory was
never added.

The attempted fix to that issue in bpo-29319
created the opposite problem in *non*-isolated
mode, by potentially leaving the parent
directory on sys.path instead of overwriting it.

This change fixes the root cause of the problem
by removing the whole "add-and-overwrite" dance
for sys.path[0], and instead simply never adds
the parent directory to sys.path in the first
place.
(cherry picked from commit d2977a3ae2cc6802921b1e3b6e9d13fcfbda872d)

7 years agobpo-29798: Handle git worktree in `make patchcheck` (#629) (#633)
Nick Coghlan [Sun, 12 Mar 2017 10:00:20 +0000 (20:00 +1000)]
bpo-29798: Handle git worktree in `make patchcheck` (#629) (#633)

In git worktree directories, `.git` is a configuration
file rather than a subdirectory
(cherry picked from commit 6a6d090612dd7deaac2bc0399fad743e5e2db606)

7 years agobpo-29746: Update marshal docs to Python 3. (#547) (#631)
Serhiy Storchaka [Sun, 12 Mar 2017 08:05:05 +0000 (10:05 +0200)]
bpo-29746: Update marshal docs to Python 3. (#547) (#631)

(cherry picked from commit c611a5b1d4fab0123bf622f06c3bfa510221dc32)

7 years agobpo-29656: Handle PR branches in 'make patchcheck' (#302) (#626)
Nick Coghlan [Sun, 12 Mar 2017 06:17:46 +0000 (16:17 +1000)]
bpo-29656: Handle PR branches in 'make patchcheck' (#302) (#626)

(cherry picked from commit 482f7a274fa52b7ba34ff308cd9acdcac9f41ba5)

7 years agobpo-29763: Use support.unlink instead of os.unlink (GH-624) (GH-625)
Zachary Ware [Sun, 12 Mar 2017 04:39:54 +0000 (22:39 -0600)]
bpo-29763: Use support.unlink instead of os.unlink (GH-624) (GH-625)

support.unlink waits for the files to be removed before returning

7 years agofix subprocess on Windows (GH-391 backport) (GH-623)
Zachary Ware [Sat, 11 Mar 2017 23:16:34 +0000 (17:16 -0600)]
fix subprocess on Windows (GH-391 backport) (GH-623)

7 years agoOnly trigger AppVeyor on code or config changes (GH-611 backport) (GH-620)
Zachary Ware [Sat, 11 Mar 2017 21:42:25 +0000 (15:42 -0600)]
Only trigger AppVeyor on code or config changes (GH-611 backport) (GH-620)

7 years agotempfile.rst: Fix some typos (GH-610) (GH-618)
Mariatta [Sat, 11 Mar 2017 18:19:51 +0000 (10:19 -0800)]
tempfile.rst: Fix some typos (GH-610) (GH-618)

(cherry picked from commit d3b8f98696b905367da3975f73b482bac380b51c)

7 years agobpo-29770: remove outdated PYO related info (GH-590) (GH-612)
Xiang Zhang [Sat, 11 Mar 2017 06:07:30 +0000 (14:07 +0800)]
bpo-29770: remove outdated PYO related info (GH-590) (GH-612)

7 years agobpo-29784: Fix the reference to shutil.copy in the docs (GH-602) (GH-608)
Mariatta [Sat, 11 Mar 2017 03:36:26 +0000 (19:36 -0800)]
bpo-29784: Fix the reference to shutil.copy in the docs (GH-602) (GH-608)

(cherry picked from commit 70ee0cd5c2a3dba82cb8e0c0742c012f9134c040)

7 years agobpo-28810: Document changes to CALL_FUNCTION opcodes (GH-607)
Brett Cannon [Fri, 10 Mar 2017 23:08:52 +0000 (15:08 -0800)]
bpo-28810: Document changes to CALL_FUNCTION opcodes (GH-607)

(cherry picked from commit 4b2a2a425a906c8e4eb8daee14ab1793e225f726)

7 years agobpo-28810: Document BUILD_TUPLE_UNPACK_WITH_CALL bytecode (GH-605)
Brett Cannon [Fri, 10 Mar 2017 22:44:48 +0000 (14:44 -0800)]
bpo-28810: Document BUILD_TUPLE_UNPACK_WITH_CALL bytecode (GH-605)

(cherry picked from commit 7e52c3e7aefb4cdaa0662fc01ff68a5e976b77ca)

7 years agobpo-28739: Document that f-strings cannot be used as docstring (GH-592) (GH-600)
Mariatta [Fri, 10 Mar 2017 17:52:03 +0000 (09:52 -0800)]
bpo-28739: Document that f-strings cannot be used as docstring (GH-592) (GH-600)

(cherry picked from commit d4e89287b397c7382c12d3f3d9fd901fd8243b3c)

7 years agoIgnore Include/pydtrace_probes.h (#596)
Łukasz Langa [Fri, 10 Mar 2017 13:30:05 +0000 (05:30 -0800)]
Ignore Include/pydtrace_probes.h (#596)

This is a generated file when --with-dtrace is passed. This entry is present in
.hgignore.

7 years agoAdd Appveyor (GH-324 backport) (GH-491)
Zachary Ware [Fri, 10 Mar 2017 07:06:43 +0000 (01:06 -0600)]
Add Appveyor (GH-324 backport) (GH-491)

7 years ago[3.6] bpo-29773: Add more cases for testing string to float conversion errors. ...
Serhiy Storchaka [Thu, 9 Mar 2017 19:01:49 +0000 (21:01 +0200)]
[3.6]  bpo-29773: Add more cases for testing string to float conversion errors. (#586)

(cherry picked from commit 9e6ac83acae31de2b072e665e177db9fcdf7c049)

7 years agobpo-29619: Convert st_ino using unsigned integer (#557) (#584)
Victor Stinner [Thu, 9 Mar 2017 17:43:39 +0000 (18:43 +0100)]
bpo-29619: Convert st_ino using unsigned integer (#557) (#584)

bpo-29619: os.stat() and os.DirEntry.inodeo() now convert inode
(st_ino) using unsigned integers.

(cherry picked from commit 0f6d73343d342c106cda2219ebb8a6f0c4bd9b3c)
(Misc/NEWS conflict handled manually.)

7 years ago[3.6] bpo-28298: make array 'Q', 'L' and 'I' accept big intables as elements (#579)
orenmn [Thu, 9 Mar 2017 14:06:47 +0000 (16:06 +0200)]
[3.6] bpo-28298: make array 'Q', 'L' and 'I' accept big intables as elements (#579)

7 years ago[3.6] bpo-29768: Fixed compile-time check for expat version. (#576)
Serhiy Storchaka [Thu, 9 Mar 2017 08:51:44 +0000 (10:51 +0200)]
[3.6] bpo-29768: Fixed compile-time check for expat version. (#576)

(cherry picked from commit 22e707fa04476710ba5cc7e2206e4ac66743931b)

7 years agoFix the only non-C90 comment to be C90 compatible. (#568)
n.d. parker [Wed, 8 Mar 2017 22:27:46 +0000 (23:27 +0100)]
Fix the only non-C90 comment to be C90 compatible. (#568)

7 years agobpo-29176: Fix name of the _curses.window class (#52) (#532)
Mariatta [Wed, 8 Mar 2017 16:19:57 +0000 (08:19 -0800)]
bpo-29176: Fix name of the _curses.window class (#52) (#532)

Set name to "_curses.window" instead of "_curses.curses window" (with
a space!?).
(cherry picked from commit 61e2bc74dfab1ceee332d3f480dcf86c478c87c5)

7 years ago[3.6] bpo-28231: The zipfile module now accepts path-like objects for external paths...
Serhiy Storchaka [Wed, 8 Mar 2017 13:45:43 +0000 (15:45 +0200)]
[3.6]  bpo-28231: The zipfile module now accepts path-like objects for external paths. (#561)

(cherry picked from commit 8606e9524a7a4065042f7f228dc57eb74f88e4d3)

7 years ago[3.6] bpo-28230: Document the pathlib support in tarfile and add tests. (#559)
Serhiy Storchaka [Wed, 8 Mar 2017 10:29:33 +0000 (12:29 +0200)]
[3.6] bpo-28230: Document the pathlib support in tarfile and add tests. (#559)

7 years agoRevert "bpo-29571: Use correct locale encoding in test_re (#149)" (#554) (#555)
Benjamin Peterson [Wed, 8 Mar 2017 07:56:59 +0000 (23:56 -0800)]
Revert "bpo-29571: Use correct locale encoding in test_re (#149)" (#554) (#555)

This reverts commit ace5c0fdd9b962e6e886c29dbcea72c53f051dc4.

7 years agobpo-26915: Test identity first in index() and count() of collections.abc.Sequence...
Xiang Zhang [Wed, 8 Mar 2017 03:43:35 +0000 (11:43 +0800)]
bpo-26915: Test identity first in index() and count() of collections.abc.Sequence  (GH-553)

7 years agoFixes bpo-29680: Older gdb does not have gdb.error. (GH-363) (GH-534)
Mariatta [Tue, 7 Mar 2017 10:44:11 +0000 (02:44 -0800)]
Fixes bpo-29680: Older gdb does not have gdb.error. (GH-363) (GH-534)

This change is required to make python-dbg.py compatible with GDB versions before 7.3.
(cherry picked from commit 661ca8843fed1183e38db06e52d59ac300bf1c2a)

7 years agoPCbuild: Add -q option to svn export (GH-537)
INADA Naoki [Tue, 7 Mar 2017 08:18:12 +0000 (17:18 +0900)]
PCbuild: Add -q option to svn export (GH-537)

Without this option, AppVeyor log is too unreadable.
(cherry picked from commit 8886d5f39286dffa7d9337857b151e7fb4af23fd)

7 years agobpo-28728: clarify possible test failure due to ISP (GH-412) (GH-531)
Xiang Zhang [Tue, 7 Mar 2017 03:53:29 +0000 (11:53 +0800)]
bpo-28728: clarify possible test failure due to ISP (GH-412) (GH-531)

7 years agobpo-29557: Remove ambiguous line in binhex docs (GH-90) (GH-475)
Mariatta [Mon, 6 Mar 2017 17:31:16 +0000 (09:31 -0800)]
bpo-29557: Remove ambiguous line in binhex docs (GH-90) (GH-475)

"appears to not work in all cases" does not inspire confidence in this
module. I can find no context for what bug this was referencing so it
should be removed.
(cherry picked from commit 6de2b7817fa9403e81dc38f13f3690f0bbf3d064)

7 years agofix minor bug in pymalloc. (GH-335) (GH-476)
Mariatta [Mon, 6 Mar 2017 17:15:41 +0000 (09:15 -0800)]
fix minor bug in pymalloc. (GH-335) (GH-476)

(cherry picked from commit f669ffff6010a94f2d441200e0fd73e9dea2883e)

7 years ago[3.6] bpo-29714: Fix a regression that bytes format may fail when containing zero...
Xiang Zhang [Mon, 6 Mar 2017 10:17:10 +0000 (18:17 +0800)]
[3.6] bpo-29714: Fix a regression that bytes format may fail when containing zero bytes inside. (GH-504)

7 years agobpo-29719: Remove Date and Release field in whatsnew/3.6 (GH-500)
INADA Naoki [Mon, 6 Mar 2017 08:24:28 +0000 (17:24 +0900)]
bpo-29719: Remove Date and Release field in whatsnew/3.6 (GH-500)

(cherry picked from commit 2225ddaa9e64c086b2b6997b0c9ac50921f7aa85)

7 years agoFixes the upload script to purge the CDN correctly and display success output. (...
Steve Dower [Mon, 6 Mar 2017 03:58:06 +0000 (19:58 -0800)]
Fixes the upload script to purge the CDN correctly and display success output. (#466) (#497)

7 years agobpo-29638: Fix spurious refleaks after typing is imported (#469) (#483)
Ivan Levkivskyi [Sun, 5 Mar 2017 19:18:43 +0000 (20:18 +0100)]
bpo-29638: Fix spurious refleaks after typing is imported (#469) (#483)

7 years agobpo-29615: backport to 3.6 (#478)
Petr Motejlek [Sun, 5 Mar 2017 16:14:06 +0000 (17:14 +0100)]
bpo-29615: backport to 3.6 (#478)

7 years agoMerge 3.6.1rc1 releasing branch into 3.6
Ned Deily [Sun, 5 Mar 2017 10:57:22 +0000 (05:57 -0500)]
Merge 3.6.1rc1 releasing branch into 3.6

7 years agoBump to v3.6.1rc1+.
Ned Deily [Sun, 5 Mar 2017 10:33:38 +0000 (05:33 -0500)]
Bump to v3.6.1rc1+.