]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Wed, 7 Nov 2018 21:48:47 +0000 (13:48 -0800)]
bpo-35015: Doc: Fix internationalisation of the availability directive. (GH-10360)
(cherry picked from commit
beed84ca5e0f2784d758478d4e7c81c9c1088c4e )
Co-authored-by: Julien Palard <julien@palard.fr>
Miss Islington (bot) [Wed, 7 Nov 2018 19:26:15 +0000 (11:26 -0800)]
bpo-32409: Fix regression in activate.bat on international Windows (GH-10295) (GH-10377)
Handle Unicode contents on localised Windows systems when activating a
venv. activate.bat currently breaks on German Windows systems, as chcp.com does
not return a plain number as on English systems, but (arbitrarily) appends a dot at the end
(for example "Aktive Codepage: 850." instead of "Active Codepage: 850"). The
dependency to chcp.com is removed and ctypes is used to get, set and restore the
console output code page. The code page for console input is not changed.
We can't use __VENV_PYTHON__ to find python.exe, since it's UTF-8. cmd.exe decodes
the script using the console output code page.
(cherry picked from commit
c64583b6d3e8516a8cd2b5f84fc1e300bfac2206 )
Co-authored-by: samstagern <30337691+samstagern@users.noreply.github.com>
Miss Islington (bot) [Wed, 7 Nov 2018 18:32:05 +0000 (10:32 -0800)]
Add link to PEP 525 in Expressions. (GH-10333)
(cherry picked from commit
bfe1839aa994f0d84471254418a4ecfa7c7c9b9c )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Wed, 7 Nov 2018 18:30:18 +0000 (10:30 -0800)]
glob uses fnmatch.filter instead of fnmatch since 2001. (GH-10102)
(cherry picked from commit
ae31e3fbf4e7def772fc1c94342d1011424fdc99 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Wed, 7 Nov 2018 18:29:58 +0000 (10:29 -0800)]
Add a reference to the name mangling description in the tutorial to the index. (GH-10138)
(cherry picked from commit
c5eec4426d9144b2255500217d0e3ff9463d2770 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Wed, 7 Nov 2018 17:55:14 +0000 (09:55 -0800)]
Add future_stmt to simple_stmt production list. (GH-8239)
(cherry picked from commit
cdb96f45b61a40a7e7c4c83b4b1f14ef6f5cf4fa )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Wed, 7 Nov 2018 17:54:55 +0000 (09:54 -0800)]
Correct grammar mistakes in string.rst. (GH-9752)
(cherry picked from commit
d64991031e4c86ce0331caac16770757511dd025 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Wed, 7 Nov 2018 17:54:41 +0000 (09:54 -0800)]
Mark len call as a code snippet in stdtypes.rst. (GH-9804)
(cherry picked from commit
ca03f3b93ee5c2943a2b8cbf9447f99f835ec672 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Wed, 7 Nov 2018 17:53:20 +0000 (09:53 -0800)]
Mark -c and -O as command line options in reStructuredText. (GH-10103)
(cherry picked from commit
ea6a28c9f7e4baa5fe775cebce697a14a7d7da8b )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Wed, 7 Nov 2018 05:06:54 +0000 (21:06 -0800)]
bpo-33000: Document that IDLE's shell has no line limit. (GH-10373)
A program that runs indefinitely can overfill memory.
(cherry picked from commit
76cd0c30d60961d1a10e2673834a455d2b51f695 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 6 Nov 2018 18:27:20 +0000 (10:27 -0800)]
bpo-23220: Explain how IDLE's Shell displays output (GH-10356)
Add a new subsection to the doc.
(cherry picked from commit
75d9d59ab3a372d3d78e6a1f5e9f256e29d0a9a6 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 6 Nov 2018 04:47:11 +0000 (20:47 -0800)]
closes bpo-35171: Fix test_TimeRE_recreation_timezone failure on some systems. (GH-10347)
The test depended on '/usr/share/zoneinfo/posixrules' or equivalent
because it set TZ without explicit DST transition rules. At least
on OpenSUSE Tumbleweed that file is linked to '/etc/localtime',
making the test fail with certain local timezones,
such as 'Europe/Moscow' which doesn't have DST transitions since 2011.
(cherry picked from commit
f1b9ad3d38c11676b45edcbf2369239bae436e56 )
Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
Miss Islington (bot) [Tue, 6 Nov 2018 03:36:12 +0000 (19:36 -0800)]
bpo-35099: Update idlelib/help.html (GH-10353)
(This should have been done with the first PR for this issue.)
(cherry picked from commit
f1d3efc2fba704692d539acc3cb0376a1dd9d98f )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 6 Nov 2018 02:35:18 +0000 (18:35 -0800)]
bpo-35099: Improve the doc about IDLE running user code. (GH-10350)
The section is renamed from "IDLE -- console differences". It mostly
covers the implications of using custom sys.stdxxx objects.
(cherry picked from commit
5e7909032491cef17754a3208872655fe350e9be )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 6 Nov 2018 01:59:15 +0000 (17:59 -0800)]
bpo-35119: Fix RecursionError in example of customizing module attribute access. (GH-10323)
https://bugs.python.org/issue35119
(cherry picked from commit
0bee3c36d406e47fa9f99cfc1e07b701512c4f3f )
Co-authored-by: Denis Osipov <osipov_d@list.ru>
Miss Islington (bot) [Mon, 5 Nov 2018 22:46:42 +0000 (14:46 -0800)]
[Docs] Fix required version of an example of importlib (GH-10118)
§31.5.6.3. Importing a source file directly: `module_from_spec` is new in Python 3.5.
(cherry picked from commit
16c8a53490a22bd4fcde2efaf4694dd06ded882b )
Co-authored-by: E Kawashima <e-kwsm@users.noreply.github.com>
Serhiy Storchaka [Mon, 5 Nov 2018 16:44:08 +0000 (18:44 +0200)]
[3.7] bpo-35167: Specify program for json.tool command line options. (GH-10332) (GH-10338)
(cherry picked from commit
083a7a172b8c8888252d72031f21dcfea3c0d73f )
Miss Islington (bot) [Mon, 5 Nov 2018 14:52:58 +0000 (06:52 -0800)]
bpo-35133: Fix mistakes when concatenate string literals on different lines. (GH-10284)
Two kind of mistakes:
1. Missed space. After concatenating there is no space between words.
2. Missed comma. Causes unintentional concatenating in a list of strings.
(cherry picked from commit
34fd4c20198dea6ab2fe8dc6d32d744d9bde868d )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 4 Nov 2018 21:40:02 +0000 (13:40 -0800)]
bpo-21263: Skip test_gdb when python has been compiled with LLVM clang (GH-10318) (GH-10325)
(cherry picked from commit
59668aa8b7f174b59304eab833c1c1181886c3c6 )
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Miss Islington (bot) [Sat, 3 Nov 2018 17:41:38 +0000 (10:41 -0700)]
Fix a typo about a comma. (GH-10306)
(cherry picked from commit
fe62d877e300e1ee4145fff8f2bdba498b685f91 )
Co-authored-by: İsmail Arılık <arilik.ismail@gmail.com>
Alexey Izbyshev [Sat, 3 Nov 2018 01:30:11 +0000 (04:30 +0300)]
[3.7] bpo-35147: Fix _Py_NO_RETURN for GCC (GH-10300) (GH-10301)
Use `__GNUC__` instead of non-existing `__GNUC_MAJOR__`.
(cherry picked from commit
e2ed5adcb5db2d70cfa72da1ba8446f7aa9e05cd )
https://bugs.python.org/issue35147
BNMetrics [Fri, 2 Nov 2018 17:56:25 +0000 (17:56 +0000)]
[3.7]bpo-29341: Backport
b942707 3.7 (#10298)
Some methods in the os module can accept path-like objects. This is documented in the general documentation but not in the function docstrings. To keep both in sync, the docstrings need to be updated to reflect that path-like objects are also accepted..
(cherry picked from commit
b942707fc23454a998323c17e30be78ff1a4f0e7 )
Co-authored-by: BNMetrics <luna@bnmetrics.com>
Miss Islington (bot) [Fri, 2 Nov 2018 03:09:04 +0000 (20:09 -0700)]
closes bpo-35139: The `pyexpat` module's macros in `Modules/Setup` now match `setup.py` (GH-10289)
This could cause compile errors on macOS or other platforms.
(cherry picked from commit
318ab63c01f5b8e7562b122ab5ba01258a51277b )
Co-authored-by: Max Bélanger <aeromax@gmail.com>
Miss Islington (bot) [Thu, 1 Nov 2018 21:35:17 +0000 (14:35 -0700)]
Include memo in the documented signature of copy.deepcopy()
* Include memo in the documented signature of copy.deepcopy()
The memo argument is mentioned lower on the doc page under writing a
`__deepcopy__` method, but is not included in the documented function signature.
This makes it easy to miss, and can lead to incorrect/buggy implementations of
`__deepcopy__` -- which is exatly what just happpend to me!
(cherry picked from commit
0200928e8df012d408530b06a98119024bc82511 )
Co-authored-by: Stephan Hoyer <shoyer@gmail.com>
Miss Islington (bot) [Thu, 1 Nov 2018 21:34:42 +0000 (14:34 -0700)]
Doc: fix asyncio loop.close() description (GH-10229)
Needs backport to 3.7. In 3.6 the description is correct.
(cherry picked from commit
b83d917fafd87e4130f9c7d5209ad2debc7219cd )
Co-authored-by: Andriy Maletsky <andriy.maletsky@gmail.com>
Miss Islington (bot) [Thu, 1 Nov 2018 21:33:52 +0000 (14:33 -0700)]
bpo-35075: Fix broken url in the pprint documentation (GH-10201)
https://bugs.python.org/issue35075
(cherry picked from commit
bf46a09dec372b85846216bd692d648dac08ac36 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Serhiy Storchaka [Thu, 1 Nov 2018 12:19:23 +0000 (14:19 +0200)]
[3.7] bpo-35128: Fix spacing issues in warning.warn() messages. (GH-10268). (GH-10280)
(cherry picked from commit
4b5e62dbb22a3593e0db266c12f805b727a42b00 )
Co-authored-by: Pablo Aguiar <scorphus@gmail.com>
Miss Islington (bot) [Wed, 31 Oct 2018 23:45:42 +0000 (16:45 -0700)]
bpo-26558: Fix Py_FatalError() with GIL released (GH-10267)
Don't call _Py_FatalError_PrintExc() nor flush_std_files() if the
current thread doesn't hold the GIL, or if the current thread
has no Python state thread.
(cherry picked from commit
3a228ab17c2a9cffd1a2f15f30d6209768de20a6 )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Wed, 31 Oct 2018 12:36:20 +0000 (05:36 -0700)]
bpo-35062: Fix parsing _io.IncrementalNewlineDecoder's *translate* argument. (GH-10217)
_io.IncrementalNewlineDecoder's initializer possibly assigns out-of-range
value to the bitwise struct field.
(cherry picked from commit
b08746bfdf64e55ce33516f2065fa2aa4f51be95 )
Co-authored-by: Xiang Zhang <angwerzx@126.com>
Miss Islington (bot) [Wed, 31 Oct 2018 09:31:29 +0000 (02:31 -0700)]
Fix a possible crash in range.__reversed__(). (GH-10252)
(cherry picked from commit
c9a6168924ffa4f3f78175998b392fe23d3edc50 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Serhiy Storchaka [Wed, 31 Oct 2018 09:00:24 +0000 (11:00 +0200)]
[3.7] bpo-35110: Fix unintentional spaces around hyphens and dashes. (GH-10231). (GH-10253)
(cherry picked from commit
3f819ca138db6945ee4271bf13e42db9f9b3b1e4 )
matthewbelisle-wf [Tue, 30 Oct 2018 21:15:24 +0000 (16:15 -0500)]
bpo-35116, urllib.parse: Document the new max_num_fields parameter (GH-10246)
Miss Islington (bot) [Tue, 30 Oct 2018 15:34:54 +0000 (08:34 -0700)]
bpo-35086: Fix tkinter example "A Simple Hello World Program". (GH-10160)
The root widget was accessed as a global variable in the Application's method.
(cherry picked from commit
a80af770870937271865b5e2b05a2cfe40b024b6 )
Co-authored-by: Daniel Lovell <lovell.daniel92@gmail.com>
Victor Stinner [Tue, 30 Oct 2018 13:32:01 +0000 (14:32 +0100)]
bpo-34403: Always implement _Py_GetForceASCII() (GH-10235)
Compilation fails on macOS because _Py_GetForceASCII() wasn't define:
always implement implement (default implementation: just return 0).
Victor Stinner [Tue, 30 Oct 2018 11:59:20 +0000 (12:59 +0100)]
bpo-34403: Fix initfsencoding() for ASCII (GH-10233)
* Add _Py_GetForceASCII(): check if Python forces the usage of ASCII
in Py_DecodeLocale() and Py_EncodeLocale().
* initfsencoding() now uses ASCII if _Py_GetForceASCII() is true.
Miss Islington (bot) [Mon, 29 Oct 2018 21:05:31 +0000 (14:05 -0700)]
bpo-34945: Buffer output in test suite only when creating junit file (GH-10204)
After commit
d0f49d2f5085ca68e3dc8725f1fb1c9674bfb5ed , the output of the
test suite is always buffered as the test output needs to be included in
the JUnit file in same cases (as when a test fails). This has the
consequence that printing or using debuggers (like pdb) in the test
suite does not result in a good user experience anymore.
This commit modifies the test suite runner so it only captures the test
output when the JUnit file is requested to fix the regression so prints
and debuggers are usable again.
(cherry picked from commit
02277482ea765335e497ecd9661d4bde9b5ddc67 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Mon, 29 Oct 2018 11:55:08 +0000 (04:55 -0700)]
bpo-27741: Better wording for datetime.strptime() (GH-9994)
(cherry picked from commit
c0799ec973530ad2492bb1d6c7287ffc428f0348 )
Co-authored-by: Gus Goulart <augusto@goulart.me>
Miss Islington (bot) [Mon, 29 Oct 2018 05:17:45 +0000 (22:17 -0700)]
Fix a possible "double decref" in termios.tcgetattr(). (GH-10194)
(cherry picked from commit
53835e92d315340444e3dd083b3f69a590b00e07 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Mon, 29 Oct 2018 01:51:33 +0000 (18:51 -0700)]
bpo-35097: Add IDLE doc subsection explaining editor windows. (GH-10206)
Topics include opening, title and status bar, .py* extension, and running.
(cherry picked from commit
ea9c8bd44365ae8b0accc5286c7b52862528c0ec )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 28 Oct 2018 20:46:56 +0000 (13:46 -0700)]
bpo-35090: Fix potential division by zero in allocator wrappers (GH-10174)
* Fix potential division by zero in BZ2_Malloc()
* Avoid division by zero in PyLzma_Malloc()
* Avoid division by zero and integer overflow in PyZlib_Malloc()
Reported by Svace static analyzer.
(cherry picked from commit
3d4fabb2a424cb04ae446ebe4428090c386f45a5 )
Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
Miss Islington (bot) [Sun, 28 Oct 2018 20:39:38 +0000 (13:39 -0700)]
Issue 35093: Document the IDLE document viewer in the IDLE doc. (GH-10195)
Add a paragraph in "Help and preferences", "Help sources" subsection.
(cherry picked from commit
18032632ab27eed51d705c2be7b64bac708279bf )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 28 Oct 2018 18:57:04 +0000 (11:57 -0700)]
[3.7] Fix checking for bugfix Tcl version. (GH-10185) (GH-10186)
(cherry picked from commit
18d57b4d6262bf96b5ac307bd84837c29ea04083 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 28 Oct 2018 17:03:19 +0000 (10:03 -0700)]
bpo-
1529353 : Explain Shell text squeezing in the IDLE doc. (GH-10169)
(cherry picked from commit
68d6dc0770288075504635a8e42696070823fd69 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 28 Oct 2018 16:43:32 +0000 (09:43 -0700)]
bpo-35054: Add yet more index entries for symbols. (GH-10121) (GH-10171)
(cherry picked from commit
913876d824d969f8c7431e8a9d4610a9a11a786e )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 28 Oct 2018 16:16:36 +0000 (09:16 -0700)]
bpo-35089: Don't mention typing.io and typing.re (GH-10173)
https://bugs.python.org/issue35089
(cherry picked from commit
c8a8d6b347d5a6899feb7c810d28f22f3cb151b8 )
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Miss Islington (bot) [Sun, 28 Oct 2018 13:52:27 +0000 (06:52 -0700)]
Fix mistakes on function coroutines related definitions (GH-9871)
Fix a bug I introduced in GH-9864 by which coroutines are treated as synonymous of function coroutines.
Also, fix the same mistake (coroutines == function coroutines) already present in other parts of the reference.
I'm very sorry for the hassle.
(cherry picked from commit
95f68b10d5c9852ef4dcf5b9f2ae15fdf74e8f1c )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Sun, 28 Oct 2018 05:52:08 +0000 (22:52 -0700)]
bpo-35088: Update idlelib.help.copy_string docstring (GH-10164)
We now use git and backporting instead of hg and forward merging.
(cherry picked from commit
2b555fc1f07bee8b066a6d7da727e516f37e8e34 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 28 Oct 2018 05:40:00 +0000 (22:40 -0700)]
bpo-35087: Update idlelib help files for the current doc build. (GH-10162)
There is only one trivial change to idle.rst. Nearly all the changes to help.html are the elimination of chapter and section numbers on headers due to changes in the build system. help.py no longer requires header numbering.
(cherry picked from commit
db40cb50eb823b8ef9040b1c9bf31a7475d94d39 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sat, 27 Oct 2018 21:06:20 +0000 (14:06 -0700)]
bpo-35067: Remove _distutils_findvs and use vswhere.exe instead. (GH-10095)
(cherry picked from commit
53125a53f483db0af76249b6af6efcdc200eb421 )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Miss Islington (bot) [Sat, 27 Oct 2018 20:06:46 +0000 (13:06 -0700)]
Fix typo in zipfile documentation. (GH-10151) (GH-10153)
(cherry picked from commit
40bf6cff22185b8ebaab14789e81cff22fbf2275 )
Co-authored-by: nsrip <nick.ripley@me.com>
Miss Islington (bot) [Sat, 27 Oct 2018 18:17:15 +0000 (11:17 -0700)]
unittest documentation: Spell pytest without the dot (GH-9820)
Referring to ``pytest`` as ``py.test`` is deprecated.
(cherry picked from commit
d855f2fdbd73016ece9b58e6f6ac26cf986fabf6 )
Co-authored-by: Andreas Pelme <andreas@pelme.se>
Miss Islington (bot) [Sat, 27 Oct 2018 03:07:42 +0000 (20:07 -0700)]
bpo-35079: Revise difflib.SequenceManager.get_matching_blocks doc (GH-10144)
Specify that blocks are non-overlapping. Change '!=' to '<'.
(cherry picked from commit
d9bff4e81b8ca36fe6c4e90c0b9cf02bc020e713 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Fri, 26 Oct 2018 17:42:49 +0000 (10:42 -0700)]
Fix a typo in asyncio-dev.rst. (GH-10133)
"threadsafe"
(cherry picked from commit
4e3a53bceefe4803c08a025523d8658862cb31c0 )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Miss Islington (bot) [Fri, 26 Oct 2018 17:28:26 +0000 (10:28 -0700)]
bpo-35059, libmpdec: Add missing EXTINLINE in mpdecimal.h (GH-10128)
Declare functions with EXTINLINE:
* mpd_del()
* mpd_uint_zero()
* mpd_qresize()
* mpd_qresize_zero()
* mpd_minalloc()
These functions are implemented with "inline" or "ALWAYS_INLINE", but
declared without inline which cause linker error on Visual Studio in
Debug mode when using /Ob1.
(cherry picked from commit
3b1cba3701fd1321a9bdafa9e683f891369f0cfd )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Senthil Kumaran [Fri, 26 Oct 2018 17:11:39 +0000 (10:11 -0700)]
[3.7] bpo-34576 : Backport
eeab510 (#10114)
* bpo-34576 - Fix the formatting for security considerations in http.server.rst (#10005)
(cherry picked from commit
eeab510bb7e51802c18b3770cbb23ae0ca91da6b )
Miss Islington (bot) [Fri, 26 Oct 2018 14:06:39 +0000 (07:06 -0700)]
bpo-35017, socketserver: don't accept request after shutdown (GH-9952)
Prior to this revision, after the shutdown of a `BaseServer`,
the server accepted a last single request
if it was sent between the server socket polling
and the polling timeout.
This can be problematic for instance for a server restart
for which you do not want to interrupt the service,
by not closing the listening socket during the restart.
One request failed because of this behavior.
Note that only one request failed,
following requests were not accepted, as expected.
(cherry picked from commit
10cb3760e8631a27f5db1e51b05494e29306c671 )
Co-authored-by: Denis Ledoux <be.ledoux.denis@gmail.com>
Andrés Delfino [Fri, 26 Oct 2018 13:12:02 +0000 (10:12 -0300)]
[3.7] bpo-34789: xml.sax.make_parser expects a list not just any sequence (GH-9542)
Miss Islington (bot) [Fri, 26 Oct 2018 10:56:28 +0000 (03:56 -0700)]
bpo-35044, doc: Use the :exc: role for the exceptions (GH-10037)
(cherry picked from commit
e483f02423917dc4dfd25f46e5b9e6fce304777d )
Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
Serhiy Storchaka [Fri, 26 Oct 2018 08:18:42 +0000 (11:18 +0300)]
[3.7] bpo-35054: Add more index entries for symbols. (GH-10064). (GH-10120)
(cherry picked from commit
ddb961d2abe5d5fde76d85b21a77e4e91e0043ad )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 25 Oct 2018 21:19:31 +0000 (14:19 -0700)]
bpo-35038: AttributeError: 'frame' object has no attribute 'f_restricted'. (GH-10098)
https://bugs.python.org/issue35038
(cherry picked from commit
1770d1c5121ed6c64d7072875738f97e07eede8a )
Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
Steve Dower [Thu, 25 Oct 2018 17:46:23 +0000 (13:46 -0400)]
[3.7] bpo-31047: Fix ntpath.abspath to trim ending separator (GH-10082)
Miss Islington (bot) [Thu, 25 Oct 2018 00:32:04 +0000 (17:32 -0700)]
bpo-28015: Support LTO build with clang (GH-9908)
.o generated by clang in LTO mode actually are LLVM bitcode files, which
leads to a few errors during configure/build step:
- add lto flags to the BASECFLAGS instead of CFLAGS, as CFLAGS are used
to build autoconf test case, and some are not compatible with clang LTO
(they assume binary in the .o, not bitcode)
- force llvm-ar instead of ar, as ar is not aware of .o files generated
by clang -flto
(cherry picked from commit
5ad36f9b21a3aa3b2265b1b43d73522cc3322df2 )
Co-authored-by: serge-sans-paille <serge.guelton@telecom-bretagne.eu>
Miss Islington (bot) [Wed, 24 Oct 2018 23:56:25 +0000 (16:56 -0700)]
configparser doc: Properly label ConfigParser attributes (GH-9930)
(cherry picked from commit
890423f79606124f6c54935d21f22375c399e23a )
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Miss Islington (bot) [Wed, 24 Oct 2018 23:38:00 +0000 (16:38 -0700)]
importlib doc: Fix approximated import_module() code (GH-9945)
The spec gets stored on modules with the __spec__ attribute, not spec.
(cherry picked from commit
78401f7156034f713170b8e87b51d23ebdc3bdfa )
Co-authored-by: orlnub123 <orlnub123@gmail.com>
Miss Islington (bot) [Wed, 24 Oct 2018 22:59:15 +0000 (15:59 -0700)]
bpo-35027, distutils doc: Correct note on setup.py change in Python 3.7 (GH-10032)
(cherry picked from commit
e80e77a484983ffb527ef22d336ff9500589dce3 )
Co-authored-by: TilmanK <tilman.krummeck@googlemail.com>
Miss Islington (bot) [Wed, 24 Oct 2018 22:45:44 +0000 (15:45 -0700)]
Use f-strings in asyncio-task code examples (GH-10035)
Replace str.format with f-strings in the code examples of asyncio-task documentation.
(cherry picked from commit
9f43fbbd9dfc78125c9533ce1dfe33ff5d15aa45 )
Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
Tal Einat [Wed, 24 Oct 2018 07:33:00 +0000 (10:33 +0300)]
[3.7] bpo-33899: Mention tokenize behavior change in What's New (GH-10073) (GH-10074)
(cherry picked from commit
dfba1f67e7f1381ceb7cec8fbcfa37337620a9b0 )
https://bugs.python.org/issue33899
Zsolt Cserna [Tue, 23 Oct 2018 21:57:55 +0000 (23:57 +0200)]
[3.7] bpo-34260, shutil: fix copy2 and copystat documentation (GH-8523) (GH-10065)
Fix the documentation of copy2, as it does not copy file ownership (user and
group), only mode, mtime, atime and flags.
The original text was confusing to developers as it suggested that this
command is the same as 'cp -p', but according to cp(1), '-p' copies file
ownership as well.
Clarify which metadata is copied by shutil.copystat in its docstring.
(cherry picked from commit
4f399be0e70d8b5516b6213568b7665765bb3114 )
Miss Islington (bot) [Tue, 23 Oct 2018 21:46:32 +0000 (14:46 -0700)]
bpo-34794: Fix a leak in Tkinter. (GH-10025) (GH-10069)
Based on the investigation by Xiang Zhang.
(cherry picked from commit
df13df41a25765d8a39a77220691698498e758d4 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 23 Oct 2018 19:45:44 +0000 (12:45 -0700)]
Fix error handling bugs in _elementtree.c. (GH-10060)
References could leak, NULL could be dereferenced, and the Expat parser could
be double freed when some errors raised.
(cherry picked from commit
9f3ed3e213b30059087d059a7d1d3b2527fa8654 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Tue, 23 Oct 2018 12:03:00 +0000 (05:03 -0700)]
bpo-34980: P/Invoke QueryFullProcessImageName to get process names (GH-9901)
(cherry picked from commit
fa5329424f4206630c34f75629fa78738db647f0 )
Co-authored-by: Jeremy Kloth <jeremy.kloth@gmail.com>
Miss Islington (bot) [Tue, 23 Oct 2018 10:54:52 +0000 (03:54 -0700)]
bpo-35028: cgi: Fix max_num_fields off by one error (GH-9973)
https://bugs.python.org/issue35028
(cherry picked from commit
b79b5c09493e98374e48fa122d82dab528fc6e72 )
Co-authored-by: matthewbelisle-wf <matthew.belisle@workiva.com>
Miss Islington (bot) [Tue, 23 Oct 2018 10:07:06 +0000 (03:07 -0700)]
bpo-35046: do only one system call per line (logging.StreamHandler) (GH-10042) (GH-10050)
(cherry picked from commit
b7d62050e7d5fc208ae7673613da4f1f2bc565c4 )
Miss Islington (bot) [Tue, 23 Oct 2018 07:04:24 +0000 (00:04 -0700)]
bpo-34482: test datetime classes' handling of non-UTF-8-encodable strings (GH-8878)
(cherry picked from commit
3b0047d8e982b10b34ab05fd207b7d513cc1188a )
Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
Miss Islington (bot) [Tue, 23 Oct 2018 06:16:42 +0000 (23:16 -0700)]
bpo-34748: link to :ref:`partial-objects` in functools.partial doc. (GH-9809)
(cherry picked from commit
83a07652e0033f0d9994ae7634b91d6581c56b00 )
Co-authored-by: Andrei Petre <p31andrei@gmail.com>
Miss Islington (bot) [Mon, 22 Oct 2018 22:35:15 +0000 (15:35 -0700)]
bpo-34454: Clean up datetime.fromisoformat surrogate handling (GH-8959)
* Use _PyUnicode_Copy in sanitize_isoformat_str
* Use repr in fromisoformat error message
This reverses commit
67b74a98b2 per Serhiy Storchaka's suggestion:
I suggested to use %R in the error message because including the raw
string can be confusing in the case of empty string, or string
containing trailing whitespaces, invisible or unprintable characters.
We agree that it is better to change both the C and pure Python versions
to use repr.
* Retain non-sanitized dtstr for error printing
This does not create an extra string, it just holds on to a reference to
the original input string for purposes of creating the error message.
* PEP 7 fixes to from_isoformat
* Separate handling of Unicode and other errors
In the initial implementation, errors other than encoding errors would
both raise an error indicating an invalid format, which would not be
true for errors like MemoryError.
* Drop needs_decref from _sanitize_isoformat_str
Instead _sanitize_isoformat_str returns a new reference, even to the
original string.
(cherry picked from commit
3df85404d4bf420db3362eeae1345f2cad948a71 )
Co-authored-by: Paul Ganssle <pganssle@users.noreply.github.com>
Miss Islington (bot) [Sun, 21 Oct 2018 12:55:52 +0000 (05:55 -0700)]
bpo-34973: Fix crash in bytes constructor. (GH-9841)
Constructing bytes from mutating list could cause a crash.
(cherry picked from commit
914f9a078f997e58cfcfabcbb30fafdd1f277bef )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 21 Oct 2018 00:41:38 +0000 (17:41 -0700)]
closes bpo-35025: Properly guard the `CLOCK_GETTIME` et al macros in timemodule.c. (GH-9961)
Guard the `CLOCK_GETTIME` et al macros in `timemodule` based on the availability of the parent functions
(cherry picked from commit
94451182ccd6729c11338926d8a3d11645e86626 )
Co-authored-by: Max Bélanger <aeromax@gmail.com>
Ned Deily [Sat, 20 Oct 2018 17:36:39 +0000 (13:36 -0400)]
[3.7] Remove duplicate NEWS entries due to cherry-picking (GH-10012)
Ned Deily [Sat, 20 Oct 2018 16:56:38 +0000 (12:56 -0400)]
Post release bump
Ned Deily [Sat, 20 Oct 2018 16:54:48 +0000 (12:54 -0400)]
Merge tag 'v3.7.1' into 3.7
Miss Islington (bot) [Sat, 20 Oct 2018 15:32:28 +0000 (08:32 -0700)]
bpo-35032: Remove inaccessible videos from faq/Windows (GH-10004)
https://bugs.python.org/issue35032
(cherry picked from commit
d262250d0732bdf36cb92091e37360cf8ff40f7c )
Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
Serhiy Storchaka [Sat, 20 Oct 2018 08:24:05 +0000 (11:24 +0300)]
bpo-33712: OrderedDict only creates od_fast_nodes cache if needed (GH-7349). (GH-10000)
(cherry picked from commit
6f17e51345d930ccb4db306acc12b7d1f6c5e690 )
Ned Deily [Sat, 20 Oct 2018 06:04:19 +0000 (02:04 -0400)]
3.7.1final
Miss Islington (bot) [Sat, 20 Oct 2018 05:54:09 +0000 (22:54 -0700)]
bpo-34574: Prevent OrderedDict iterators from exhaustion during pickling. (GH-9051)
(cherry picked from commit
a5259fb05d03f4871837c14fed704541a20896c0 )
Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
Ned Deily [Sat, 20 Oct 2018 04:49:35 +0000 (00:49 -0400)]
bpo-34576: Revert doc change until it can be properly fixed (GH-9720)
This reverts commit
57038bcb24407abbbb46e6d278d0ab4b6ad25bbf .
Miss Islington (bot) [Mon, 15 Oct 2018 21:20:11 +0000 (14:20 -0700)]
bpo-34521: Add NEWS entry for changes in GH-9613 (GH-9850)
* Add News entry for the change in multiprocessing.reduction.recvfds
made in GH-9613.
(cherry picked from commit
bd036d3d15fc1310ccc32a43a3296b8c157ac221 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Sat, 13 Oct 2018 19:26:47 +0000 (12:26 -0700)]
bpo-34970: Protect tasks weak set manipulation in asyncio.all_tasks() (GH-9837) (GH-9849)
https://bugs.python.org/issue34970
(cherry picked from commit
97cf0828727ac2a269c89c5aa09570a69a22c83c )
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Ned Deily [Sat, 20 Oct 2018 04:35:43 +0000 (00:35 -0400)]
bpo-34909: NEWS entry.
Miss Islington (bot) [Sat, 20 Oct 2018 01:21:43 +0000 (18:21 -0700)]
bpo-32256: Make patchcheck.py work for out-of-tree builds (GH-4760)
Set SRCDIR as the current directory for git.
(cherry picked from commit
aa95bfb5fee366aa58c90b7e1c77fc7e183dbf3a )
Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
Miss Islington (bot) [Sat, 20 Oct 2018 00:48:05 +0000 (17:48 -0700)]
bpo-32798: Add restriction on the offset parameter for mmap.flush in the docs (GH-5621)
Add restriction on the offset parameter for mmap.flush.
Explain that ALLOCATIONGRANULARITY is the same as PAGESIZE in Unix.
(cherry picked from commit
027664a3d5ebad575aafe5fcc572e3b05f7f24e5 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Sat, 20 Oct 2018 00:46:25 +0000 (17:46 -0700)]
bpo-32890, os: Use errno instead of GetLastError() in execve() and truncate() (GH-5784)
path_error() uses GetLastError() on Windows, but some os functions
are implemented via CRT APIs which report errors via errno.
This may result in raising OSError with invalid error code (such
as zero).
Introduce posix_path_error() function and use it where appropriate.
(cherry picked from commit
834603112e6ca35944dd21105b01fca562dc3241 )
Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
Miss Islington (bot) [Sat, 20 Oct 2018 00:41:56 +0000 (17:41 -0700)]
bpo-21196: Clarify name mangling rules in tutorial (GH-5667)
Initial patch by Chandan Kumar.
(cherry picked from commit
13ae4d44381a647aadd09b70b24833052659be41 )
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
Miss Islington (bot) [Sat, 20 Oct 2018 00:05:49 +0000 (17:05 -0700)]
bpo-33594: Add deprecation info in inspect.py module (GH-7036)
(cherry picked from commit
ded87d804e2a85b2a3ea9e7a11384b41fafdfa29 )
Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
Victor Stinner [Fri, 19 Oct 2018 23:49:30 +0000 (01:49 +0200)]
bpo-34536: raise error for invalid _missing_ results (GH-9147) (GH-9978)
* raise exception if _missing_ returns None or invalid type
Miss Islington (bot) [Fri, 19 Oct 2018 23:43:55 +0000 (16:43 -0700)]
bpo-33726, doc: Add short descriptions to PEP references in seealso (GH-7294)
(cherry picked from commit
0f14fc1a7cb2ea0012d0a943e4460acdee2108d7 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Fri, 19 Oct 2018 23:20:56 +0000 (16:20 -0700)]
bpo-20216: Correct docstrings of digest() methods in hashlib. (GH-9873) (GH-9971)
(cherry picked from commit
f192aeb95a139ede74d69e39c046c498ff288a37 )
Co-authored-by: Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) <srinivasreddy@users.noreply.github.com>
Miss Islington (bot) [Fri, 19 Oct 2018 23:14:42 +0000 (16:14 -0700)]
bpo-34824: Fix a possible NULL pointer dereference in _ssl.c (GH-9606) (GH-9743)
On failure, _PyBytes_Resize() will deallocate the bytes object and set
"result" to NULL.
https://bugs.python.org/issue34824
(cherry picked from commit
365ad2ead5bbaf7a3b18648ffa36e819559d3f75 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Fri, 19 Oct 2018 23:09:01 +0000 (16:09 -0700)]
bpo-34791: xml package obeys ignore env flags (GH-9544) (GH-9545)
The xml.sax and xml.dom.domreg modules now obey
sys.flags.ignore_environment.
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit
223e501fb9c2b6ae21b96054e20c4c31d94a5d96 )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Fri, 19 Oct 2018 23:02:13 +0000 (16:02 -0700)]
Elaborate datetime.timedelta docstring (GH-7458)
(cherry picked from commit
d6a61f232619f8a8e6efacc3da5a02abaf25f090 )
Co-authored-by: Chris Barker <Chris.Barker@noaa.gov>