3.6 by hemanthc21 · Pull Request #1968 · python/cpython
and others added 30 commits
March 10, 2017 01:06(cherry picked from commit 7e52c3e)
(cherry picked from commit 4b2a2a4)
) (cherry picked from commit 70ee0cd)
(cherry picked from commit d3b8f98)
(cherry picked from commit 482f7a2)
(cherry picked from commit c611a5b)
In git worktree directories, `.git` is a configuration file rather than a subdirectory (cherry picked from commit 6a6d090)
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 d2977a3)
(cherry picked from commit c6b448b)
(cherry picked from commit 1bb0f37)
(cherry picked from commit 9764c15)
(cherry picked from commit d37c068)
Initial patch by Vajrasky Kok. (cherry picked from commit 3f2155f)
Replace `an ModuleNotFoundError` with `a ModuleNotFoundError`. Replace `an path` with `a path`. (cherry picked from commit 9c972b5)
…1868) The data model section of the language reference was written well before the zero-argument form of super() was added. To avoid giving the impression that they're doing something unusual, this updates the description of `__new__` and `__init__` to use the zero-argument form. Patch by Cheryl Sabella. (cherry picked from commit 12b1c18)
(cherry picked from commit eba68e2)
(cherry picked from commit f34c685)
(cherry picked from commit a5aa72a)
(cherry picked from commit 0737ee2)
) (GH-1915) Builtin container types have two potential link targets in the docs: - their entry in the list of builtin callables - their type documentation This change brings `bytes` and `bytearray` into line with other container types by having cross-references default to linking to their type documentation, rather than their builtin callable entry.. (cherry picked from commit c6db481)
Initially the macOS builds are allowed to fail until such time that they can be determined to be stable and not add an unacceptable amount of time to the overall Travis-passing process. (cherry picked from commit 21c2dd7)
Also on the short-lived `buildbot-custom` branch. (cherry picked from commit d3bedf3)
Update the code example in Functions and Methods section Remove objtype argument in MethodType (cherry picked from commit 1bced56)
) Also weakens the 'should this be run?' regex to allow all builds when .travis.yml changes. (cherry picked from commit c53b13b)
The patch for bpo-30052 changed the preferred link target for :func:`bytes` and :func`bytearray` references to be the respective type definitions rather than the corresponding builtin function entries. This patch changes the daily documentation builds to disable the output caching in Sphinx, in order to ensure that cross-reference changes like this one are reliably picked up and applied automatically after merging. (cherry picked from commit 7a82f9c)
(cherry picked from commit 167e0fc)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters