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

7 years agobpo-29347: Fix possibly dereferencing undefined pointers when creating weakref object...
Xiang Zhang [Mon, 20 Feb 2017 06:33:06 +0000 (14:33 +0800)]
bpo-29347: Fix possibly dereferencing undefined pointers when creating weakref objects (#128) (#188)

7 years agoChange some mercurial/ hg.python.org references. (#8) (#184)
Senthil Kumaran [Mon, 20 Feb 2017 02:58:20 +0000 (18:58 -0800)]
Change some mercurial/ hg.python.org references. (#8) (#184)

(cherry picked from commit b2ee40ed9c9041dcff9c898aa19aacf9ec60308a)

7 years agobpo-29520: doc: fix deprecation warning from 'defindex' template (GH-179)
INADA Naoki [Mon, 20 Feb 2017 00:46:24 +0000 (09:46 +0900)]
bpo-29520: doc: fix deprecation warning from 'defindex' template (GH-179)

7 years ago[backport to 3.5] bpo-29529: Add .travis.yml to 3.5 branch (#26)
INADA Naoki [Sun, 19 Feb 2017 05:13:02 +0000 (14:13 +0900)]
[backport to 3.5] bpo-29529: Add .travis.yml to 3.5 branch (#26)

* Add .travis.yml to 3.5 branch

* Only run CI checks when appropriate files have changed (#74)

Closes python/core-workflow#14

* Travis CI: run rstlint.py in the docs job (#68)

Currently, http://buildbot.python.org/all/buildslaves/ware-docs
buildbot is only run as post-commit. For example, bpo-29521 (PR#41)
introduced two warnings, unnotified by the Travis CI docs job.

Modify the docs job to run toosl/rstlint.py.

Fix also the two minor warnings which causes the buildbot slave to
fail.

* Use 'make check' instead of 'python3 tools/rstlint.py' (#96)

7 years ago[3.5] bpo-29571: Use correct locale encoding in test_re (#149) (#154)
Nick Coghlan [Sun, 19 Feb 2017 04:33:50 +0000 (10:03 +0530)]
[3.5] bpo-29571: Use correct locale encoding in test_re (#149) (#154)

``local.getlocale(locale.LC_CTYPE)`` and
``locale.getpreferredencoding(False)`` may give different answers
in some cases (such as the ``en_IN`` locale).

``re.LOCALE`` uses the latter, so update the test case to match.

7 years agoBackport35 doc fixes: PR#68 and PR#124 (#125) (#126)
Victor Stinner [Thu, 16 Feb 2017 09:43:16 +0000 (10:43 +0100)]
Backport35 doc fixes: PR#68 and PR#124 (#125) (#126)

* Travis CI: run rstlint.py in the docs job (#68)

Currently, http://buildbot.python.org/all/buildslaves/ware-docs
buildbot is only run as post-commit. For example, bpo-29521 (PR#41)
introduced two warnings, unnotified by the Travis CI docs job.

Modify the docs job to run toosl/rstlint.py.

Fix also the two minor warnings which causes the buildbot slave to
fail.
(cherry picked from commit 2b501866ed493758e4c4b29f0ce9b24023d910a1)

* Doc/Makefile: set PYTHON to python3 (#124)

rstlint.py run by "make check" doesn't support Python 2.

"make venv" runs "$(PYTHON) -m venv", whereas Python 2 doens't
provide the venv module: it's a module of Python 3 standard library.

(cherry picked from commit 91b0e7d0ca7c59df28f6a6fc1e8eb86a3925b76c)
(cherry picked from commit b300c660d34d2027d443098ea605a8e0eb51d383)

7 years agobpo-29521 update Misc/ACKS (#111)
Mariatta [Wed, 15 Feb 2017 23:14:38 +0000 (15:14 -0800)]
bpo-29521 update Misc/ACKS (#111)

(cherry picked from commit 6420088b924a23e5de40be6623d2a80b12f71d97)

7 years ago[cherry-pick for 3.5] bpo-29481: add versionadded 3.5.4 to typing.Deque docs (#109)
Mariatta [Wed, 15 Feb 2017 19:39:37 +0000 (11:39 -0800)]
[cherry-pick for 3.5] bpo-29481: add versionadded 3.5.4 to typing.Deque docs (#109)

(cherry picked from commit 7e147f1ddb8233964ff0981e6b64fc12edac99aa)

7 years agoUpdate URL of Mersenne Twister Home Page (#20) (#114)
INADA Naoki [Wed, 15 Feb 2017 09:59:45 +0000 (18:59 +0900)]
Update URL of Mersenne Twister Home Page (#20) (#114)

7 years agobpo-29521 Fix two minor documentation build warnings (#41) (#84)
Mariatta [Tue, 14 Feb 2017 16:54:22 +0000 (08:54 -0800)]
bpo-29521 Fix two minor documentation build warnings (#41) (#84)

Much of bpo-29521 was fixed in parallel with commit
e7ffb99 .  This cleans up the rest.

Apply parallel change to Doc/make.bat to read
"set SPHINXOPTS=-D latex_elements.papersize="
I don't have a Windows system on which to observe the warning,
but it should be necessary.

The warning:

.../workspace/cpython_github/Doc/faq/windows.rst:303:
    WARNING: unknown option: -t

In the Windows FAQ, `How do I keep editors from inserting tabs
into my Python source?`, contained a reference to a Python -t
option. In Python 2.x, this caused Python to issue warnings
about lines with mixed spaces and tabs, but as of Python 3.6
it does nothing.

Per discussion at http://bugs.python.org/issue29387, take
their wording. Python [3] raises an IndentationError or
TabError. Tabnanny is now a module.
(cherry picked from commit 3d707be950b387552585451071928e7b39cdfa53)

7 years agoFix some sphinx warnings (#9) (#82)
Mariatta [Tue, 14 Feb 2017 14:12:15 +0000 (06:12 -0800)]
Fix some sphinx warnings (#9) (#82)

* Fix some deprecation warnings in Doc/conf.py
* Fix an rst error in Misc/NEWS

Contributed by Ryan Gonzalez @kirbyfan64

(cherry picked from commit e7ffb99f842ebff97cffa0fc90b18be4e5abecf2)

7 years agoA few README tweaks (#73) (#80)
Mariatta [Mon, 13 Feb 2017 23:49:08 +0000 (15:49 -0800)]
A few README tweaks (#73) (#80)

* Add a paragraph at the top for users, not builders, of Python.

* Use nicer rst url syntax to avoid borking paragraphs in the plain text.

Contributed by Ned Batchelder @nedbat

(cherry picked from commit 3cdbd68ce8230cff1afb67472b96fbfa7f047e32)

7 years agobpo-28556: Various updates to typing (#28) (#78)
Mariatta [Mon, 13 Feb 2017 22:28:58 +0000 (14:28 -0800)]
bpo-28556: Various updates to typing (#28) (#78)

various updates from upstream python/typing repo:

- Added typing.Counter and typing.ChainMap generics
- More flexible typing.NamedTuple
- Improved generic ABC caching
- More tests
- Bugfixes
- Other updates

* Add Misc/NEWS entry

* Add issue number

Contributed by Ivan Levkivskyi @ilevkivskyi

(cherry picked from commit b692dc8475a032740576129d0990ddc3edccab2b)

7 years agoSupport "bpo-" in Misc/NEWS (#1) (#43)
Mariatta [Mon, 13 Feb 2017 20:11:25 +0000 (12:11 -0800)]
Support "bpo-" in Misc/NEWS (#1) (#43)

Change the url to 3.5

(cherry picked from commit 79ab8be05fb4ffb5c258d2ca49be5fc2d4880431)

Contributed by Brett Cannon

7 years agobpo-29438: Fixed use-after-free in key sharing dict (#40)
INADA Naoki [Mon, 13 Feb 2017 00:16:20 +0000 (09:16 +0900)]
bpo-29438: Fixed use-after-free in key sharing dict (#40)

7 years ago[backport to 3.5] bpo-28929: Link the documentation to its source file on GitHub...
Mariatta [Sun, 12 Feb 2017 21:08:00 +0000 (13:08 -0800)]
[backport to 3.5] bpo-28929: Link the documentation to its source file on GitHub (#36)

* bpo-28929: Link the documentation to its source file on GitHub

Change the documentation's `Show Source` link on the left menu
to GitHub source file.

(cherry picked from commit 23bafa294c75c20cb85ae5d97d7571a3a0ad8dd3)

* remove if statement

7 years agobpo-29474: Improve documentation for weakref.WeakValueDictionary (#23)
Mariatta [Sun, 12 Feb 2017 16:21:36 +0000 (08:21 -0800)]
bpo-29474: Improve documentation for weakref.WeakValueDictionary (#23)

There were some grammatical errors in weakref.WeakValueDictionary
documentation.

7 years agobpo-27122: Fix comment to point to correct issue number (#50)
Berker Peksag [Sun, 12 Feb 2017 16:18:00 +0000 (19:18 +0300)]
bpo-27122: Fix comment to point to correct issue number (#50)

It took me quite a bit to figure out what this was referring to,
since the given issue number is wrong, and the original commit
message I found through git blame lists a different, also wrong
issue number... see https://bugs.python.org/issue27122#msg279449

(cherry picked from commit af88e7eda4101f36e904771d3cf59a5f740b3b00)

7 years agoFix #29519: weakref spewing exceptions during interp finalization
Łukasz Langa [Fri, 10 Feb 2017 08:14:55 +0000 (00:14 -0800)]
Fix #29519: weakref spewing exceptions during interp finalization

7 years agoIssue #26355: Specify canonical URLs in docs pages
Nick Coghlan [Thu, 9 Feb 2017 15:03:59 +0000 (16:03 +0100)]
Issue #26355: Specify canonical URLs in docs pages

Add canonical header link on each page to corresponding major
version of the documentation.

Patch by Matthias Bussonnier.

7 years agoIssue #29441: Update examples to use async and await keywords in asyncio-task.rst
Berker Peksag [Tue, 7 Feb 2017 08:27:09 +0000 (11:27 +0300)]
Issue #29441: Update examples to use async and await keywords in asyncio-task.rst

7 years agoIssue #29314: Set the stacklevel to two in asyncio.async() Deprecation Warning
Mariatta Wijaya [Tue, 7 Feb 2017 06:03:00 +0000 (22:03 -0800)]
Issue #29314: Set the stacklevel to two in asyncio.async() Deprecation Warning

7 years agoIssue #29371: Clarify bitwise OR operation in doctest option flags.
Mariatta Wijaya [Tue, 7 Feb 2017 04:15:01 +0000 (20:15 -0800)]
Issue #29371: Clarify bitwise OR operation in doctest option flags.

7 years agoIncludes ensurepip and venv packages in nuget package.
Steve Dower [Mon, 6 Feb 2017 22:11:34 +0000 (14:11 -0800)]
Includes ensurepip and venv packages in nuget package.

7 years agoIssue #29319: Prevent RunMainFromImporter overwriting sys.path[0].
Steve Dower [Sat, 4 Feb 2017 23:39:21 +0000 (15:39 -0800)]
Issue #29319: Prevent RunMainFromImporter overwriting sys.path[0].

7 years agoIssue #29392: Prevent crash when passing invalid arguments into msvcrt module.
Steve Dower [Sat, 4 Feb 2017 23:05:13 +0000 (15:05 -0800)]
Issue #29392: Prevent crash when passing invalid arguments into msvcrt module.

7 years agoIssue #29416: Prevent infinite loop in pathlib.Path.mkdir
Steve Dower [Sat, 4 Feb 2017 22:54:56 +0000 (14:54 -0800)]
Issue #29416: Prevent infinite loop in pathlib.Path.mkdir

7 years agoIssue #29444: Fixed out-of-bounds buffer access in the group() method of
Serhiy Storchaka [Sat, 4 Feb 2017 20:53:57 +0000 (22:53 +0200)]
Issue #29444: Fixed out-of-bounds buffer access in the group() method of
the match object.  Based on patch by WGH.

7 years agoIssue #27867: Silenced may-be-used-uninitialized warnings after
Serhiy Storchaka [Sat, 4 Feb 2017 09:04:00 +0000 (11:04 +0200)]
Issue #27867: Silenced may-be-used-uninitialized warnings after
using PySlice_GetIndicesEx() in debug builds.

7 years agoIssue #29198: Fix indentation and markup in typing.rst
Berker Peksag [Sat, 4 Feb 2017 06:34:16 +0000 (09:34 +0300)]
Issue #29198: Fix indentation and markup in typing.rst

Patch by Jelle Zijlstra.

7 years agoIssue #29198: Document typing.AsyncGenerator
Berker Peksag [Sat, 4 Feb 2017 06:18:11 +0000 (09:18 +0300)]
Issue #29198: Document typing.AsyncGenerator

Patch by Jelle Zijlstra.

7 years agoFixes #29213: regularised EOLs of venv scripts.
Vinay Sajip [Thu, 2 Feb 2017 19:25:24 +0000 (19:25 +0000)]
Fixes #29213: regularised EOLs of venv scripts.

7 years agoFixes #24875: pip can now be installed in a venv with --system-site-packages.
Vinay Sajip [Thu, 2 Feb 2017 19:05:19 +0000 (19:05 +0000)]
Fixes #24875: pip can now be installed in a venv with --system-site-packages.

7 years agoIssue #29300: test_struct tests unpack_from() with keywords
Victor Stinner [Thu, 2 Feb 2017 13:18:18 +0000 (14:18 +0100)]
Issue #29300: test_struct tests unpack_from() with keywords

Add an unit test on the _struct.Struct.unpack_from() method to test passing
arguments as keywords.

7 years agoIssue #29407: Remove redundant ensure_future() calls in factorial example
Berker Peksag [Wed, 1 Feb 2017 19:37:16 +0000 (22:37 +0300)]
Issue #29407: Remove redundant ensure_future() calls in factorial example

7 years agoIssue #29169: Fix NEWS entry.
doko@ubuntu.com [Wed, 1 Feb 2017 12:01:17 +0000 (13:01 +0100)]
Issue #29169: Fix NEWS entry.

7 years agogc types needs to be allocated as such (closes #29398)
Benjamin Peterson [Wed, 1 Feb 2017 07:31:02 +0000 (23:31 -0800)]
gc types needs to be allocated as such (closes #29398)

7 years ago- Issue #29169: Update zlib to 1.2.10.
doko@ubuntu.com [Tue, 31 Jan 2017 12:49:48 +0000 (13:49 +0100)]
- Issue #29169: Update zlib to 1.2.10.

7 years agoadd Modules/zlib/zlib.map to .hgeol
doko@ubuntu.com [Tue, 31 Jan 2017 12:34:58 +0000 (13:34 +0100)]
add Modules/zlib/zlib.map to .hgeol

7 years agoIssue #11670: readfp(fp) parameter name is different to read_file(f)
Martin Panter [Sun, 29 Jan 2017 23:33:27 +0000 (23:33 +0000)]
Issue #11670: readfp(fp) parameter name is different to read_file(f)

7 years agoIssue #29349: Use __future__ print_function; Sphinx may use Python 2.6+
Martin Panter [Sun, 29 Jan 2017 23:33:13 +0000 (23:33 +0000)]
Issue #29349: Use __future__ print_function; Sphinx may use Python 2.6+

7 years agoIssue #29349: Fix Python 2 syntax in documentation build code
Martin Panter [Sun, 29 Jan 2017 10:05:02 +0000 (10:05 +0000)]
Issue #29349: Fix Python 2 syntax in documentation build code

7 years agoIssue #12067: Recommend that hash and equality be consistent
Martin Panter [Sun, 29 Jan 2017 10:00:23 +0000 (10:00 +0000)]
Issue #12067: Recommend that hash and equality be consistent

7 years agoFixes #29308: Respect VIRTUAL_ENV_DISABLE_PROMPT in Activate.ps1.
Vinay Sajip [Fri, 27 Jan 2017 12:41:27 +0000 (12:41 +0000)]
Fixes #29308: Respect VIRTUAL_ENV_DISABLE_PROMPT in Activate.ps1.

7 years agoIssue #27867: Function PySlice_GetIndicesEx() is replaced with a macro if
Serhiy Storchaka [Wed, 25 Jan 2017 11:23:05 +0000 (13:23 +0200)]
Issue #27867: Function PySlice_GetIndicesEx() is replaced with a macro if
Py_LIMITED_API is not set or set to the value between 0x03050400
and 0x03060000 (not including) or 0x03060100 or higher.

7 years agoIssue #29083: Fixed the declaration of some public API functions.
Serhiy Storchaka [Tue, 24 Jan 2017 19:27:12 +0000 (21:27 +0200)]
Issue #29083: Fixed the declaration of some public API functions.
PyArg_VaParse() and PyArg_VaParseTupleAndKeywords() were not available in
limited API.  PyArg_ValidateKeywordArguments(), PyArg_UnpackTuple() and
Py_BuildValue() were not available in limited API of version < 3.3 when
PY_SSIZE_T_CLEAN is defined.

7 years agoIssue #29337: Fixed possible BytesWarning when compare the code objects.
Serhiy Storchaka [Tue, 24 Jan 2017 18:49:26 +0000 (20:49 +0200)]
Issue #29337: Fixed possible BytesWarning when compare the code objects.
Warnings could be emitted at compile time.

7 years agoIssue #29189: Fix indentation in RST markup
Martin Panter [Tue, 24 Jan 2017 00:26:56 +0000 (00:26 +0000)]
Issue #29189: Fix indentation in RST markup

7 years agoIssue #29273: Remove unneeded workaround to restore locale
Martin Panter [Mon, 23 Jan 2017 22:11:09 +0000 (22:11 +0000)]
Issue #29273: Remove unneeded workaround to restore locale

The “readline” module already has a workaround using setlocale(LC_CTYPE,
NULL). The code in test___all__ calls getlocale(), which can subtly alter
the locale string and cause the test framework to complain.

7 years agoIssue #26729: Fixed __text_signature__ for sorted().
Serhiy Storchaka [Mon, 23 Jan 2017 10:29:47 +0000 (12:29 +0200)]
Issue #26729: Fixed __text_signature__ for sorted().
Patch by Erik Welch.

7 years agoSkip the test requiring ctypes if ctypes is unavailable.
Gregory P. Smith [Mon, 23 Jan 2017 06:19:38 +0000 (22:19 -0800)]
Skip the test requiring ctypes if ctypes is unavailable.

prevents http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/240/steps/test/logs/stdio