]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Victor Stinner [Fri, 30 Nov 2018 17:08:02 +0000 (18:08 +0100)]
bpo-33015: Use malloc() in PyThread_start_new_thread() (GH-10829)
The pthread implementation of PyThread_start_new_thread() now uses
malloc/free rather than PyMem_Malloc/PyMem_Free, since the latters
are not thread-safe.
Victor Stinner [Fri, 30 Nov 2018 16:04:35 +0000 (17:04 +0100)]
bpo-33015: Fix UB in pthread PyThread_start_new_thread (GH-6008) (GH-10823)
Fix an undefined behaviour in the pthread implementation of
PyThread_start_new_thread(): add a function wrapper to always return
NULL.
Add pythread_callback struct and pythread_wrapper() to thread_pthread.h.
(cherry picked from commit
9eea6eaf23067880f4af3a130e3f67c9812e2f30 )
Victor Stinner [Fri, 30 Nov 2018 12:02:41 +0000 (13:02 +0100)]
bpo-35347: Fix test_socket.NonBlockingTCPTests (GH-10791) (GH-10817)
testAccept() and testRecv() of test_socket.NonBlockingTCPTests have a
race condition: time.sleep() is used as a weak synchronization
primitive and the tests fail randomly on slow buildbots.
Use a reliable threading.Event to fix these tests.
Other changes:
* Replace send() with sendall()
* Add a timeout to select() in testAccept() and testRecv()
* Use addCleanup() to close sockets
* Use assertRaises()
(cherry picked from commit
ebd5d6d6e6e4e751ba9c7534004aadfc27ba9265 )
Victor Stinner [Fri, 30 Nov 2018 10:04:42 +0000 (11:04 +0100)]
Fix DeprecationWarning in test_bytes (GH-10805)
Running test_bytes with python -3 -Wd emits two DeprecationWarning on
"1/0". Use "1//0" to prevent the warning.
Miss Islington (bot) [Fri, 30 Nov 2018 08:04:43 +0000 (00:04 -0800)]
bpo-35356: Fix a possible reference leak in nis.maps(). (GH-10808)
(cherry picked from commit
a2e3585e79c93b2372dbad46a744e28fcc6dad6d )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Victor Stinner [Thu, 29 Nov 2018 22:38:35 +0000 (23:38 +0100)]
bpo-34021: Windows skips test_regrtest.test_env_changed() (GH-10804)
On Windows, test_env_changed() of test_regrtest is now skipped
because it fails randomly for an unknown reason on "x86 Windows XP
VS9.0 2.7" buildbot worker.
Victor Stinner [Thu, 29 Nov 2018 20:14:42 +0000 (21:14 +0100)]
bpo-34279, regrtest: Issue a warning if no tests have been executed (GH-10801)
Co-Authored-By: Pablo Galindo <Pablogsal@gmail.com>
Benjamin Peterson [Thu, 29 Nov 2018 07:37:15 +0000 (01:37 -0600)]
closes bpo-35340: Add freegrammar to pgenheaders.h. (GH-10788)
Victor Stinner [Wed, 28 Nov 2018 20:12:54 +0000 (21:12 +0100)]
pythoninfo: log more environment variable (GH-10719) (GH-10774)
Log TZ to debug a timezone issue... and a few more :-)
(cherry picked from commit
282c03d45d2d766c55904a4eb766923a2c459124 )
Miss Islington (bot) [Fri, 23 Nov 2018 17:01:31 +0000 (09:01 -0800)]
Linkify SMTP.quit() in smtplib documentation. (GH-9785)
(cherry picked from commit
ba57963a95a994947b8bec6869e810a74a751278 )
Co-authored-by: takey <taketakeyyy@gmail.com>
Julien Palard [Thu, 22 Nov 2018 22:18:05 +0000 (23:18 +0100)]
[2.7] bpo-35035: Rename email.utils documentation to email.utils.rst (GH-10023) (GH-10667)
https://bugs.python.org/issue35035
Miss Islington (bot) [Wed, 21 Nov 2018 22:47:10 +0000 (14:47 -0800)]
bpo-31146: Don't fallback switcher to english on not-yet pusblished languages. (GH-10558)
(cherry picked from commit
6b73bb523a176123a819e4ebac3727d31d861515 )
Co-authored-by: Julien Palard <julien@palard.fr>
Serhiy Storchaka [Tue, 20 Nov 2018 19:56:34 +0000 (21:56 +0200)]
[2.7] bpo-35021: Fix assertion failures in _datetimemodule.c. (GH-10039) (GH-10617)
Fixes assertion failures in _datetimemodule.c
introduced in the previous fix (see bpo-31752).
Rather of trying to handle an int subclass as exact int,
let it to use overridden special methods, but check the
result of divmod().
(cherry picked from commit
3ec0f495163da3b7a15deb2805cec48aed432f58 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 19 Nov 2018 13:07:58 +0000 (05:07 -0800)]
Upgrade pip to 18.1 and setuptools to 40.6.2 (GH-10598)
(cherry picked from commit
8b9c33ea9ce902f902c9d9900121010801950547 )
Co-authored-by: Donald Stufft <donald@stufft.io>
Miss Islington (bot) [Fri, 16 Nov 2018 16:32:07 +0000 (08:32 -0800)]
Add a missed PyErr_NoMemory() in symtable_new(). (GH-10576)
This missed PyErr_NoMemory() could cause a SystemError when calling
_symtable.symtable().
(cherry picked from commit
ad65f15581173542f1d2a9968a63bee272510ce3 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Thu, 15 Nov 2018 09:25:58 +0000 (01:25 -0800)]
Fix a possible reference leak in _socket.getaddrinfo(). (GH-10543)
"single" needs to be decrefed if PyList_Append() fails.
(cherry picked from commit
4c596d54aa6a55e9d2a3db78891e656ebbfb63c8 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Gregory P. Smith [Wed, 14 Nov 2018 19:55:07 +0000 (11:55 -0800)]
[2.7] bpo-35214: Fix OOB memory access in unicode escape parser (GH-10506) (GH-10538)
Discovered using clang's MemorySanitizer.
A msan build will fail by simply executing: ./python -c 'u"\N"'
(cherry picked from commit
746b2d3 )
Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google LLC]
Andrés Delfino [Wed, 14 Nov 2018 01:08:09 +0000 (22:08 -0300)]
[2.7] Grammar corrections in abc.rst (GH-10525). (GH-10535)
(cherry picked from commit
8e0b05e2f4b9fd703cbe1ae8d058852ef3781f44 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Mon, 12 Nov 2018 16:52:13 +0000 (08:52 -0800)]
Linkify PEP 8 in unix.rst (GH-10482)
(cherry picked from commit
9404e7737bd09bc1df154e1216d721e5168e4c68 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Andrés Delfino [Sun, 11 Nov 2018 20:09:03 +0000 (17:09 -0300)]
[2.7] bpo-33699: Describe try's else clause with the rest of the try clause (GH-7252) (GH-10469)
https://bugs.python.org/issue33699
(cherry picked from commit
b086c8afdb8c862011e3e27d4c8f6833749f2c56 )
https://bugs.python.org/issue33699
Alexey Izbyshev [Sat, 10 Nov 2018 05:47:12 +0000 (08:47 +0300)]
[2.7] bpo-35194: Fix a wrong constant in cp932 codec. (GH-10420) (GH-10433)
This typo doesn't affect the result because wrong bits are discarded
on implicit conversion to unsigned char, but it trips UBSan
with -fsanitize=implicit-integer-truncation.
(cherry picked from commit
7a69cf47a9bbc95f95fd67c982bff121b2a903cb )
Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
Julien Palard [Thu, 8 Nov 2018 08:09:38 +0000 (09:09 +0100)]
[2.7] Doc: Make all versions sidebars the same for consistency. (GH-10288) (GH-10410)
Miss Islington (bot) [Thu, 8 Nov 2018 05:16:15 +0000 (21:16 -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 18:30:31 +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:30:12 +0000 (10:30 -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:07 +0000 (09:55 -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) [Tue, 6 Nov 2018 04:59:07 +0000 (20:59 -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>
Serhiy Storchaka [Mon, 5 Nov 2018 16:16:26 +0000 (18:16 +0200)]
[2.7] bpo-35133: Fix mistakes when concatenate string literals on different lines. (GH-10284) (GH-10335) (GH-10336)
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 )
(cherry picked from commit
7054e5c80b6e98cd44e22d1bc2d7f0a94343089d )
Stéphane Wirtel [Sun, 4 Nov 2018 19:38:50 +0000 (20:38 +0100)]
[2.7] Docs: fix some wrong words (GH-6987) (GH-10315)
Miss Islington (bot) [Sat, 3 Nov 2018 17:41:56 +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>
Benjamin Peterson [Fri, 2 Nov 2018 03:28:34 +0000 (20:28 -0700)]
[2.7] closes bpo-35139: The `pyexpat` module's macros in `Modules/Setup` now match `setup.py` (GH-10293)
This could cause compile errors on macOS or other platforms..
(cherry picked from commit
318ab63c01f5b8e7562b122ab5ba01258a51277b )
Co-authored-by: Max Bélanger <aeromax@gmail.com>
Lysandros Nikolaou [Thu, 1 Nov 2018 01:49:10 +0000 (02:49 +0100)]
[2.7] bpo-32804: Include the context parameter in urlretrieve documentation (GH-10203)
Miss Islington (bot) [Wed, 31 Oct 2018 12:37:06 +0000 (05:37 -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>
matthewbelisle-wf [Tue, 30 Oct 2018 21:16:26 +0000 (16:16 -0500)]
bpo-34866: Add max_num_fields to cgi.FieldStorage (GH-9660) (GH-9969)
Adding `max_num_fields` to `cgi.FieldStorage` to make DOS attacks harder by
limiting the number of `MiniFieldStorage` objects created by `FieldStorage`.
(cherry picked from commit
209144831b0a19715bda3bd72b14a3e6192d9cc1 )
Zackery Spytz [Mon, 29 Oct 2018 16:03:26 +0000 (10:03 -0600)]
[2.7] Fix a possible "double decref" in termios.tcgetattr(). (GH-10194) (GH-10218)
(cherry picked from commit
53835e92d315340444e3dd083b3f69a590b00e07 )
Miss Islington (bot) [Mon, 29 Oct 2018 11:55:15 +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>
Zackery Spytz [Mon, 29 Oct 2018 07:23:59 +0000 (01:23 -0600)]
[2.7] bpo-35068: Fix possible crashes in pyexpat.c. (GH-10099)
Serhiy Storchaka [Sun, 28 Oct 2018 18:56:30 +0000 (20:56 +0200)]
[2.7] Fix checking for bugfix Tcl version. (GH-10185). (GH-10188)
(cherry picked from commit
18d57b4d6262bf96b5ac307bd84837c29ea04083 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Sun, 28 Oct 2018 17:36:02 +0000 (19:36 +0200)]
[2.7] bpo-34794: Fix a leak in Tkinter. (GH-10025) (GH-10181)
Based on the investigation by Xiang Zhang.
(cherry picked from commit
df13df41a25765d8a39a77220691698498e758d4 )
Mariatta [Sat, 27 Oct 2018 18:27:33 +0000 (11:27 -0700)]
[2.7] unittest documentation: Spell pytest without the dot (GH-9820) (GH-10157)
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:09:10 +0000 (20:09 -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>
Denis Ledoux [Fri, 26 Oct 2018 15:15:22 +0000 (17:15 +0200)]
bpo-35017, socketserver: don't accept request after shutdown (GH-9952) (GH-10129)
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 )
Miss Islington (bot) [Fri, 26 Oct 2018 13:29:42 +0000 (06:29 -0700)]
[3.7] bpo-34789: xml.sax.make_parser expects a list not just any sequence (GH-9542)
(cherry picked from commit
1487b651caa62647f8f8c9e8432e475e3566130c )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Senthil Kumaran [Fri, 26 Oct 2018 08:27:09 +0000 (01:27 -0700)]
[2.7] bpo-34576 : Backport
eeab510 2.7 (#10115)
* bpo-34576 - Fix the formatting for security considerations in http.server.rst (#10005)
* Address review comment..
(cherry picked from commit
eeab510bb7e51802c18b3770cbb23ae0ca91da6b )
Co-authored-by: Senthil Kumaran <skumaran@gatech.edu>
Zackery Spytz [Fri, 26 Oct 2018 05:37:07 +0000 (23:37 -0600)]
[2.7] Fix error handling bugs in _elementtree.c. (GH-10060) (GH-10080)
Don't leak a reference if PyDict_Update() fails, check the
PyList_New() call in treebuilder_new(), and properly handle failures
in xmlparser().
(cherry picked from commit
9f3ed3e213b30059087d059a7d1d3b2527fa8654 )
Zsolt Cserna [Wed, 24 Oct 2018 21:22:27 +0000 (23:22 +0200)]
[2.7] bpo-34260, shutil: fix copy2 and copystat documentation (GH-8523) (GH-10071)
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 )
Tal Einat [Wed, 24 Oct 2018 17:32:21 +0000 (20:32 +0300)]
bpo-33899: Revert tokenize module adding an implicit final NEWLINE (GH-10072)
This reverts commit
7829bba .
Xiang Zhang [Tue, 23 Oct 2018 06:43:08 +0000 (14:43 +0800)]
[2.7] bpo-34748: link to :ref:`partial-objects` in functools.partial doc. (GH-9809)
(cherry picked from commit
83a0765 )
Co-authored-by: Andrei Petre p31andrei@gmail.com
Serhiy Storchaka [Sun, 21 Oct 2018 07:10:24 +0000 (10:10 +0300)]
[2.7] bpo-34936: Fix TclError in tkinter.Spinbox.selection_element(). (GH-9760) (GH-9957) (GH-9968)
(cherry picked from commit
1deea5e53991b46351f6bb395b22365c9455ed88 ).
(cherry picked from commit
bd9c2ce7acaef45f23c2659b854fc9925096d040 )
Co-authored-by: Juliette Monsel <j4321@users.noreply.github.com>
Terry Jan Reedy [Sat, 20 Oct 2018 23:34:12 +0000 (19:34 -0400)]
bpo-31500: Default fonts now are scaled on HiDPI displays. (#10015)
[2.7] bpo-31500: Add idlelib news items about HiDPI scaling
Cheryl Sabella [Sat, 20 Oct 2018 20:27:51 +0000 (16:27 -0400)]
[2.7] bpo-31500: IDLE: Scale default fonts on HiDPI displays. (GH-3639) (GH-6585)
(cherry picked from commit
a96c96f5dab68d4e611af4b8caefd7268533fd9a )
Miss Islington (bot) [Sat, 20 Oct 2018 15:32:21 +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>
Miss Islington (bot) [Sat, 20 Oct 2018 00:49:37 +0000 (17:49 -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:45:06 +0000 (17:45 -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) [Fri, 19 Oct 2018 23:09:35 +0000 (16:09 -0700)]
bpo-34791: xml package obeys ignore env flags (GH-9544) (GH-9547)
The xml.sax and xml.dom.domreg modules now obey
sys.flags.ignore_environment.
Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue34791
(cherry picked from commit
223e501fb9c2b6ae21b96054e20c4c31d94a5d96 )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Fri, 19 Oct 2018 07:26:37 +0000 (00:26 -0700)]
Fix several reference counting bugs in pyexpat.c. (GH-9955)
(cherry picked from commit
68def052dcd41313eff2bd9f269e22c5a941db4d )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Stéphane Wirtel [Wed, 17 Oct 2018 11:51:28 +0000 (13:51 +0200)]
[2.7] bpo-23420: Verify the value of '-s' when execute the CLI of cProfile (GH-9925) (GH-9928)
Verify the value for the parameter '-s' of the cProfile CLI. Patch by Robert
Kuska.
Co-authored-by: Robert Kuska <rkuska@gmail.com>
(cherry picked from commit
fcd5e84a515e19409840c570730f0728e9fcfc83 )
https://bugs.python.org/issue23420
Miss Islington (bot) [Tue, 16 Oct 2018 06:47:26 +0000 (23:47 -0700)]
bpo-34967: Sphinx is deprecating add_description_unit, use add_object_type (GH-9827)
(cherry picked from commit
e385d0661ecf8bc9ba95c4395d9a11262c2cbfec )
Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
Zackery Spytz [Tue, 16 Oct 2018 05:46:35 +0000 (23:46 -0600)]
[2.7] bpo-16965: 2to3 now rewrites execfile() to open with rb. (GH-8569) (GH-9890)
(cherry picked from commit
d4d60134b29290049e28df54f23493de4f1824b6 )
Victor Stinner [Mon, 15 Oct 2018 22:06:23 +0000 (00:06 +0200)]
bpo-34989: python-gdb.py: fix current_line_num() (GH-9889) (GH-9899)
python-gdb.py now handles errors on computing the line number
of a Python frame.
Changes:
* PyFrameObjectPtr.current_line_num() now catchs any Exception on
calling addr2line(), instead of failing with a surprising "<class
'TypeError'> 'FakeRepr' object is not subscriptable" error.
* All callers of current_line_num() now handle current_line_num()
returning None.
* PyFrameObjectPtr.current_line() now also catchs IndexError on
getting a line from the Python source file.
(cherry picked from commit
2e438cc2554495b28480a3ffe5cdf41b6ab823a0 )
Serhiy Storchaka [Mon, 15 Oct 2018 05:46:16 +0000 (08:46 +0300)]
[2.7] bpo-34974: Do not replace unexpected errors in bytearray(). (GH-9852) (GH-9885)
The bytearray constructor converted unexpected exceptions
(e.g. MemoryError and KeyboardInterrupt) to TypeError.
(cherry picked from commit
e890421e334ccf0c000c6b29c4a521d86cd12f47 )
Serhiy Storchaka [Sun, 14 Oct 2018 10:07:54 +0000 (13:07 +0300)]
[2.7] Add new tests for bytes and bytearray constructors. (GH-9843) (#9866)
Covered all special cases: bytes, tuple, list, differend
kinds of iterables and iterators.
(cherry picked from commit
1a997eb291fdc5f5606c898fffbde61d899ed762 )
Zackery Spytz [Sat, 13 Oct 2018 09:25:05 +0000 (03:25 -0600)]
[2.7] bpo-22851: Fix a segfault when accessing generator.gi_frame.f_restricted. (GH-9348)
Frame's field f_tstate is NULL when the generator is exhausted.
Miss Islington (bot) [Fri, 12 Oct 2018 12:06:16 +0000 (05:06 -0700)]
bpo-34203: FAQ now recommends python 3.x over 2.x (GH-9796)
(cherry picked from commit
4505f65ae7807f2420ed14d4f060e7cd5c4039d3 )
Co-authored-by: Gus Goulart <augusto@goulart.me>
Victor Stinner [Wed, 10 Oct 2018 10:54:04 +0000 (12:54 +0200)]
bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (GH-9656) (GH-9788)
When Python is built with the intel control-flow protection flags,
-mcet -fcf-protection, gdb is not able to read the stack without
actually jumping inside the function. This means an extra
'next' command is required to make the $pc (program counter)
enter the function and make the stack of the function exposed to gdb.
test_gdb: get_gdb_repr() now uses the "backtrace 1" command after
breakpoint, as in the master branch.
Co-Authored-By: Marcel Plch <gmarcel.plch@gmail.com>
(cherry picked from commit
9b7c74ca32d1bec7128d550a9ab1b2ddc7046287 )
(cherry picked from commit
79d21331e605fdc941f947621846b8563485aab6 )
tzickel [Wed, 3 Oct 2018 11:50:04 +0000 (14:50 +0300)]
[2.7] bpo-34172: multiprocessing.Pool leaks resources after being deleted (GH-9686)
Fix a reference issue inside multiprocessing.Pool that caused the pool to remain alive if it was deleted without being closed or terminated explicitly.
Andrés Delfino [Sat, 29 Sep 2018 16:57:35 +0000 (13:57 -0300)]
[2.7] bpo-13407: Mention that bz2/tarfile doesn't support multi-stream bzip2 files (GH-8428)
* bpo-13407: Mention that tarfile doesn't support multistream bzip2 files
* Add mention to bz2 module also
Victor Stinner [Wed, 26 Sep 2018 15:18:23 +0000 (08:18 -0700)]
Drop confusing commented out code in pystrtod.c (GH-6072) (GH-9588)
Fix the following warning:
Python/pystrtod.c: In function 'format_float_short':
Python/pystrtod.c:1007:13: warning: 'strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation]
strncpy(p, "ERR", 3);
(cherry picked from commit
9fb84157595a385f15799e5d0729c1e1b0ba9d38 )
Terry Jan Reedy [Mon, 24 Sep 2018 23:43:54 +0000 (19:43 -0400)]
[2.7] bpo-34162: Update 2.7 idlelib/NEWS.txt to 2018-9-24 (GH-9550)
Serhiy Storchaka [Sat, 22 Sep 2018 18:34:16 +0000 (21:34 +0300)]
[2.7] bpo-34610: Fixed iterator of multiprocessing.managers.DictProxy. (GH-9113). (GH-9500)
(cherry picked from commit
e0e5065daef36dafe10a46eaa8b7800274d73062 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Sat, 22 Sep 2018 17:48:23 +0000 (20:48 +0300)]
[2.7] bpo-34472: Add data descriptor signature to zipfile (GH-8871) (ПР-9407)
This makes streamed zips compatible with MacOS Archive Utility and
other applications.
(cherry picked from commit
4ba3b50bfe6d50cd82d208023ea23e203ab50589 )
Co-authored-by: Silas Sewell <silas@sewell.org>
Miss Islington (bot) [Sat, 22 Sep 2018 15:38:57 +0000 (08:38 -0700)]
Fix pickletools doc for NEWFALSE. (GH-9432)
Also make docs for NEWFALSE and NEWTRUE more consistent
with docs for other opcodes.
(cherry picked from commit
488cfb78c8b81075942b5e4cc9630e7a6dd9dc28 )
Co-authored-by: Krzysztof Wroblewski <krzysiek.wr@gmail.com>
Miss Islington (bot) [Sat, 22 Sep 2018 04:57:00 +0000 (21:57 -0700)]
[2.7] bpo-34623: Mention CVE-2018-14647 in news entry (GH-9482) (GH-9490)
https://bugs.python.org/issue34623
(cherry picked from commit
026337a7101369297c8083047d2f3c6fc9dd1e2b )
Co-authored-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue34623
Miss Islington (bot) [Thu, 20 Sep 2018 16:06:04 +0000 (09:06 -0700)]
bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446)
(cherry picked from commit
8213eaddf3ce8e87564d2949454903a1484748b5 )
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
Christian Heimes [Thu, 20 Sep 2018 10:33:53 +0000 (12:33 +0200)]
[2.7] bpo-34542: Update test certs and keys (GH-8997) (GH-9397)
Update all test certs and keys to use future proof crypto settings:
* 3072 bit RSA keys
* SHA-256 signature
Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit
e6dac0077996b1e1f886f036d6f2606237fa4c85 )
https://bugs.python.org/issue34542
Vladimir Matveev [Wed, 19 Sep 2018 20:48:21 +0000 (13:48 -0700)]
[2.7] bpo-34603, ctypes/libffi_msvc: Fix returning structs from functions (GH-9258) (GH-9425)
Co-authored-by: Vladimir Matveev <v2matveev@outlook.com>
Serhiy Storchaka [Tue, 18 Sep 2018 20:28:34 +0000 (23:28 +0300)]
[2.7] bpo-34341: Fix appending to ZIP archives with the ZIP64 extension. (GH-8683). (GH-9400)
(cherry picked from commit
9bdb7be482aef8f60daa1d36606568a132dcb616 )
Christian Heimes [Tue, 18 Sep 2018 13:13:09 +0000 (15:13 +0200)]
[2.7] bpo-34623: Use XML_SetHashSalt in _elementtree (GH-9146) (GH-9394)
The C accelerated _elementtree module now initializes hash randomization
salt from _Py_HashSecret instead of libexpat's default CPRNG.
Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue34623.
(cherry picked from commit
cb5778f00ce48631c7140f33ba242496aaf7102b )
Co-authored-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue34623
Christian Heimes [Mon, 17 Sep 2018 13:42:30 +0000 (06:42 -0700)]
[2.7] bpo-34710: fix SSL module build (GH-9347) (GH-9353)
Include ``openssl/dh.h`` header file to fix implicit function declaration of ``DH_free()``.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>.
(cherry picked from commit
b3a271fc0ce3e13e427be8914decfc205a220ca8 )
Co-authored-by: Alexandru Ardelean <ardeleanalex@gmail.com>
https://bugs.python.org/issue34710
Serhiy Storchaka [Mon, 17 Sep 2018 12:15:48 +0000 (15:15 +0300)]
[2.7] bpo-33216: Clarify the documentation for CALL_FUNCTION_* (GH-8338) (GH-8783)
(cherry picked from commit
76aa2c0a9a8dd3ac90b91e7342c8ce8125bf21f9 )
Co-authored-by: larryhastings <larry@hastings.org>
xdegaye [Sun, 16 Sep 2018 06:09:14 +0000 (08:09 +0200)]
[2.7] bpo-19417: Add test_bdb.py (GH-5217) (GH-6156)
(cherry picked from commit
3fe33043ee83d19e15551094fc1e0984617ded3c )
https://bugs.python.org/issue19417
Shoham Peller [Fri, 14 Sep 2018 23:28:08 +0000 (02:28 +0300)]
[2.7] closes bpo-8450: a better error message when http status line isn't received (GH-2825)
When the server has closed the connection before sending a status-line,
the client's error message should have a more descriptive error message
https://bugs.python.org/issue8450
https://bugs.python.org/issue8450
Benjamin Peterson [Fri, 14 Sep 2018 16:53:09 +0000 (09:53 -0700)]
[2.7] Don't run AC_STRUCT_TIMEZONE twice. (GH-9309)
(cherry picked from commit
a4414ef20b971e6803309acebfa85b1621ac625e )
Zackery Spytz [Thu, 13 Sep 2018 23:16:41 +0000 (17:16 -0600)]
[2.7] bpo-20047: Remove Objects/bytesobject.c from 2.7 (GH-9268)
It was accidentally added in
107f3cc791d223dc06b7c80f0de672e88ae6a8d1 .
Benjamin Peterson [Thu, 13 Sep 2018 18:24:07 +0000 (11:24 -0700)]
[2.7] closes bpo-34661: Fix test_shutil if unzip doesn't support -t. (GH-9267)
(cherry picked from commit
a710ebd21b09efe902dde84d4862ce5c6427f7af )
Benjamin Peterson [Wed, 12 Sep 2018 23:31:17 +0000 (16:31 -0700)]
[2.7] closes bpo-34652: Always disable lchmod on Linux. (GH-9242)
(cherry picked from commit
40caa05fa4d1810a1a6bfc34e0ec930c351089b7 )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Miss Islington (bot) [Wed, 12 Sep 2018 22:00:56 +0000 (15:00 -0700)]
bpo-34649: Add missing NULL checks to _encoded_const() (GH-9225)
Reported by Svace static analyzer.
(cherry picked from commit
6f82bffd2df63a4072b3f0483cdbe93ddedb87e9 )
Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
Zackery Spytz [Wed, 12 Sep 2018 11:28:18 +0000 (05:28 -0600)]
[2.7] bpo-28994: Remove mistakenly backported atexitmodule.c (GH-9214)
It was backported in
0cc43df05e36655220468953e838169966b94ebd .
Benjamin Peterson [Wed, 12 Sep 2018 01:28:35 +0000 (18:28 -0700)]
[2.7] Delete old expat comment. (GH-9205)
(cherry picked from commit
b9bf9d025e659b5a1963027eb73690e57cb35dd0 )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Steve Dower [Wed, 12 Sep 2018 01:02:40 +0000 (18:02 -0700)]
[2.7] bpo-34405: Updated to OpenSSL 1.0.2p for Windows builds. (GH-8776) (GH-9202)
https://bugs.python.org/issue34405
Miss Islington (bot) [Tue, 11 Sep 2018 23:53:20 +0000 (16:53 -0700)]
[2.7] bpo-34405: Update to OpenSSL 1.0.2p for macOS installer builds (GH-9191) (GH-9196)
(cherry picked from commit
31912b43c903aafad09350899ed6a9dec7c43421 )
Co-authored-by: Ned Deily <nad@python.org>
<!-- issue-number: [bpo-34405](https://www.bugs.python.org/issue34405) -->
https://bugs.python.org/issue34405
<!-- /issue-number -->
Chih-Hsuan Yen [Tue, 11 Sep 2018 20:54:57 +0000 (04:54 +0800)]
[2.7] bpo-32502: Discard 64-bit (and other invalid) hardware addresses (GH-9125)
(cherry picked from commit
6b273f7f4056f8276f61a97c789d6bb4425e653c )
Co-authored-by: Bo Bayles <bbayles@gmail.com>
Benjamin Peterson [Tue, 11 Sep 2018 20:41:57 +0000 (13:41 -0700)]
[2.7] closes bpo-31608: Fix a crash in methods of a subclass of _collections.deque with a bad __new__(). (GH-9179)
Miss Islington (bot) [Tue, 11 Sep 2018 04:26:42 +0000 (21:26 -0700)]
bpo-34625: Update vendorized expat version to 2.2.6. (GH-9150)
(cherry picked from commit
5033aa77aacaa5505636f150e8d54baac5bdca9c )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
tzickel [Mon, 10 Sep 2018 18:46:14 +0000 (21:46 +0300)]
bpo-25083: Python can sometimes create incorrect .pyc files (GH-8449)
Python 2 never checked for I/O error when reading .py files and
thus could mistake an I/O error for EOF and create incorrect .pyc
files.
This adds an check for this and aborts on an error.
Benjamin Peterson [Mon, 10 Sep 2018 17:50:15 +0000 (10:50 -0700)]
[2.7] Fix misleading mentions of tp_size in comments (GH-9138)
Many type object initializations labeled a field "tp_size" in the
comment, but the name of that field is tp_basicsize..
(cherry picked from commit
0e0bc4e221f592f305d335faf5f8046484eb9238 )
Co-authored-by: Peter Eisentraut <peter@eisentraut.org>
Miss Islington (bot) [Mon, 10 Sep 2018 16:41:12 +0000 (09:41 -0700)]
bpo-23855: Add missing NULL checks for malloc() in _msi.c (GH-9038)
(cherry picked from commit
4e519377b1b84c9414a360961276993d24198825 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Victor Stinner [Fri, 7 Sep 2018 08:15:31 +0000 (10:15 +0200)]
bpo-25750: fix refcounts in type_getattro() (GH-6118) (GH-9091)
When calling tp_descr_get(self, obj, type), make sure that
we own a strong reference to "self".
(cherry picked from commit
8f735485acf2e35a75d2fa019feb8f905598c4e5 )
Miss Islington (bot) [Wed, 5 Sep 2018 14:46:26 +0000 (07:46 -0700)]
bpo-26544: Get rid of dependence from distutils in platform. (GH-8356) (GH-8952)
(cherry picked from commit
7d81e8f5995df6980a1a02923e224a481375f130 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Victor Stinner [Tue, 4 Sep 2018 09:40:29 +0000 (11:40 +0200)]
bpo-34530: Fix distutils find_executable() (GH-9049) (GH-9058)
distutils.spawn.find_executable() now falls back on os.defpath if the
PATH environment variable is not set.
(cherry picked from commit
39487196c87e28128ea907a0d9b8a88ba53f68d5 )