]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Tue, 12 Mar 2019 04:00:59 +0000 (21:00 -0700)]
[3.7] bpo-35931: Gracefully handle any exception in pdb debug command (GH-12103) (GH-12285)
This is relevant for `debug doesnotexist()`, which would crash with a
NameError otherwise.
(cherry picked from commit
3e936431e23b424b1e4665e8165c245924f0ab02 )
Co-authored-by: Daniel Hahler <github@thequod.de>
https://bugs.python.org/issue35931
Miss Islington (bot) [Mon, 11 Mar 2019 14:23:30 +0000 (07:23 -0700)]
[3.7] Doc: Fix inconsistency in multiprocessing (GH-12273) (GH-12275)
(cherry picked from commit
d9bd8ec2a40ea67bc4248a72943a409ee645ddf3 )
Co-authored-by: Julien Palard <julien@palard.fr>
Miss Islington (bot) [Mon, 11 Mar 2019 13:18:40 +0000 (06:18 -0700)]
bpo-36234: Add more tests to PosixUidGidTests (GH-12234)
test_posix.PosixUidGidTests:
* Add tests for invalid uid/gid type (str)
* Add UID_OVERFLOW and GID_OVERFLOW constants to replace (1 << 32)
Initial patch written by David Malcolm.
Co-Authored-By: David Malcolm <dmalcolm@redhat.com>
(cherry picked from commit
876e82b4f32075e1bd21750bf852a103035fce23 )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Mon, 11 Mar 2019 00:37:36 +0000 (17:37 -0700)]
bpo-36176: Fix IDLE autocomplete & calltip popup colors. (GH-12262)
Prevent conflicts with Linux dark themes
(and slightly darken calltip background).
(cherry picked from commit
491ef53c1548c2b593d3c35d1e7bf25ccb443019 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 10 Mar 2019 17:30:35 +0000 (10:30 -0700)]
bpo-35647: Fix path check in cookiejar (GH-11436)
* Refactor cookie path check as per RFC 6265
* Add tests for prefix match of path
* Add news entry
* Fix set_ok_path and refactor tests
* Use slice for last letter
(cherry picked from commit
0e1f1f01058bd4a9b98cfe443214adecc019a38c )
Co-authored-by: Xtreak <tir.karthi@gmail.com>
Miss Islington (bot) [Sun, 10 Mar 2019 11:36:18 +0000 (04:36 -0700)]
bpo-21314: Add a FAQ entry about positional only parameters (GH-10641)
(cherry picked from commit
1aeeaeb79efa4de41f97b58547e23c2965ecabc5 )
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Miss Islington (bot) [Sun, 10 Mar 2019 11:12:12 +0000 (04:12 -0700)]
Fix padding on asyncio.IncompleteReadError docs (GH-12258)
(cherry picked from commit
11205b80309a01666eefee2301a244aa73a4c450 )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Sun, 10 Mar 2019 10:52:44 +0000 (03:52 -0700)]
bpo-36251: Fix format strings used in match_repr() and stdprinter_repr(). (GH-12252)
(cherry picked from commit
8b91edadc06dcb0d391a65d1ecdf07dcb429df1b )
Co-authored-by: sth <sth.dev@tejp.de>
Miss Islington (bot) [Sun, 10 Mar 2019 02:58:25 +0000 (18:58 -0800)]
bpo-35121: prefix dot in domain for proper subdomain validation (GH-10258) (GH-12261)
Don't send cookies of domain A without Domain attribute to domain B when domain A is a suffix match of domain B while using a cookiejar with `http.cookiejar.DefaultCookiePolicy` policy. Patch by Karthikeyan Singaravelan.
(cherry picked from commit
ca7fe5063593958e5efdf90f068582837f07bd14 )
Co-authored-by: Xtreak <tir.karthi@gmail.com>
Miss Islington (bot) [Sat, 9 Mar 2019 17:56:40 +0000 (09:56 -0800)]
Fix typos and improve grammar in threading.Barrier docstrings (GH-12210)
(cherry picked from commit
62fa51f1216e788310d3118f4259f1b4b1e529fe )
Co-authored-by: Carl Bordum Hansen <carl@bordum.dk>
Miss Islington (bot) [Fri, 8 Mar 2019 21:44:39 +0000 (13:44 -0800)]
bpo-35807: Upgrade ensurepip bundled pip and setuptools (GH-12189)
* Update pip to 19.0.3
* Update setuptools to 40.8.0
(cherry picked from commit
01e0f439f5009f37b95ab516e91906fcc7fcb8c3 )
Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
Miss Islington (bot) [Fri, 8 Mar 2019 21:44:21 +0000 (13:44 -0800)]
bpo-35899: Fix Enum handling of empty and weird strings (GH-11891)
Co-authored-by: Maxwell <maxwellpxt@gmail.com>
Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
https://bugs.python.org/issue35899
(cherry picked from commit
8b914d2767acba3a9e78f1dacdc2d61dbfd7e304 )
Co-authored-by: Brennan D Baraban <34765317+bdbaraban@users.noreply.github.com>
Miss Islington (bot) [Fri, 8 Mar 2019 08:25:52 +0000 (00:25 -0800)]
bpo-34162: Add entries for idlelib/NEWS.txt (GH-12232)
(cherry picked from commit
8a1bab92915dd5c88832706c56af2f5611181d50 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Fri, 8 Mar 2019 01:44:31 +0000 (17:44 -0800)]
Fix typo (double 'the') in CODEOWNERS (GH-12227)
(cherry picked from commit
f2320b37d9c85d8ddfc0c6afa81b77cd5f6e5ef2 )
Co-authored-by: Benedikt Werner <1benediktwerner@gmail.com>
Miss Islington (bot) [Thu, 7 Mar 2019 18:39:34 +0000 (10:39 -0800)]
bpo-36140: Fix an incorrect check in msidb_getsummaryinformation() (GH-12074)
(cherry picked from commit
bf94cc7b496a379e1f604aa2e4080bb70ca4020e )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Thu, 7 Mar 2019 17:44:53 +0000 (09:44 -0800)]
bpo-36108: Avoid failing the build on race condition in clean (GH-12217)
(cherry picked from commit
2f8f56499c20af70ff5037fdbc5d738e56d9eab0 )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Steve Dower [Thu, 7 Mar 2019 17:08:18 +0000 (09:08 -0800)]
bpo-36216: Add check for characters in netloc that normalize to separators (GH-12201)
Miss Islington (bot) [Thu, 7 Mar 2019 05:30:33 +0000 (21:30 -0800)]
Fix the documentation for set.copy() (GH-12176)
Remove 's' mention as there's no argument.
(cherry picked from commit
e942e7b5c91995ae1ad967ef2c0f116a5d8555de )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Thu, 7 Mar 2019 05:24:55 +0000 (21:24 -0800)]
bpo-36185: Fix typo in Doc/c-api/objbuffer.rst. (GH-12204)
(cherry picked from commit
ecc161d1209bf6d21f0fd6bef28476eda7cdaf79 )
Co-authored-by: Emmanuel Arias <emmanuelarias30@gmail.com>
Miss Islington (bot) [Wed, 6 Mar 2019 14:54:54 +0000 (06:54 -0800)]
bpo-36209: Fix typo on hashlib error message (GH-12194)
(cherry picked from commit
b71e28ea91259ca3914e2ff84fc126795ea6b848 )
Co-authored-by: Emmanuel Arias <emmanuelarias30@gmail.com>
Victor Stinner [Tue, 5 Mar 2019 15:17:43 +0000 (16:17 +0100)]
[3.7] bpo-29571: Fix test_re.test_locale_flag() (GH-12178)
Use locale.getpreferredencoding() rather than locale.getlocale() to
get the locale encoding. With some locales, locale.getlocale()
returns the wrong encoding.
For example, on Fedora 29, locale.getlocale() returns ISO-8859-1
encoding for the "en_IN" locale, whereas
locale.getpreferredencoding() reports the correct encoding: UTF-8.
On Windows, set temporarily the LC_CTYPE locale to the user preferred
encoding to ensure that it uses the ANSI code page, to be consistent
with locale.getpreferredencoding().
Miss Islington (bot) [Tue, 5 Mar 2019 04:49:47 +0000 (20:49 -0800)]
Doc: Use `option` word for command line interface. (GH-12142)
For command line option, `option` is better than `parameter`.
(cherry picked from commit
0983fcd0d5bd00c6b0dd3040760226f67aa831cd )
Co-authored-by: NAKAMURA Osamu <osamu0329nakamura@users.noreply.github.com>
Miss Islington (bot) [Mon, 4 Mar 2019 19:41:31 +0000 (11:41 -0800)]
Fixed a missing . and a missing capital letter. (GH-12170)
(cherry picked from commit
7e9ce4c89e9a34ff84a89831812bc8b42d37ac1f )
Co-authored-by: Jules Lasne (jlasne) <jlasne@student.42.fr>
Miss Islington (bot) [Mon, 4 Mar 2019 16:17:30 +0000 (08:17 -0800)]
bpo-36179: Fix ref leaks in _hashopenssl (GH-12158)
Fix two unlikely reference leaks in _hashopenssl. The leaks only occur in
out-of-memory cases. Thanks to Charalampos Stratakis.
Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue36179
(cherry picked from commit
b7bc283ab6a23ee98784400ebffe7fe410232a2e )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Mon, 4 Mar 2019 15:06:36 +0000 (07:06 -0800)]
bpo-35198 Fix C++ extension compilation on AIX (GH-10437)
For C++ extensions, distutils tries to replace the C compiler with the
C++ compiler, but it assumes that C compiler is the first element after
any environment variables set. On AIX, linking goes through ld_so_aix,
so it is the first element and the compiler is the next element. Thus
the replacement is faulty:
ld_so_aix gcc ... -> g++ gcc ...
Also, it assumed that self.compiler_cxx had only 1 element or that
there were the same number of elements as the linker has and in the
same order. This might not be the case, so instead concatenate
everything together.
(cherry picked from commit
800d5cd75025876d79ab05980925a05d8e36b63d )
Co-authored-by: Kevin Adler <kadler@us.ibm.com>
Miss Islington (bot) [Mon, 4 Mar 2019 13:01:47 +0000 (05:01 -0800)]
bpo-20906: Various revisions to the Unicode howto (GH-8394)
* bpo-20906: Corrections & revisions to Unicode HOWTO
* bpo-34484: don't describe range as a Private Use Area
(cherry picked from commit
97c288df614dd7856f5a0336925f56a7a2a5bc74 )
Co-authored-by: Andrew Kuchling <amk@amk.ca>
Miss Islington (bot) [Sun, 3 Mar 2019 23:09:10 +0000 (15:09 -0800)]
fixed duplicated method name of test_getuserbase() (GH-12140)
(cherry picked from commit
45d8d2469a48589e950dad2452043188eb9399a3 )
Co-authored-by: native-api <ivan_pozdeev@mail.ru>
Miss Islington (bot) [Sun, 3 Mar 2019 17:14:44 +0000 (09:14 -0800)]
Autospec functions should propagate mock calls to parent GH-11273 (#12039)
(cherry picked from commit
9c3f284de598550be6687964c23fd7599e53b20e )
Co-authored-by: Xtreak <tir.karthi@gmail.com>
Miss Islington (bot) [Sun, 3 Mar 2019 14:54:39 +0000 (06:54 -0800)]
bpo-36091: Remove reference to async generator in Lib/types.py. (GH-11996)
(cherry picked from commit
0a6a412fb27d6874a0db5cc82a97f54d7c5fd0f2 )
Co-authored-by: Henry Chen <tahafut@gmail.com>
Miss Islington (bot) [Fri, 1 Mar 2019 23:13:57 +0000 (15:13 -0800)]
bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. (GH-12031)
Patch by Kevin Walzer.
(cherry picked from commit
7eebbbd5b3907447eddadf5cb7cb1cc9230d15b2 )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Fri, 1 Mar 2019 17:40:10 +0000 (09:40 -0800)]
bpo-35178: Fix warnings._formatwarnmsg() (GH-12033)
Ensure custom formatwarning function can receive line as positional argument.
Co-Authored-By: Tashrif Billah <tashrifbillah@gmail.com>
(cherry picked from commit
be7c460fb50efe3b88a00281025d76acc62ad2fd )
Co-authored-by: Xtreak <tir.karthi@gmail.com>
Miss Islington (bot) [Fri, 1 Mar 2019 10:43:43 +0000 (02:43 -0800)]
bpo-36152: IDLE: Remove unused parameter from colorizer (GH-12109)
Remove colorizer.ColorDelegator.close_when_done and the corresponding argument of .close(). In IDLE, both have always been None or False since 2007.
(cherry picked from commit
b9f0354efce95b7557bc43ea193c4b652cd28392 )
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Cheryl Sabella [Thu, 28 Feb 2019 18:11:35 +0000 (13:11 -0500)]
[3.7] Add versionadded directives to ssl.minimum_version and ssl.maxi… (GH-12101)
…mum_version (GH-11894).
(cherry picked from commit
ae2ea33d5da34a777e77d489b700ff45d753934f )
Co-authored-by: Zhiming Wang <i@zhimingwang.org>
Miss Islington (bot) [Wed, 27 Feb 2019 23:45:28 +0000 (15:45 -0800)]
Document the surprising sideeffect PyErr_Print(). (GH-12081)
Did you know an API documented as printing the pending traceback would sometimes exit the process?
You do now.
(cherry picked from commit
4173772031747a9b249be4100b4aa9eda805ea23 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Wed, 27 Feb 2019 23:27:36 +0000 (15:27 -0800)]
Fix grammar error in timeit module docs (GH-12066)
skip issue
skip news
(cherry picked from commit
4064089fce57c6fb2d1df9f3fb51d3fd5557696b )
Co-authored-by: Shiv Dhar <shivdhar@gmail.com>
Miss Islington (bot) [Wed, 27 Feb 2019 22:29:13 +0000 (14:29 -0800)]
[3.7] Update FAQ to point to Infrastructure Team website. (GH-12077) (GH-12078)
(cherry picked from commit
ccb92e814d289b89bccf9ad1b7d2ec6ecdebbfcb )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Wed, 27 Feb 2019 19:14:06 +0000 (11:14 -0800)]
bpo-36096: IDLE: Refactor class variables in colorizer (GH-12002) (GH-12075)
(cherry picked from commit
ed1deb0719f0ac1b08a374e30ad26a701d4d51a2 )
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Miss Islington (bot) [Wed, 27 Feb 2019 09:24:34 +0000 (01:24 -0800)]
bpo-28441: Ensure `.exe` suffix in `sys.executable` on MinGW and Cygwin (GH-4348)
This is needed to even the run the test suite on buildbots for affected platforms; e.g.:
```
./python.exe ./Tools/scripts/run_tests.py -j 1 -u all -W --slowest --fail-env-changed --timeout=11700 -j2
/home/embray/src/python/test-worker/3.x.test-worker/build/python -u -W default -bb -E -W error::BytesWarning -m test -r -w -j 1 -u all -W --slowest --fail-env-changed --timeout=11700 -j2
Traceback (most recent call last):
File "./Tools/scripts/run_tests.py", line 56, in <module>
main(sys.argv[1:])
File "./Tools/scripts/run_tests.py", line 52, in main
os.execv(sys.executable, args)
PermissionError: [Errno 13] Permission denied
make: *** [Makefile:1073: buildbottest] Error 1
```
(cherry picked from commit
7a7693e9cb12e5571c76331db56a28eef9acb6e0 )
Co-authored-by: E. M. Bray <erik.m.bray@gmail.com>
Miss Islington (bot) [Tue, 26 Feb 2019 16:48:52 +0000 (08:48 -0800)]
bpo-36123: Fix test_socket.testWithTimeoutTriggeredSend() race condition (GH-12053)
Use longer timeout for accept() in the server and block on accept in the client.
The client now only sets the timeout once the socket is connected.
(cherry picked from commit
53b9e1a1c1d86187ad6fbee492b697ef8be74205 )
Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
Miss Islington (bot) [Tue, 26 Feb 2019 07:10:54 +0000 (23:10 -0800)]
bpo-36106: Resolve sinpi name clash with libm (IEEE-754 violation). (GH-12027)
The standard math library (libm) may follow IEEE-754 recommendation to
include an implementation of sinPi(), i.e. sinPi(x):=sin(pi*x).
And this triggers a name clash, found by FreeBSD developer
Steve Kargl, who worken on putting sinpi into libm used on FreeBSD
(it has to be named "sinpi", not "sinPi", cf. e.g.
https://en.cppreference.com/w/c/experimental/fpext4).
(cherry picked from commit
f57cd8288dbe6aba99c057f37ad6d58f8db75350 )
Co-authored-by: Dima Pasechnik <dimpase@gmail.com>
Benjamin Peterson [Tue, 26 Feb 2019 05:59:37 +0000 (21:59 -0800)]
Run autoreconf.
Miss Islington (bot) [Tue, 26 Feb 2019 05:59:14 +0000 (21:59 -0800)]
closes bpo-13497: Fix `broken nice` configure test. (GH-12041)
Per POSIX, `nice(3)` requires `unistd.h` and `exit(3)` requires `stdlib.h`.
Fixing the test will prevent false positives with pedantic compilers like clang.
(cherry picked from commit
90c6facebd5666fec85f125ee2795b48b30319a4 )
Co-authored-by: ngie-eign <1574099+ngie-eign@users.noreply.github.com>
Miss Islington (bot) [Tue, 26 Feb 2019 00:15:04 +0000 (16:15 -0800)]
bpo-24643: Fix "GH-define timezone _timezone" clashes on Windows (GH-12019)
(cherry picked from commit
6673decfa0fb078f60587f5cb5e98460eea137c2 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Mon, 25 Feb 2019 21:17:16 +0000 (13:17 -0800)]
bpo-35512: Resolve string target to patch.dict decorator during function call GHGH-12000 (#12021)
* Resolve string target to patch.dict during function call
* Add NEWS entry
* Remove unneeded call
* Restore original value for support.target and refactor assertions
* Add extra assertion to verify unpatched dict
(cherry picked from commit
a875ea58b29fbf510f9790ae1653eeaa47dc0de8 )
Co-authored-by: Xtreak <tir.karthi@gmail.com>
Serhiy Storchaka [Mon, 25 Feb 2019 16:28:53 +0000 (18:28 +0200)]
[3.7] bpo-28450: Fix and improve the documentation for unknown escapes in RE. (GH-11920). (GH-12029)
(cherry picked from commit
a180b007d96fe68b32f11dec720fbd0cd5b6758a )
Miss Islington (bot) [Mon, 25 Feb 2019 16:27:54 +0000 (08:27 -0800)]
Remove empty Dictionaries section from programming FAQ (GH-12026)
(cherry picked from commit
55e335d7d59be44819c6b672d258e2d5feb1e633 )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Mon, 25 Feb 2019 15:18:20 +0000 (07:18 -0800)]
Correct name of 'defaultobj' parameter in PyDict_SetDefault() signature. (GH-11929)
(cherry picked from commit
d90a141bb947b68601f8d1f37bc98f7b524f0e01 )
Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
Miss Islington (bot) [Mon, 25 Feb 2019 00:56:13 +0000 (16:56 -0800)]
closes bpo-36083: Fix formatting of the manpage Synopsis. (GH-12017)
More specifically, the options of --check-hash-based-pycs.
(cherry picked from commit
16323cb2c3d315e02637cebebdc5ff46be32ecdf )
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
Miss Islington (bot) [Sun, 24 Feb 2019 07:46:20 +0000 (23:46 -0800)]
bpo-27313: Avoid test_ttk_guionly ComboboxTest fail with macOS Cocoa Tk (GH-12011)
(cherry picked from commit
aeca373b339e0ea9739536ce6b43bd90f3b89873 )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Sun, 24 Feb 2019 04:23:08 +0000 (20:23 -0800)]
bpo-24310: Document IDLE settings dialog font tab sample (GH-12007)
(cherry picked from commit
d610116a2e48b55788b62e11f2e6956af06b3de0 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 24 Feb 2019 01:53:28 +0000 (17:53 -0800)]
fix _abc.c compile error on Cygwin (GH-8445)
(cherry picked from commit
abe5922743f62e130c4dad2f637274c38d6b1e8b )
Co-authored-by: E. M. Bray <erik.m.bray@gmail.com>
Miss Islington (bot) [Fri, 22 Feb 2019 14:03:26 +0000 (06:03 -0800)]
bpo-36019: Use pythontest.net instead of example.com in network tests (GH-11941)
(cherry picked from commit
a40681dd5db8deaf05a635eecb91498dac882aa4 )
Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
Miss Islington (bot) [Fri, 22 Feb 2019 11:14:08 +0000 (03:14 -0800)]
Include the --prompt flag in venv's help output (GH-10711)
Document usage of the existing `--prompt` option in the command line help.
(cherry picked from commit
3208880f1c72800bacf94a2045fcb0436702c7a1 )
Co-authored-by: Holger Frey <socials@holgerfrey.de>
Julien Palard [Fri, 22 Feb 2019 08:56:06 +0000 (09:56 +0100)]
[3.7] Doc: Missing backquotes. (GH-11982) (GH-11985)
(cherry picked from commit
6e240ddd0d06cca5da091144479b7db0637c73da )
Co-authored-by: Julien Palard <julien@palard.fr>
Miss Islington (bot) [Fri, 22 Feb 2019 00:45:31 +0000 (16:45 -0800)]
bpo-28235: Fix xml.etree.ElementTree.fromstring docs (GH-11903)
(cherry picked from commit
e5458bdb6af81f9b98acecd8819c60016d3f1441 )
Co-authored-by: Manjusaka <lizheao940510@gmail.com>
Miss Islington (bot) [Thu, 21 Feb 2019 17:47:46 +0000 (09:47 -0800)]
bpo-36060: Document how collections.ChainMap() determines iteration order (GH-11969) (GH-11978)
(cherry picked from commit
86f093f71a594dcaf21b67ba13dda72863e9bde9 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Thu, 21 Feb 2019 17:10:20 +0000 (09:10 -0800)]
Document other performance implication for __slots__ (GH-11974) (GH-11975)
(cherry picked from commit
7463884f6993edcd92bec56213ee1959034fd31c )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Thu, 21 Feb 2019 08:18:51 +0000 (00:18 -0800)]
bpo-36059: Update OrderedDict() docs to reflect that regular dicts are now ordered (GH-11966) (GH-#11972)
(cherry picked from commit
49fd6dd887df6ea18dbb1a3c0f599239ccd1cb42 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Thu, 21 Feb 2019 08:05:22 +0000 (00:05 -0800)]
bpo-33989: Ensure that ms.key_compare is always initialized in list_sort_impl(). (GH-8710)
(cherry picked from commit
ebc793d6acb9650b9f497808e059805892031d74 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Thu, 21 Feb 2019 07:59:28 +0000 (23:59 -0800)]
Doc: fix example for iter() function. (GH-11959)
read() returns bytes for a file opened in binary mode,
so b'' should be used as a sentinel instead of ''.
Otherwise the loop will be infinite.
(cherry picked from commit
11fa0e48a958716186eb99348a46064e944eccf6 )
Co-authored-by: Cristian Ciupitu <cristian.ciupitu@yahoo.com>
Miss Islington (bot) [Wed, 20 Feb 2019 22:23:29 +0000 (14:23 -0800)]
bpo-31982: Improve sequence of presentation in ChainMap docs (GH-11960) (GH-11961)
https://bugs.python.org/issue31982
(cherry picked from commit
9b0c681e2d7e708a07e34d9c08e4424bdd4f5ebc )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Tue, 19 Feb 2019 20:25:54 +0000 (12:25 -0800)]
bpo-35584: Clarify role of caret in a class class (GH-11946) (GH-11947)
https://bugs.python.org/issue35584
(cherry picked from commit
3bacf6126522a9b3bcb6be0c4f3ee6a895dfe772 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Tue, 19 Feb 2019 17:24:16 +0000 (09:24 -0800)]
bpo-36037: Fix test_ssl for strict OpenSSL policy (GH-11940)
Fix test_ssl for strict OpenSSL configuration like RHEL8 strict crypto policy.
Use older TLS version for minimum TLS version of the server SSL context if
needed, to test TLS version older than default minimum TLS version.
(cherry picked from commit
3ef6344ee53f59ee86831ec36ed2c6f93a56229d )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Tue, 19 Feb 2019 13:47:13 +0000 (05:47 -0800)]
bpo-31506: Clarify error messages for object.__new__ and object.__init__ (GH-11641)
`object.__new__` and `object.__init__` do take one argument each,
they just don't take extra user supplied arguments.
Patch by Sanyam Khurana.
(cherry picked from commit
5105483acb3aca318304bed056dcfd7e188fe4b5 )
Co-authored-by: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>
Miss Islington (bot) [Tue, 19 Feb 2019 12:16:36 +0000 (04:16 -0800)]
Fix syntax warnings in tests introduced in bpo-35942. (GH-11934)
(cherry picked from commit
8d01eb49fc7ff914feeb2e2090d1d6ef15c932ab )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 19 Feb 2019 12:12:16 +0000 (04:12 -0800)]
Fix a misnamed test for lists. (GH-11933)
(cherry picked from commit
f522a57ec77921ee2e60bd4ccda3c8daa5a43e95 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 19 Feb 2019 05:30:53 +0000 (21:30 -0800)]
bpo-35689: IDLE: Add docstrings and unittests for colorizer.py (GH-11472)
(cherry picked from commit
ee0f927bd8dba805a04963dbec1ad49fe830b842 )
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Miss Islington (bot) [Mon, 18 Feb 2019 15:52:32 +0000 (07:52 -0800)]
bpo-34572: change _pickle unpickling to use import rather than retrieving from sys.modules (GH-9047) (GH-11921)
Fix C implementation of pickle.loads to use importlib's locking mechanisms, and thereby avoid using partially-loaded modules.
(cherry picked from commit
4371c0a9c0848f7a0947d43f26f234842b41efdf )
Co-authored-by: tjb900 <ozburgess@gmail.com>
Miss Islington (bot) [Mon, 18 Feb 2019 13:48:23 +0000 (05:48 -0800)]
bpo-34294: re module, fix wrong capturing groups in rare cases. (GH-11546)
Need to reset capturing groups between two SRE(match) callings in loops, this fixes wrong capturing groups in rare cases.
Also add a missing index in re.rst.
(cherry picked from commit
4a7f44a2ed49ff1e87db062e7177a56c6e4bbdb0 )
Co-authored-by: animalize <animalize@users.noreply.github.com>
Miss Islington (bot) [Mon, 18 Feb 2019 11:05:52 +0000 (03:05 -0800)]
bpo-35942: Improve the error message if __fspath__ returns invalid types in path_converter (GH-11831)
The error message emitted when returning invalid types from __fspath__ in interfaces that allow passing PathLike objects has been improved and now it does explain the origin of the error.
(cherry picked from commit
09fbcd6085e18b534fd4161844ff39f77eb4a082 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Sun, 17 Feb 2019 23:33:04 +0000 (15:33 -0800)]
bpo-35992: Use PySequence_GetItem only if sq_item is not NULL (GH-11857)
Not using `__class_getitem__()` fallback if there is a non-subcriptable metaclass was caused by a certain asymmetry between how `PySequenceMethods` and `PyMappingMethods` are used in `PyObject_GetItem`. This PR removes this asymmetry. No tests failed, so I assume it was not intentional.
(cherry picked from commit
ac28147e78c45a6217d348ce90ca5281d91f676f )
Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
Miss Islington (bot) [Fri, 15 Feb 2019 21:19:44 +0000 (13:19 -0800)]
bpo-35931: Gracefully handle SyntaxError in pdb debug command (GH-11782)
Previously, `debug print(` would cause the interpreter to exit on a SyntaxError whereas `print(` would properly display the error and return to the pdb prompt.
This patch fixes this by pre-compiling the code before passing it to `Pdb.run`.
https://bugs.python.org/issue35931
(cherry picked from commit
4327705cfab3eb09073ec828570bbd8f789e1611 )
Co-authored-by: Daniel Hahler <github@thequod.de>
Miss Islington (bot) [Fri, 15 Feb 2019 20:47:04 +0000 (12:47 -0800)]
Improve readability of random module examples (GH-11884) (GH-11885)
Based on reviewer feedback from Allen Downey, convert ``lambda`` to ``def``.
(cherry picked from commit
9abb725cea7a1687b4d85ab9766ae6256a76a1ef )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Fri, 15 Feb 2019 19:31:28 +0000 (11:31 -0800)]
Fix the versionadded info for typing.NoReturn (GH-11880)
The earliest version that `typing.NoReturn` appears in is [3.5.4rc1](https://docs.python.org/3/whatsnew/changelog.htmlGH-python-3-5-4-release-candidate-1)
(cherry picked from commit
903567e4f54494c2f4148eec0504ad761ac942c2 )
Co-authored-by: Jack Wilsdon <jack.wilsdon@gmail.com>
Miss Islington (bot) [Fri, 15 Feb 2019 19:09:38 +0000 (11:09 -0800)]
bpo-36006: Fix versionchanged directive alignment in io module documentation (GH-11881)
https://bugs.python.org/issue36006
(cherry picked from commit
522630a7462f606300f1e6e6818de191d9dc3fdf )
Co-authored-by: Emmanuel Arias <emmanuelarias30@gmail.com>
Victor Stinner [Fri, 15 Feb 2019 12:19:30 +0000 (13:19 +0100)]
bpo-35746: Credit Colin Read and Nicolas Edet (GH-11864)
Add credit for the cert parser vulnerability. Mention also Cisco
TALOS-2018-0758 identifier.
Miss Islington (bot) [Fri, 15 Feb 2019 05:23:07 +0000 (21:23 -0800)]
bpo-35994: add sub dir for sub2_tree in os.walk test if symlink is not supported (GH-11853)
https://bugs.python.org/issue35994
(cherry picked from commit
3e028b2d40370dc986b6f3146a7ae927bc119f97 )
Co-authored-by: pxinwr <peixing.xin@windriver.com>
Miss Islington (bot) [Thu, 14 Feb 2019 23:45:20 +0000 (15:45 -0800)]
bpo-30410: Documentation of sys.stdin/out/err update to reflect change in 3.6 (GH-10264)
Documentation of sys.stdin/out/err update to reflect change in 3.6 on Windows to use UTF-8.
Wording by Eryk Sun and Paul Moore.
https://bugs.python.org/issue30410
(cherry picked from commit
5723263a3a39a05b6a2f567e0e7771792e6e2f5b )
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Miss Islington (bot) [Thu, 14 Feb 2019 18:41:37 +0000 (10:41 -0800)]
bpo-35633: test_lockf() fails with "PermissionError: [Errno 13] Permission denied" on AIX (GH-11424)
[bpo-35633](https://bugs.python.org/issue35633): Fix a test regression introduced with [bpo-35189](https://bugs.python.org/issue35189) (PEP 475: fnctl functions are not retried if interrupted (EINTR)).
Not only a blocking IO error needs to be ignored - permission errors also need to be ignored.
p.s. - iirc as a "test" only correction a NEWS item is not required. If this is not correct - just mention, and I'll add a NEWS blurb.
https://bugs.python.org/issue35633
(cherry picked from commit
b94d4bed67c60834b1a5a0936b8c13934cf3b872 )
Co-authored-by: Michael Felt <aixtools@users.noreply.github.com>
Miss Islington (bot) [Thu, 14 Feb 2019 08:02:12 +0000 (00:02 -0800)]
closes bpo-35991: Fix a potential double free in Modules/_randommodule.c. (GH-11849)
(cherry picked from commit
bb3c05d7efca8d23bf39bc2640297ba2598899f3 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Wed, 13 Feb 2019 11:49:34 +0000 (03:49 -0800)]
bpo-35961: Fix a crash in slice_richcompare() (GH-11830)
Fix a crash in slice_richcompare(): use strong references rather than
stolen references for the two temporary internal tuples.
The crash (or assertion error) occurred if a garbage collection
occurred during slice_richcompare(), especially while calling
PyObject_RichCompare(t1, t2, op).
(cherry picked from commit
dcb68f47f74b0cc8a1896d4a4c5a6b83c0bbeeae )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Benjamin Peterson [Wed, 13 Feb 2019 04:36:09 +0000 (20:36 -0800)]
[3.7] Remove stray quote in os.replace docstring. (GH-11835)
(cherry picked from commit
73d600239b0aa34198bce2b7982e4ff14c92f119 )
Co-authored-by: Anthony Sottile <asottile@umich.edu>
Miss Islington (bot) [Tue, 12 Feb 2019 18:54:31 +0000 (10:54 -0800)]
bpo-35505: Skip test_imap4_host_default_value if localhost listens on IMAP port (GH-11823)
Make test_imap4_host_default_value independent on whether the
local IMAP server is running.
(cherry picked from commit
3dc67d0316740e78e7cd014343f34d85908219b7 )
Co-authored-by: Matěj Cepl <mcepl@cepl.eu>
Miss Islington (bot) [Tue, 12 Feb 2019 12:11:48 +0000 (04:11 -0800)]
bpo-35960: Fix dataclasses.field throwing away empty metadata. (GH-11815) (GH-11826)
(cherry picked from commit
b01786c8812c4cc24dd561b5941025bdd6f444c0 )
Co-authored-by: Christopher Hunt <chrahunt@gmail.com>
Miss Islington (bot) [Tue, 12 Feb 2019 01:09:22 +0000 (17:09 -0800)]
bpo-35918: Remove broken has_key method and add test (GH-11819) (#11824)
(cherry picked from commit
a31f4cc881992e84d351957bd9ac1a92f882fa39 )
Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
Miss Islington (bot) [Mon, 11 Feb 2019 12:02:57 +0000 (04:02 -0800)]
[3.7] bpo-22062: Updated docstring and documentation for pathlib (GH-8519) (GH-11817)
Original patch by Mike Short
https://bugs.python.org/issue22062
(cherry picked from commit
537b6caa565ec2fc304ba6f4400cd347ce2af64b )
Co-authored-by: Eivind Teig <eivind.teig@gmail.com>
https://bugs.python.org/issue22062
Miss Islington (bot) [Sun, 10 Feb 2019 21:43:57 +0000 (13:43 -0800)]
Doc sidebar: 3.6 has moved to security-fix mode. (GH-11810)
(cherry picked from commit
9db56fb8faaa3cd66e7fe82740a4ae4d786bb27f )
Co-authored-by: Julien Palard <julien@palard.fr>
Miss Islington (bot) [Sat, 9 Feb 2019 17:53:51 +0000 (09:53 -0800)]
Make sure the BaseManager in test_multiprocessing is cleaned up correctly (GH-11653)
(cherry picked from commit
7b2a37b728b37e7da6d3f48c24c93a9dd0daa0fc )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Sat, 9 Feb 2019 17:26:16 +0000 (09:26 -0800)]
Do not retain references to processes and managers in TestSyncManagerTypes (GH-11801)
Keeping references to processes and managers between tests makes them count as dangling processes.
(cherry picked from commit
613f729e5ddd201765a9a04efc1c76decb3a19c4 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Sat, 9 Feb 2019 04:43:20 +0000 (20:43 -0800)]
bpo-35833: Revise IDLE doc for control codes sent to Shell. (GH-11799)
Add a code example block.
(cherry picked from commit
8a03ff2ff4db973c9fe152561f1796e72cb71132 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sat, 9 Feb 2019 03:33:06 +0000 (19:33 -0800)]
lru_cache: Add more comments. Fix comment typos. Clarify a comment. (GH-11795) (GH-11798)
Miss Islington (bot) [Thu, 7 Feb 2019 20:09:16 +0000 (12:09 -0800)]
bpo-35615: Fix crashes when copying a Weak{Key,Value}Dictionary. (GH-11384) (GH-11785)
Protect dict iterations by wrapping them with _IterationGuard in the
following methods:
- WeakValueDictionary.copy()
- WeakValueDictionary.__deepcopy__()
- WeakKeyDictionary.copy()
- WeakKeyDictionary.__deepcopy__()
(cherry picked from commit
96d37dbcd23e65a7a57819aeced9034296ef747e )
Co-authored-by: Fish <ltfish@users.noreply.github.com>
Antoine Pitrou [Thu, 7 Feb 2019 11:34:12 +0000 (11:34 +0000)]
[3.7] bpo-35917: Test multiprocessing manager classes and shareable types (GH-11772) (GH-11780)
multiprocessing: provide unittests for manager classes and shareable types.
(cherry picked from commit
2848d9d29914948621bce26bf0d9a89f2e19b97b )
Co-authored-by: Giampaolo Rodola <g.rodola@gmail.com>
Miss Islington (bot) [Wed, 6 Feb 2019 20:58:00 +0000 (12:58 -0800)]
Fix url to core-mentorship mailing list (GH-11775)
(cherry picked from commit
e9bc4172d18db9c182d8e04dd7b033097a994c06 )
Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
Inada Naoki [Tue, 5 Feb 2019 10:39:42 +0000 (19:39 +0900)]
bpo-20001: update pathlib landing image (GH-11304)
(cherry picked from commit
cd90f6a3692e0f7ef0a13aae651e19a08d1f9b31 )
Miss Islington (bot) [Tue, 5 Feb 2019 01:54:59 +0000 (17:54 -0800)]
bpo-35299: Fixed sysconfig and distutils during PGO profiling (GH-11744)
(cherry picked from commit
85e102a2b090dd693d0801ae2edb9660cfa0f281 )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Steve Dower [Mon, 4 Feb 2019 15:20:19 +0000 (07:20 -0800)]
bpo-35872 and bpo-35873: Clears __PYVENV_LAUNCHER__ variable (GH-11745)
After reading __PYVENV_LAUNCHER__ we now set sys._base_executable value for later use.
Make the same changes for macOS to avoid extra platform checks.
Miss Islington (bot) [Mon, 4 Feb 2019 07:27:37 +0000 (23:27 -0800)]
bpo-35692: pathlib no longer raises when checking file and directory existence on drives that are not ready (GH-11746)
(cherry picked from commit
2f6fae6e510dba653391cb510a2aca8322eec03b )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Miss Islington (bot) [Sun, 3 Feb 2019 00:46:12 +0000 (16:46 -0800)]
bpo-35642: Remove asynciomodule.c from pythoncore.vcxproj (GH-11410)
This module is built by _asyncio.vcxproj and does not need to be included in pythoncore.
(cherry picked from commit
fbf50683b3a2301097d5cd48bc68b530c1e1720f )
Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com>
Miss Islington (bot) [Sat, 2 Feb 2019 22:54:42 +0000 (14:54 -0800)]
bpo-34691: Compile _contextvars module into main Python library (GH-11741)
(cherry picked from commit
4c70d9f79c9b371990c8e054ccde53f7ff15946b )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>