]> granicus.if.org Git - python/log
python
7 years agobpo-29942: Fix the use of recursion in itertools.chain.from_iterable. (#912)
T. Wouters [Thu, 30 Mar 2017 19:48:55 +0000 (12:48 -0700)]
bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. (#912)

Fix the use of recursion in itertools.chain.from_iterable. Using recursion
is unnecessary, and can easily cause stack overflows, especially when
building in low optimization modes or with Py_DEBUG enabled.
(cherry picked from commit 5466d4af5fe76ec0a5fbc8a05675287d9e8e9d14)

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

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

7 years agobpo-27863: Fixed multiple crashes in ElementTree. (#765) (#904)
Serhiy Storchaka [Thu, 30 Mar 2017 07:32:19 +0000 (10:32 +0300)]
bpo-27863: Fixed multiple crashes in ElementTree. (#765) (#904)

(cherry picked from commit 576def096ec7b64814e038f03290031f172886c3)

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

(cherry picked from commit e6911a44f69c0d302db60f49952a9cf69da69a2b)

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

(cherry picked from commit c3c7ef088583cc12bd218138036d1edb6de9c63f)

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

(cherry picked from commit 85deefcf61d3cc192846f41a4ccc6df17da60c98)

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

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-152) (GH-875)
Mariatta [Tue, 28 Mar 2017 16:32:50 +0000 (09:32 -0700)]
bpo-16011: clarify that 'in' always returns a boolean value (GH-152) (GH-875)

(cherry picked from commit 0ae7c8bd614d3aa1fcaf2d71a10ff1148c80d9b5)

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

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-863)
Mariatta [Tue, 28 Mar 2017 00:09:21 +0000 (17:09 -0700)]
bpo-29677: DOC: clarify documentation for `round` (GH-357) (GH-863)

(cherry picked from commit 6003db7db5fec545c01923c198a5fdfca5a91538)

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

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 agobpo-27425: Add .gitattributes, fix Windows tests (#844)
Victor Stinner [Mon, 27 Mar 2017 14:11:34 +0000 (16:11 +0200)]
bpo-27425: Add .gitattributes, fix Windows tests (#844)

Mark binary files as binay in .gitattributes to not translate newline
characters in Git repositories on Windows.

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

* 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-835)
Zachary Ware [Mon, 27 Mar 2017 03:54:45 +0000 (22:54 -0500)]
Treat Sphinx warnings as errors (GH-832) (GH-835)

(cherry picked from commit 334e9ec938ea9876baadef15edb135d6d2aff30c)

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

(cherry picked from commit f8beb9831acd5cf80b9c56aea5864e16118c5400)

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

(cherry picked from commit 9f0aa4843f8c26937d5817f27cac4aae9c0a034f)

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

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) (#801)
Antoine Pitrou [Fri, 24 Mar 2017 14:19:18 +0000 (15:19 +0100)]
bpo-29861: release references to multiprocessing Pool tasks (#743) (#801)

* 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??

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

(cherry picked from commit 20fbf8accd494fd15b0fc4c84928178c71ead4d1)

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

(cherry picked from commit fad7f1560669af1766c583c7ef242c55d8c8de41)

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

(cherry picked from commit bd3d8ba3b22da0bad018b53a3e6610ae03c5aa49)

7 years agofix function name in tabnanny documentation (GH-763)
Xiang Zhang [Wed, 22 Mar 2017 08:03:27 +0000 (16:03 +0800)]
fix function name in tabnanny documentation (GH-763)

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

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 agobpo-28876: bool of large range raises OverflowError (#699) (#735)
Serhiy Storchaka [Mon, 20 Mar 2017 07:37:31 +0000 (09:37 +0200)]
bpo-28876: bool of large range raises OverflowError (#699) (#735)

(cherry picked from commit e46fb8611867fa3b407a813f53137929b7cb4a10)

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

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

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

(cherry picked from commit a5af6e1af77ee0f9294c5776478a9c24d9fbab94)

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

(cherry picked from commit 24c738a9e91b8f46da6166663d8ce7ec18cec784)

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

(cherry picked from commit 6b5a9ec4788770c652bac3bf5d5a0a3b710b82ae)

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

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

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

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-705)
Brett Cannon [Fri, 17 Mar 2017 22:41:48 +0000 (15:41 -0700)]
Combine the C++ header CI build into the main C build (GH-697) (GH-705)

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:54:50 +0000 (19:54 +0000)]
bpo-29808: Do not fail in SysLogHandler constructor if syslog isn't available. (#695)

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) (#691)
Berker Peksag [Fri, 17 Mar 2017 11:37:51 +0000 (14:37 +0300)]
bpo-16355: Clarify when inspect.getcomments() returns None (#428) (#691)

Initial patch by Vajrasky Kok.

(cherry picked from commit 3f2155ffe683080f2a1b28408fa48d43ba92f943)

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

(cherry picked from commit 1bb0f3762ec5104014aeed0ae6e9d64598d8fcac)

7 years agoTakes vcruntime140.dll from the correct source. (#683)
Steve Dower [Thu, 16 Mar 2017 17:45:41 +0000 (10:45 -0700)]
Takes vcruntime140.dll from the correct source. (#683)

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

(cherry picked from commit c6b448b36d22769c684bb3276f85c1b47d15ab63)

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:30 +0000 (08:42 +0100)]
bpo-29800: Fix crashes in partial.__repr__ if the keys of partial.keywords are not strings (#649) (#672)

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

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

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

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

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

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

(cherry picked from commit c2cf12857187aa147c268651f10acd6da2c9cb74)

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

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) (#630)
Serhiy Storchaka [Sun, 12 Mar 2017 08:05:27 +0000 (10:05 +0200)]
bpo-29746: Update marshal docs to Python 3. (#547) (#630)

(cherry picked from commit c611a5b1d4fab0123bf622f06c3bfa510221dc32)

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

(cherry picked from commit 482f7a274fa52b7ba34ff308cd9acdcac9f41ba5)

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

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

(cherry picked from commit d3b8f98696b905367da3975f73b482bac380b51c)

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

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

(cherry picked from commit 70ee0cd5c2a3dba82cb8e0c0742c012f9134c040)

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

7 years agobpo-28298: make array 'Q', 'L' and 'I' accept big intables as elements
orenmn [Thu, 9 Mar 2017 19:29:22 +0000 (21:29 +0200)]
bpo-28298: make array 'Q', 'L' and 'I' accept big intables as elements

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

(cherry picked from commit 9e6ac83acae31de2b072e665e177db9fcdf7c049)

7 years agobpo-29768: Fixed compile-time check for expat version. (#574) (#578)
Serhiy Storchaka [Thu, 9 Mar 2017 08:52:19 +0000 (10:52 +0200)]
bpo-29768: Fixed compile-time check for expat version. (#574) (#578)

(cherry picked from commit 22e707fa04476710ba5cc7e2206e4ac66743931b)

7 years agobpo-29537: Also cover 3.5.2 in NEWS entry
Nick Coghlan [Wed, 8 Mar 2017 11:03:04 +0000 (21:03 +1000)]
bpo-29537: Also cover 3.5.2 in NEWS entry

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

This reverts commit ace5c0fdd9b962e6e886c29dbcea72c53f051dc4.

7 years ago[3.5] bpo-29537: Tolerate legacy invalid bytecode (#169)
Nick Coghlan [Wed, 8 Mar 2017 06:41:01 +0000 (16:41 +1000)]
[3.5] bpo-29537: Tolerate legacy invalid bytecode (#169)

bpo-27286 fixed a problem where BUILD_MAP_UNPACK_WITH_CALL could
be emitted with an incorrect oparg value, causing the eval loop
to access the wrong stack entry when attempting to read the
function name.

The associated magic number change caused significant problems when
attempting to upgrade to 3.5.3 for anyone that relies on pre-cached
bytecode remaining valid across maintenance releases.

This patch restores the ability to import legacy bytecode generated
by 3.5.0, 3.5.1 or 3.5.2, and modifies the eval loop to
avoid any harmful consequences from the potentially malformed legacy
bytecode.

Original import patch by Petr Viktorin, eval loop patch by Serhiy Storchaka,
and tests and integration by Nick Coghlan.

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

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

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

"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 agoFixes the upload script to purge the CDN correctly and display success output. (...
Steve Dower [Mon, 6 Mar 2017 03:58:10 +0000 (19:58 -0800)]
Fixes the upload script to purge the CDN correctly and display success output. (#466) (#496)

7 years agoBackport fix for spurious refleak failures (#482)
Ivan Levkivskyi [Sun, 5 Mar 2017 19:19:42 +0000 (20:19 +0100)]
Backport fix for spurious refleak failures (#482)

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

7 years agodistutils docs: Fix a typo (GH-470) (#472)
Mariatta [Sun, 5 Mar 2017 00:44:30 +0000 (16:44 -0800)]
distutils docs: Fix a typo (GH-470) (#472)

(cherry picked from commit 2a7bddaab7d6e1f7b243cdbb4fa6f6c8e266b18d)

7 years agoCorrect spelling "instanciate" (GH-465) (GH-468)
Mariatta [Sat, 4 Mar 2017 23:40:36 +0000 (15:40 -0800)]
Correct spelling "instanciate" (GH-465) (GH-468)

(cherry picked from commit 6abaed0ddaa1dd9be727ede09f6cd801c467c2ec)

7 years ago[3.5] bpo-27593: Get SCM build info from git instead of hg. (#446) (#454) (#455)
Ned Deily [Sat, 4 Mar 2017 06:34:19 +0000 (01:34 -0500)]
[3.5] bpo-27593: Get SCM build info from git instead of hg. (#446) (#454) (#455)

* bpo-27593: Get SCM build info from git instead of hg. (#446)

sys.version and the platform module python_build(),
python_branch(), and python_revision() functions now use
git information rather than hg when building from a repo.

Based on original patches by Brett Cannon and Steve Dower.
(cherry picked from commit 5c4b0d063aba0a68c325073f5f312a2c9f40d178)

(cherry picked from commit 95c50e5aed9e5683676e18349dd94b11901a66b3)

7 years agoFixes git command (#451) (#453)
Steve Dower [Sat, 4 Mar 2017 05:58:48 +0000 (21:58 -0800)]
Fixes git command (#451) (#453)

7 years agobpo-27593: Updates Windows build to use information from git (#262) (#449)
Steve Dower [Sat, 4 Mar 2017 05:32:23 +0000 (21:32 -0800)]
bpo-27593: Updates Windows build to use information from git (#262) (#449)

* bpo-27593: Updates Windows build to use information from git

7 years agobpo-26213: Document _UNPACK bytecodes and BUILD_MAP changes (GH-441)
Brett Cannon [Fri, 3 Mar 2017 22:47:22 +0000 (14:47 -0800)]
bpo-26213: Document _UNPACK bytecodes and BUILD_MAP changes (GH-441)

(cherry picked from commit 0705f66eb369aa6a6cdb699e24ff61e1ab2e0c56)

7 years agobpo-29572: Update Windows build to OpenSSL 1.0.2k (GH-443)
Zachary Ware [Fri, 3 Mar 2017 22:07:37 +0000 (16:07 -0600)]
bpo-29572: Update Windows build to OpenSSL 1.0.2k (GH-443)

7 years agobpo-29709: Improve Boolean Operations documentation (#433) (#436)
Mariatta [Fri, 3 Mar 2017 21:23:55 +0000 (13:23 -0800)]
bpo-29709: Improve Boolean Operations documentation (#433) (#436)

(cherry picked from commit 8eb531d9db0861e14222445fcaebe1a373bba170)

7 years agobpo-29704: Fix asyncio.SubprocessStreamProtocol closing (#405)
Seth M. Larson [Fri, 3 Mar 2017 04:21:18 +0000 (22:21 -0600)]
bpo-29704: Fix asyncio.SubprocessStreamProtocol closing (#405)

7 years agoAdd Python version since deprecation in base64 methods. (#33) (#430)
Berker Peksag [Fri, 3 Mar 2017 15:07:01 +0000 (18:07 +0300)]
Add Python version since deprecation in base64 methods. (#33) (#430)

Allow developers to not have to either test on N Python versions or
looked through multiple versions of the docs to know whether they can
easily update.

(cherry picked from commit c643a967dd7d33ccefa5b61b38caf40b448057ce)

7 years agogetpass: update docstrings (GH-49) (GH-420)
Mariatta [Fri, 3 Mar 2017 05:56:28 +0000 (21:56 -0800)]
getpass: update docstrings (GH-49) (GH-420)

(cherry picked from commit baf7bb30a02aabde260143136bdf5b3738a1d409)

7 years agobpo-29026: Clarify documentation of time.time (GH-34) (GH-418)
Mariatta [Fri, 3 Mar 2017 05:50:46 +0000 (21:50 -0800)]
bpo-29026: Clarify documentation of time.time (GH-34) (GH-418)

(cherry picked from commit 23557d59b819f57800ddef0b1373acef8e024670)

7 years agoasyncio: Optimize _get_running_loop() to call getpid() only when there's a loop
Yury Selivanov [Fri, 3 Mar 2017 04:57:33 +0000 (23:57 -0500)]
asyncio: Optimize _get_running_loop() to call getpid() only when there's a loop

7 years agobpo-29703: asyncio: Fix creating new event loops in child processes. (#411)
Yury Selivanov [Fri, 3 Mar 2017 02:40:57 +0000 (21:40 -0500)]
bpo-29703: asyncio: Fix creating new event loops in child processes. (#411)

7 years agobpo-29697: Don't use OpenSSL <1.0.2 fallback on 1.1+ (GH-398)
Donald Stufft [Thu, 2 Mar 2017 17:32:30 +0000 (12:32 -0500)]
bpo-29697: Don't use OpenSSL <1.0.2 fallback on 1.1+ (GH-398)

7 years agoDisable mention-bot for maintenance branches (GH-369)
Donald Stufft [Wed, 1 Mar 2017 11:13:38 +0000 (06:13 -0500)]
Disable mention-bot for maintenance branches (GH-369)

7 years agobpo-29655: Fixed possible reference leaks in `import *`. (#301) (#349)
Berker Peksag [Mon, 27 Feb 2017 18:25:29 +0000 (21:25 +0300)]
bpo-29655: Fixed possible reference leaks in `import *`. (#301) (#349)

Patch by Matthias Bussonnier.

(cherry picked from commit 160edb43571311a3785785c1dfa784afc52d87be)

7 years agobpo-28598: Support __rmod__ for RHS subclasses of str in % string formatting operatio...
Martijn Pieters [Mon, 27 Feb 2017 16:07:27 +0000 (16:07 +0000)]
bpo-28598: Support __rmod__ for RHS subclasses of str in % string formatting operations (#94)

7 years agoAsyncio documentation: remove `self` from method signatures (GH-334) (GH-336)
Mariatta [Mon, 27 Feb 2017 14:01:59 +0000 (06:01 -0800)]
Asyncio documentation: remove `self` from method signatures (GH-334) (GH-336)

(cherry picked from commit 091b84f23a2ff57e8320ebf6fdf889af39096ab9)

7 years agobpo-29376: Fix assertion error in threading._DummyThread.is_alive() (GH-329)
Xiang Zhang [Mon, 27 Feb 2017 03:46:37 +0000 (11:46 +0800)]
bpo-29376: Fix assertion error in threading._DummyThread.is_alive() (GH-329)

7 years agobpo-29110: Fix file object leak in `aifc.open` (GH-311)
INADA Naoki [Sun, 26 Feb 2017 19:35:00 +0000 (04:35 +0900)]
bpo-29110: Fix file object leak in `aifc.open` (GH-311)

(cherry picked from commit 03f68b6) (GH-162)
(cherry picked from commit 5dc33ee) (GH-293)

7 years agobpo-22594: Add a link to the regex module in re documentation (GH-241) (GH-317)
Mariatta [Sun, 26 Feb 2017 15:44:36 +0000 (07:44 -0800)]
bpo-22594: Add a link to the regex module in re documentation (GH-241) (GH-317)

(cherry picked from commit ed6795e46f7653e23b862efad240a93453e7df97)

7 years agobpo-29648: import.rst: Add reference to create_module() (GH-290) (GH-315)
Mariatta [Sun, 26 Feb 2017 15:40:03 +0000 (07:40 -0800)]
bpo-29648: import.rst: Add reference to create_module() (GH-290) (GH-315)

(cherry picked from commit 46ce7599af82a929506baeaaee5c149970440c4c)

7 years agoBackport recent .travis.yml changes (#309)
Berker Peksag [Sun, 26 Feb 2017 13:07:41 +0000 (16:07 +0300)]
Backport recent .travis.yml changes (#309)

Backported changes from master:

b52260d8bf392aa04c48b8c2467a4c034184de86
984eef7d6d78e1213d6ea99897343a5059a07c59
532519770dea5d353f0b0d718c8881a15c7542df
91b0e7d0ca7c59df28f6a6fc1e8eb86a3925b76c

(cherry picked from commit 05e1a32170dacfa3ffbbd9266c1cb461f96aabdf)

7 years agoFix unittest.mock._Call: don't ignore name (#307)
Berker Peksag [Sun, 26 Feb 2017 13:06:11 +0000 (16:06 +0300)]
Fix unittest.mock._Call: don't ignore name (#307)

Issue #28961: Fix unittest.mock._Call helper: don't ignore the name parameter
anymore.

Patch written by Jiajun Huang.

(cherry picked from commits 84b6fb0eea29b3b28a1a11124526b01ec0c9d17a
and dea1536fd3a8424d537794cd53715df0989cbbe1)

Conflicts:

Misc/NEWS

7 years ago[3.5] Fix small typos in introduction and datastructures of tutorial (GH-272) (GH...
Mariatta [Sun, 26 Feb 2017 06:35:39 +0000 (22:35 -0800)]
[3.5] Fix small typos in introduction and datastructures of tutorial (GH-272) (GH-299)

(cherry picked from commit 5bd5b9d81322d2cb6edd5f3804a347f8b2e65a15)
(cherry picked from commit 8c5e190d360b9f1a08c9fff249ae80d9c18007d5)
(cherry picked from commit 53c1892dc3de1de612b1cf95dc7bf09f82c1babf)

7 years ago[3.5] bpo-28929: Add to Misc/NEWS (GH-285)
Mariatta [Sun, 26 Feb 2017 06:33:51 +0000 (22:33 -0800)]
[3.5] bpo-28929: Add to Misc/NEWS (GH-285)

mention bpo-28929 in the Documentation section of
What's New in Python 3.5.4 release candidate 1

7 years ago[3.5] bpo-28556: Update to typing: treat subscripted generics as proxies (GH-265...
Mariatta [Sat, 25 Feb 2017 00:41:19 +0000 (16:41 -0800)]
[3.5] bpo-28556: Update to typing: treat subscripted generics as proxies (GH-265) (GH-269)

(cherry picked from commit abb3b8ad94d699c8560d94ee9bac9c917b382abe)
(cherry picked from commit 365cb5bb9069273e6970c9d5d17ee2fe5003e7ac)

7 years agobpo-25008: Deprecate smtpd and point to aiosmtpd (#274) (#279)
Barry Warsaw [Fri, 24 Feb 2017 21:15:17 +0000 (16:15 -0500)]
bpo-25008: Deprecate smtpd and point to aiosmtpd (#274) (#279)

7 years agobpo-29624: Adds purge step and layout test after uploading files. (#258) (#263)
Steve Dower [Thu, 23 Feb 2017 23:02:43 +0000 (15:02 -0800)]
bpo-29624: Adds purge step and layout test after uploading files. (#258) (#263)

7 years agobpo-28911: Clarify the behaviour of assert_called_once_with. (#254)
Arne de Laat [Thu, 23 Feb 2017 16:16:56 +0000 (17:16 +0100)]
bpo-28911: Clarify the behaviour of assert_called_once_with. (#254)

(cherry picked from commit 9d56b34af2efc4e266bf3ae62da5cd2e422a42be)

7 years agobpo-28814: Undeprecate inadvertently deprecated inspect functions. (#122) (#244)
Berker Peksag [Thu, 23 Feb 2017 15:45:57 +0000 (18:45 +0300)]
bpo-28814: Undeprecate inadvertently deprecated inspect functions. (#122) (#244)

Nick Coghlan said on bpo-28814:

> inspect.getargvalues() and inspect.formatargvalues() were deprecated
> in Python 3.5 as part of implementing bpo-20438

> This is incorrect, as these are *frame* introspection related functions,
> not callable introspection ones. The documentation and implementation
> layout is confusing though, as they're interleaved with the callable
> introspection operation

This commit undeprecates these functions and adds a note to ignore
previous deprecation notices.

(cherry picked from commit 0899b9809547ec2894dcf88cf4bba732c5d47d0d)

7 years ago[3.5] bpo-29532: Altering a kwarg dictionary passed to functools.partial() no longer...
Serhiy Storchaka [Wed, 22 Feb 2017 09:46:32 +0000 (11:46 +0200)]
[3.5] bpo-29532: Altering a kwarg dictionary passed to functools.partial() no longer affects a partial object after creation. (#222)

7 years agoFixed bpo-29565: Corrected ctypes passing of large structs by value on Windows AMD64...
Vinay Sajip [Wed, 22 Feb 2017 06:19:55 +0000 (06:19 +0000)]
Fixed bpo-29565: Corrected ctypes passing of large structs by value on Windows AMD64. (#168) (#221)

Fixed bpo-29565: Corrected ctypes passing of large structs by value.
(cherry picked from commit a86339b83fbd0932e0529a3c91935e997a234582)

7 years agoAdd .codecov.yml (#210) (#229)
Berker Peksag [Wed, 22 Feb 2017 05:02:17 +0000 (08:02 +0300)]
Add .codecov.yml (#210) (#229)

(cherry picked from commit e9c0e5559bbadb164d7c57b5a47b5544746dcb89)

7 years agobpo-29554: Improve docs for pstat module and profile. (#88) (#228)
Berker Peksag [Wed, 22 Feb 2017 01:55:03 +0000 (04:55 +0300)]
bpo-29554: Improve docs for pstat module and profile. (#88) (#228)

Clarify that methods take a string which is interpreted as a regex,
not a regex object.

Also clarify what the old `-1`, `0`, `1` and `2` options were.

(cherry picked from commit 8fb1f6e039cbdeb333d83b7a62f0f37af4ce6e02)

7 years agodoc: fix compile error on "shoddy" example extension (GH-217)
INADA Naoki [Tue, 21 Feb 2017 14:55:49 +0000 (23:55 +0900)]
doc: fix compile error on "shoddy" example extension (GH-217)

(cherry picked from commit fb8fe72fc593438f6a0b934c6ff2d9c4aa28673d)

7 years agobpo-29602: fix signed zero handling in complex constructor. (#203) (#205)
Mark Dickinson [Mon, 20 Feb 2017 21:50:49 +0000 (21:50 +0000)]
bpo-29602: fix signed zero handling in complex constructor. (#203) (#205)

* Fix incorrect handling of signed zeros for complex-related classes.

* Add Misc/NEWS entry.

(cherry picked from commit 112ec38c15b388fe025ccb85369a584d218b1160)

7 years agobpo-24274: fix comment in dictobject.c (GH-194)
INADA Naoki [Mon, 20 Feb 2017 11:29:30 +0000 (20:29 +0900)]
bpo-24274: fix comment in dictobject.c (GH-194)