]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
6 years agoUpdate the URL for the requests package (GH-17006)
Simon Legner [Thu, 31 Oct 2019 12:01:44 +0000 (13:01 +0100)] 
Update the URL for the requests package (GH-17006)

Change the url from docs.python-requests.org to requests.readthedocs.io

6 years agoAdd docstring for shlex.split (GH-16740)
MaT1g3R [Thu, 31 Oct 2019 10:23:20 +0000 (06:23 -0400)] 
Add docstring for shlex.split (GH-16740)

6 years agobpo-38312: Add curses.{get,set}_escdelay and curses.{get,set}_tabsize. (GH-16938)
Anthony Sottile [Thu, 31 Oct 2019 09:13:48 +0000 (02:13 -0700)] 
bpo-38312: Add curses.{get,set}_escdelay and curses.{get,set}_tabsize. (GH-16938)

6 years agobpo-38586: setting logging.Handler .name property in fileConfig (GH-16918)
Lucas Cimon [Thu, 31 Oct 2019 08:06:25 +0000 (09:06 +0100)] 
bpo-38586: setting logging.Handler .name property in fileConfig (GH-16918)

6 years agobpo-16575: Add checks for unions passed by value to functions. (GH-16799)
Vinay Sajip [Thu, 31 Oct 2019 08:03:54 +0000 (08:03 +0000)] 
bpo-16575: Add checks for unions passed by value to functions. (GH-16799)

6 years agocloses bpo-38648: Remove double tp_free slot in Python-ast.c. (GH-17002)
Max Bernstein [Thu, 31 Oct 2019 01:08:06 +0000 (18:08 -0700)] 
closes bpo-38648: Remove double tp_free slot in Python-ast.c. (GH-17002)

This looks like a typo due to copy-paste.

6 years agobpo-38600: NULL -> ``NULL``. (GH-17001)
Serhiy Storchaka [Wed, 30 Oct 2019 19:37:16 +0000 (21:37 +0200)] 
bpo-38600: NULL -> ``NULL``. (GH-17001)

Also fix some other formatting.

6 years agobpo-38631: Avoid Py_FatalError() in readline (GH-16998)
Victor Stinner [Wed, 30 Oct 2019 15:39:27 +0000 (16:39 +0100)] 
bpo-38631: Avoid Py_FatalError() in readline (GH-16998)

readline now calls PyErr_NoMemory() rather than Py_FatalError() on
memory allocation failure, when importing the module.

6 years agobpo-38614: Increase asyncio test_communicate() timeout (GH-16995)
Victor Stinner [Wed, 30 Oct 2019 15:00:44 +0000 (16:00 +0100)] 
bpo-38614: Increase asyncio test_communicate() timeout (GH-16995)

Fix test_communicate() of test_asyncio.test_subprocess: use
support.LONG_TIMEOUT (5 minutes), instead of 1 minute.

6 years agobpo-38640: Allow break and continue in always false while loops (GH-16992)
Pablo Galindo [Wed, 30 Oct 2019 11:53:26 +0000 (11:53 +0000)] 
bpo-38640: Allow break and continue in always false while loops (GH-16992)

6 years agobpo-38614: Add timeout constants to test.support (GH-16964)
Victor Stinner [Wed, 30 Oct 2019 11:41:43 +0000 (12:41 +0100)] 
bpo-38614: Add timeout constants to test.support (GH-16964)

Add timeout constants to test.support:

* LOOPBACK_TIMEOUT
* INTERNET_TIMEOUT
* SHORT_TIMEOUT
* LONG_TIMEOUT

6 years agobpo-28029: Make "".replace("", s, n) returning s for any n != 0. (GH-16981)
Serhiy Storchaka [Wed, 30 Oct 2019 10:03:53 +0000 (12:03 +0200)] 
bpo-28029: Make "".replace("", s, n) returning s for any n != 0. (GH-16981)

6 years agobpo-38600: Change the mark up of NULL in the C API documentation. (GH-16950)
Serhiy Storchaka [Wed, 30 Oct 2019 10:03:20 +0000 (12:03 +0200)] 
bpo-38600: Change the mark up of NULL in the C API documentation. (GH-16950)

Replace all *NULL* with ``NULL``.

6 years agobpo-36993: Improve error reporting for zipfiles with bad zip64 extra data. (GH-14656)
Daniel Hillier [Tue, 29 Oct 2019 07:24:18 +0000 (18:24 +1100)] 
bpo-36993: Improve error reporting for zipfiles with bad zip64 extra data. (GH-14656)

6 years agobpo-38336: Remove the __set__ method restriction on data descriptors for attribute...
Géry Ogam [Tue, 29 Oct 2019 07:04:01 +0000 (08:04 +0100)] 
bpo-38336: Remove the __set__ method restriction on data descriptors for attribute lookup precedence (GH-16520)

6 years agoPermutations Python code equivalent in comment was invalid for Python 3 (GH-16927)
Sergey [Tue, 29 Oct 2019 05:10:24 +0000 (08:10 +0300)] 
Permutations Python code equivalent in comment was invalid for Python 3 (GH-16927)

6 years agobpo-38626: Add comment explaining why __lt__ is used. (GH-16978)
Raymond Hettinger [Tue, 29 Oct 2019 04:38:50 +0000 (21:38 -0700)] 
bpo-38626:  Add comment explaining why __lt__ is used. (GH-16978)

https://bugs.python.org/issue38626

6 years agoFix asyncio.wait() 3.8 whatsnew entry (GH-16975)
Kyle Stanley [Tue, 29 Oct 2019 01:53:22 +0000 (21:53 -0400)] 
Fix asyncio.wait() 3.8 whatsnew entry (GH-16975)

6 years agoRemove code commented for more than 10 years (GH-16965)
Victor Stinner [Mon, 28 Oct 2019 21:35:31 +0000 (22:35 +0100)] 
Remove code commented for more than 10 years (GH-16965)

test_urllib commented since 2007:

commit d9880d07fc032884e8bd5cf3ac636d3a3778d5f7
Author: Facundo Batista <facundobatista@gmail.com>
Date:   Fri May 25 04:20:22 2007 +0000

    Commenting out the tests until find out who can test them in
    one of the problematic enviroments.

pynche code commented since 1998 and 2001:

commit ef30092207e684bd3e74fe3d6172b97327a0a089
Author: Barry Warsaw <barry@python.org>
Date:   Tue Dec 15 01:04:38 1998 +0000

    Added most of the mechanism to change the strips from color variations
    to color constants (i.e. red constant, green constant, blue
    constant).  But I haven't hooked this up yet because the UI gets more
    crowded and the arrows don't reflect the correct values.

    Added "Go to Black" and "Go to White" buttons.

commit 741eae0b3129c123ed4319d8d9e5b877b09aefa8
Author: Barry Warsaw <barry@python.org>
Date:   Wed Apr 18 03:51:55 2001 +0000

    StripWidget.__init__(), update_yourself(): Removed some unused local
    variables reported by PyChecker.

    __togglegentype(): PyChecker accurately reported that the variable
    __gentypevar was unused -- actually this whole method is currently
    unused so comment it out.

6 years agobpo-38589: Fixes HTML Help shortcut when Windows is not installed to C drive (GH...
Steve Dower [Mon, 28 Oct 2019 21:34:25 +0000 (14:34 -0700)] 
bpo-38589: Fixes HTML Help shortcut when Windows is not installed to C drive (GH-16968)

6 years agobpo-38534: Replace wrong KB number references (GH-16955)
benedwards14 [Mon, 28 Oct 2019 17:53:51 +0000 (17:53 +0000)] 
bpo-38534: Replace wrong KB number references (GH-16955)

6 years agobpo-38519: Internal include files missing on Windows (GH-16921)
Zackery Spytz [Mon, 28 Oct 2019 17:03:27 +0000 (11:03 -0600)] 
bpo-38519: Internal include files missing on Windows (GH-16921)

6 years agobpo-37330: open() no longer accept 'U' in file mode (GH-16959)
Victor Stinner [Mon, 28 Oct 2019 14:40:08 +0000 (15:40 +0100)] 
bpo-37330: open() no longer accept 'U' in file mode (GH-16959)

open(), io.open(), codecs.open() and fileinput.FileInput no longer
accept "U" ("universal newline") in the file mode. This flag was
deprecated since Python 3.3.

6 years agobpo-38602: Add fcntl.F_OFD_XXXX for fcntlmodule (GH-16956)
Dong-hee Na [Mon, 28 Oct 2019 07:31:15 +0000 (16:31 +0900)] 
bpo-38602: Add fcntl.F_OFD_XXXX for fcntlmodule (GH-16956)

6 years agobpo-38592 Add pt-br switcher to Python Docs website (GH-16924)
Marco Rougeth [Sun, 27 Oct 2019 08:30:12 +0000 (05:30 -0300)] 
bpo-38592 Add pt-br switcher to Python Docs website (GH-16924)

* 📜🤖 Added by blurb_it.

6 years agobpo-38334: Fix seeking backward on an encrypted zipfile.ZipExtFile. (GH-16937)
Serhiy Storchaka [Sun, 27 Oct 2019 08:22:14 +0000 (10:22 +0200)] 
bpo-38334: Fix seeking backward on an encrypted zipfile.ZipExtFile. (GH-16937)

Test by Daniel Hillier.

6 years agobpo-37309: First idlelib/NEWS.txt for 3.9.0 (GH-16947)
Terry Jan Reedy [Sun, 27 Oct 2019 05:23:30 +0000 (01:23 -0400)] 
bpo-37309: First idlelib/NEWS.txt for 3.9.0 (GH-16947)

6 years agobpo-34162: Last idlelib/NEWS.txt items for 3.8.0. (GH-16943)
Terry Jan Reedy [Sun, 27 Oct 2019 02:19:57 +0000 (22:19 -0400)] 
bpo-34162: Last idlelib/NEWS.txt items for 3.8.0. (GH-16943)

6 years agobpo-38598: Do not try to compile IDLE shell or output windows (GH-16939)
Terry Jan Reedy [Sun, 27 Oct 2019 01:15:10 +0000 (21:15 -0400)] 
bpo-38598: Do not try to compile IDLE shell or output windows (GH-16939)

6 years agobpo-38434: Fixes some audit event documentation (GH-16932)
Steve Dower [Sat, 26 Oct 2019 20:02:30 +0000 (13:02 -0700)] 
bpo-38434: Fixes some audit event documentation (GH-16932)

6 years agobpo-38557: Improve documentation for list and tuple C API. (GH-16925)
Serhiy Storchaka [Sat, 26 Oct 2019 19:59:18 +0000 (22:59 +0300)] 
bpo-38557: Improve documentation for list and tuple C API. (GH-16925)

6 years agobpo-38535: Fix positions for AST nodes for calls without arguments in decorators...
Serhiy Storchaka [Sat, 26 Oct 2019 13:46:05 +0000 (16:46 +0300)] 
bpo-38535: Fix positions for AST nodes for calls without arguments in decorators. (GH-16861)

6 years agobpo-38558: Mention `:=` in conditions tutorial (GH-16919)
Ammar Askar [Fri, 25 Oct 2019 22:20:05 +0000 (18:20 -0400)] 
bpo-38558: Mention `:=` in conditions tutorial (GH-16919)

6 years agoFix typo in formatter_unicode (GH-16831)
Hansraj Das [Fri, 25 Oct 2019 16:44:02 +0000 (22:14 +0530)] 
Fix typo in formatter_unicode (GH-16831)

numbers's -> number's

6 years agobpo-33348: parse expressions after * and ** in lib2to3 (GH-6586)
Zsolt Dollenstein [Thu, 24 Oct 2019 06:19:07 +0000 (23:19 -0700)] 
bpo-33348: parse expressions after * and ** in lib2to3 (GH-6586)

These are valid even in python 2.7

https://bugs.python.org/issue33348

Automerge-Triggered-By: @gpshead
6 years agoAdd missing asyncio changes from 3.8 whatsnew (GH-16911)
Kyle Stanley [Thu, 24 Oct 2019 04:15:25 +0000 (00:15 -0400)] 
Add missing asyncio changes from 3.8 whatsnew (GH-16911)

6 years agobpo-30618: add readlink to pathlib.Path (GH-8285)
Girts [Wed, 23 Oct 2019 21:18:40 +0000 (14:18 -0700)] 
bpo-30618: add readlink to pathlib.Path (GH-8285)

This adds a "readlink" method to pathlib.Path objects that calls through
to os.readlink.

https://bugs.python.org/issue30618

Automerge-Triggered-By: @gpshead
6 years agoUpdate URL in macOS installer copy of license (GH-16905)
Ned Deily [Wed, 23 Oct 2019 20:04:59 +0000 (16:04 -0400)] 
Update URL in macOS installer copy of license (GH-16905)

6 years agobpo-34679: ProactorEventLoop only uses set_wakeup_fd() in main thread (GH-16901)
Victor Stinner [Wed, 23 Oct 2019 15:25:29 +0000 (17:25 +0200)] 
bpo-34679: ProactorEventLoop only uses set_wakeup_fd() in main thread (GH-16901)

bpo-34679, bpo-38563: asyncio.ProactorEventLoop.close() now only calls
signal.set_wakeup_fd() in the main thread.

6 years agobpo-38555: Fix an undefined behavior. (GH-16883)
Serhiy Storchaka [Wed, 23 Oct 2019 11:48:08 +0000 (14:48 +0300)] 
bpo-38555: Fix an undefined behavior. (GH-16883)

6 years agoSpell Bitbucket correctly. (GH-16862)
Peter Bittner [Wed, 23 Oct 2019 09:17:30 +0000 (11:17 +0200)] 
Spell Bitbucket correctly. (GH-16862)

6 years agoReplace _pysqlite_long_from_int64() with PyLong_FromLongLong() (GH-16882)
Sergey Fedoseev [Wed, 23 Oct 2019 08:09:01 +0000 (13:09 +0500)] 
Replace _pysqlite_long_from_int64() with PyLong_FromLongLong() (GH-16882)

6 years agobpo-38539: Finish rename of ss1.py to spreadsheet.py (GH-16896)
Raymond Hettinger [Wed, 23 Oct 2019 04:05:02 +0000 (21:05 -0700)] 
bpo-38539:  Finish rename of ss1.py to spreadsheet.py (GH-16896)

6 years agobpo-38539: Update demo files (GH-16890)
Julin S [Wed, 23 Oct 2019 03:23:48 +0000 (08:53 +0530)] 
bpo-38539: Update demo files (GH-16890)

6 years ago bpo-38419: fix "check-c-globals" path (GH-16680)
AMIR [Wed, 23 Oct 2019 00:05:54 +0000 (03:35 +0330)] 
 bpo-38419: fix "check-c-globals" path (GH-16680)

6 years agobpo-38466: Fix threading.excepthook doc (GH-16891)
Daniel Baskal [Tue, 22 Oct 2019 20:37:47 +0000 (23:37 +0300)] 
bpo-38466: Fix threading.excepthook doc (GH-16891)

6 years agobpo-37415: Fix stdatomic.h header check for ICC compiler (GH-16717)
Victor Stinner [Tue, 22 Oct 2019 19:53:50 +0000 (21:53 +0200)] 
bpo-37415: Fix stdatomic.h header check for ICC compiler (GH-16717)

Fix stdatomic.h header check for ICC compiler: the ICC implementation
lacks atomic_uintptr_t type which is needed by Python.

Test:

* atomic_int and atomic_uintptr_t types
* atomic_load_explicit() and atomic_store_explicit()
* memory_order_relaxed and memory_order_seq_cst constants

But don't test ATOMIC_VAR_INIT(): it's not used in Python.

6 years agoBump Sphinx to 2.2.0. (GH-16532)
Julien Palard [Tue, 22 Oct 2019 16:13:41 +0000 (18:13 +0200)] 
Bump Sphinx to 2.2.0. (GH-16532)

6 years agobpo-38303: Make audioop extension module PEP-384 compatible (GH-16497)
Tyler Kieft [Tue, 22 Oct 2019 13:07:03 +0000 (09:07 -0400)] 
bpo-38303: Make audioop extension module PEP-384 compatible (GH-16497)

https://bugs.python.org/issue38303

Automerge-Triggered-By: @encukou
6 years agoFix Zope URL (GH-16880)
Kyle Stanley [Tue, 22 Oct 2019 09:43:10 +0000 (05:43 -0400)] 
Fix Zope URL (GH-16880)

6 years agobpo-31202: Preserve case of literal parts in Path.glob() on Windows. (GH-16860)
Serhiy Storchaka [Mon, 21 Oct 2019 17:37:15 +0000 (20:37 +0300)] 
bpo-31202: Preserve case of literal parts in Path.glob() on Windows. (GH-16860)

6 years agovisit_reachable: replace release-mode test with an assert. (GH-16866)
Tim Peters [Mon, 21 Oct 2019 16:21:35 +0000 (11:21 -0500)] 
visit_reachable: replace release-mode test with an assert. (GH-16866)

It should be impossible for an untracked object to have the collecting
flag set.  Back when state was stored in gc_refs, it obviously was
impossible (gc_refs couldn't possibly have a positive & negative value
simultaneously).  While the _implementation_ of "state" has gotten much
more complicated, it's still _logically_ just as impossible.

6 years agobpo-38540: Fix possible leak in PyArg_Parse for "es#" and "et#". (GH-16869)
Serhiy Storchaka [Mon, 21 Oct 2019 08:35:07 +0000 (11:35 +0300)] 
bpo-38540: Fix possible leak in PyArg_Parse for "es#" and "et#". (GH-16869)

6 years agobpo-38493: Add os.CLD_KILLED and os.CLD_STOPPED. (GH-16821)
Dong-hee Na [Mon, 21 Oct 2019 07:01:05 +0000 (16:01 +0900)] 
bpo-38493: Add os.CLD_KILLED and os.CLD_STOPPED. (GH-16821)

6 years agobpo-27961: Replace PY_LONG_LONG with long long. (GH-15386)
Sergey Fedoseev [Mon, 21 Oct 2019 06:49:48 +0000 (11:49 +0500)] 
bpo-27961: Replace PY_LONG_LONG with long long. (GH-15386)

6 years agobpo-38208: Simplify string.Template by using __init_subclass__(). (GH-16256)
Serhiy Storchaka [Mon, 21 Oct 2019 06:36:21 +0000 (09:36 +0300)] 
bpo-38208: Simplify string.Template by using __init_subclass__(). (GH-16256)

6 years agobpo-38465: Convert the type of exports counters to Py_ssize_t. (GH-16746)
Hai Shi [Mon, 21 Oct 2019 06:31:46 +0000 (14:31 +0800)] 
bpo-38465: Convert the type of exports counters to Py_ssize_t. (GH-16746)

6 years agobpo-38531: document extend action's added version (GH-16865)
Batuhan Taşkaya [Sun, 20 Oct 2019 20:13:54 +0000 (23:13 +0300)] 
bpo-38531: document extend action's added version (GH-16865)

6 years agobpo-37759: More updates to Whatsnew 3.8 (GH-16854)
Raymond Hettinger [Sun, 20 Oct 2019 18:25:16 +0000 (11:25 -0700)] 
bpo-37759: More updates to Whatsnew 3.8 (GH-16854)

* math.perm() and math.comb()

* math.isqrt()

* Add singledispatchmethod()

* itertools.accumulate()

* Optional headers for xmlrpc.client.ServerProxy

* IDLE non-BMP characters

* import collections.abc directly

* @coroutine is deprecated

* pprint.pp()

* New options for object.__reduce__()

* DictReader no longer returns OrderedDicts

* "force" option for logging.basicConfig()

* Fix spelling

* cProfile context manager

* Various markup/grammar fixes from Kyle Stanley.
Other minor fixes as well.
Also, dedup the __reduce__ entry.

* Fix markup

* Fix grammar nits found by MS Word

6 years agobpo-36321: Fix misspelled attribute name in namedtuple() (GH-16858)
Raymond Hettinger [Sun, 20 Oct 2019 17:19:47 +0000 (10:19 -0700)] 
bpo-36321: Fix misspelled attribute name in namedtuple() (GH-16858)

6 years agobpo-38525: Fix a segmentation fault when using reverse iterators of empty dict (GH...
Dong-hee Na [Sat, 19 Oct 2019 20:01:08 +0000 (05:01 +0900)] 
bpo-38525: Fix a segmentation fault when using reverse iterators of empty dict (GH-16846)

The reverse iterator for empty dictionaries was not handling correctly shared-key dictionaries.

6 years agoRemove doc reference to unmaitained Nose package (GH-16849)
Jon Dufresne [Sat, 19 Oct 2019 19:22:20 +0000 (12:22 -0700)] 
Remove doc reference to unmaitained Nose package (GH-16849)

The Nose package is no longer maintained.

6 years agobpo-36876: Re-organize the c-analyzer tool code. (gh-16841)
Eric Snow [Sat, 19 Oct 2019 02:00:04 +0000 (19:00 -0700)] 
bpo-36876: Re-organize the c-analyzer tool code. (gh-16841)

This is partly a cleanup of the code. It also is preparation for getting the variables from the source (cross-platform) rather than from the symbols.

The change only touches the tool (and its tests).

6 years agovalidate_list: make flags argument impossible to spell wrongly. (GH-16843)
Tim Peters [Sat, 19 Oct 2019 01:59:14 +0000 (20:59 -0500)] 
validate_list: make flags argument impossible to spell wrongly. (GH-16843)

6 years agobpo-38521: Fix error in NormalDist.__eq__() (GH-16840)
Raymond Hettinger [Fri, 18 Oct 2019 21:20:35 +0000 (14:20 -0700)] 
bpo-38521: Fix error in NormalDist.__eq__() (GH-16840)

6 years agobpo-38502: regrtest uses process groups if available (GH-16829)
Victor Stinner [Fri, 18 Oct 2019 13:49:08 +0000 (15:49 +0200)] 
bpo-38502: regrtest uses process groups if available (GH-16829)

test.regrtest now uses process groups in the multiprocessing mode
(-jN command line option) if process groups are available: if
os.setsid() and os.killpg() functions are available.

6 years agobpo-27657: Fix urlparse() with numeric paths (#661)
Tim Graham [Fri, 18 Oct 2019 13:07:20 +0000 (09:07 -0400)] 
bpo-27657: Fix urlparse() with numeric paths (#661)

* bpo-27657: Fix urlparse() with numeric paths

Revert parsing decision from bpo-754016 in favor of the documented
consensus in bpo-16932 of how to treat strings without a // to
designate the netloc.

* bpo-22891: Remove urlsplit() optimization for 'http' prefixed inputs.

6 years agobpo-38418: Fixes audit event for os.system to be named 'os.system' (GH-16670)
Steve Dower [Fri, 18 Oct 2019 07:52:15 +0000 (00:52 -0700)] 
bpo-38418: Fixes audit event for os.system to be named 'os.system' (GH-16670)

https://bugs.python.org/issue38418

Automerge-Triggered-By: @zooba
6 years agoFix minor typos in What's New in Python 3.8. (GH-16770)
Jero Bado [Fri, 18 Oct 2019 07:48:48 +0000 (15:48 +0800)] 
Fix minor typos in What's New in Python 3.8. (GH-16770)

Added periods at the end of the sentences.

6 years agoDoc: Add missing entry for functools.cached_property (GH-16803)
Stéphane Wirtel [Fri, 18 Oct 2019 07:14:18 +0000 (09:14 +0200)] 
Doc: Add missing entry for functools.cached_property (GH-16803)

6 years agobpo-33604: Raise TypeError on missing hmac arg. (GH-16805)
Gregory P. Smith [Fri, 18 Oct 2019 03:30:42 +0000 (20:30 -0700)] 
bpo-33604: Raise TypeError on missing hmac arg. (GH-16805)

Also updates the documentation to clarify the situation surrounding
the digestmod parameter that is required despite its position in the
argument list as of 3.8.0 as well as removing old python2 era
references to "binary strings".

We indavertently had this raise ValueError in 3.8.0 for the missing
arg.  This is not considered an API change as no reasonable code would
be catching this missing argument error in order to handle it.

6 years agobpo-34953: Implement `mmap.mmap.__repr__` (GH-9891)
Taine Zhao [Thu, 17 Oct 2019 10:41:35 +0000 (18:41 +0800)] 
bpo-34953: Implement `mmap.mmap.__repr__` (GH-9891)

6 years agobpo-37587: json: Use _PyUnicodeWriter when scanning string. (GH-15591)
Inada Naoki [Thu, 17 Oct 2019 07:12:41 +0000 (16:12 +0900)] 
bpo-37587: json: Use _PyUnicodeWriter when scanning string. (GH-15591)

6 years agobpo-37531: regrtest now catchs ProcessLookupError (GH-16827)
Victor Stinner [Wed, 16 Oct 2019 22:29:12 +0000 (00:29 +0200)] 
bpo-37531: regrtest now catchs ProcessLookupError (GH-16827)

Fix a warning on a race condition on TestWorkerProcess.kill(): ignore
silently ProcessLookupError rather than logging an useless warning.

6 years agobpo-38492: Remove pythonw.exe dependency on the Microsoft C++ runtime (GH-16824)
Steve Dower [Wed, 16 Oct 2019 17:27:17 +0000 (10:27 -0700)] 
bpo-38492: Remove pythonw.exe dependency on the Microsoft C++ runtime (GH-16824)

6 years agobpo-38006: Add unit test for weakref clear bug (GH-16788)
Neil Schemenauer [Wed, 16 Oct 2019 03:56:48 +0000 (20:56 -0700)] 
bpo-38006: Add unit test for weakref clear bug (GH-16788)

6 years agobpo-35998: Fix test_asyncio.test_start_tls_server_1() (GH-16815)
Victor Stinner [Wed, 16 Oct 2019 00:36:42 +0000 (02:36 +0200)] 
bpo-35998: Fix test_asyncio.test_start_tls_server_1() (GH-16815)

main() is now responsible to send the ANSWER, rather than
ServerProto. main() now waits until it got the HELLO before sending
the ANSWER over the new transport.

Previously, there was a race condition between main() replacing the
protocol and the protocol sending the ANSWER once it gets the HELLO.

TLSv1.3 was disabled for the test: reenable it.

6 years agoUpdate doc switcher list for 3.8.0 (GH-16809)
Ned Deily [Tue, 15 Oct 2019 21:26:05 +0000 (17:26 -0400)] 
Update doc switcher list for 3.8.0 (GH-16809)

6 years agoTypo fix - implemention should be implementation (GH-16806)
Hansraj Das [Tue, 15 Oct 2019 20:49:13 +0000 (02:19 +0530)] 
Typo fix - implemention should be implementation (GH-16806)

6 years agobpo-38468 : Refactor python-config (#16749)
Joannah Nanjekye [Tue, 15 Oct 2019 14:18:47 +0000 (11:18 -0300)] 
bpo-38468 : Refactor python-config (#16749)

* refactor python-config

* 📜🤖 Added by blurb_it.

* Update Misc/NEWS.d/next/Build/2019-10-13-16-18-24.bpo-38468.buCO84.rst

Co-Authored-By: Pablo Galindo <Pablogsal@gmail.com>
* Use getvar for pyver

* Update news entry with affected file.

* Update Misc/NEWS.d/next/Build/2019-10-13-16-18-24.bpo-38468.buCO84.rst

Co-Authored-By: Victor Stinner <vstinner@python.org>
* Update 2019-10-13-16-18-24.bpo-38468.buCO84.rst

6 years agobpo-37961, tracemalloc: add Traceback.total_nframe (GH-15545)
Julien Danjou [Tue, 15 Oct 2019 12:00:16 +0000 (14:00 +0200)] 
bpo-37961, tracemalloc: add Traceback.total_nframe (GH-15545)

Add a total_nframe field to the traces collected by the tracemalloc module.
This field indicates the original number of frames before it was truncated.

6 years agobpo-38478: Correctly handle keyword argument with same name as positional-only parame...
Pablo Galindo [Tue, 15 Oct 2019 11:40:02 +0000 (12:40 +0100)] 
bpo-38478: Correctly handle keyword argument with same name as positional-only parameter (GH-16800)

6 years agobpo-38470: Fix test_compileall.test_compile_dir_maxlevels() (GH-16789)
Victor Stinner [Tue, 15 Oct 2019 09:26:13 +0000 (11:26 +0200)] 
bpo-38470: Fix test_compileall.test_compile_dir_maxlevels() (GH-16789)

Fix test_compile_dir_maxlevels() on Windows without long path
support: only create 3 subdirectories instead of between 20 and 100
subdirectories.

Fix also compile_dir() to use the current sys.getrecursionlimit()
value as the default maxlevels value, rather than using
sys.getrecursionlimit() value read at startup.

6 years agobpo-11410: Standardize and use symbol visibility attributes across POSIX and Windows...
Vinay Sajip [Tue, 15 Oct 2019 07:26:12 +0000 (08:26 +0100)] 
bpo-11410: Standardize and use symbol visibility attributes across POSIX and Windows. (GH-16347)

6 years agobpo-38133: Update docs to reflect fixes to py.exe launcher (GH-16791)
Steve Dower [Mon, 14 Oct 2019 22:45:43 +0000 (15:45 -0700)] 
bpo-38133: Update docs to reflect fixes to py.exe launcher (GH-16791)

6 years agoDoc: 3.8 is now stable. (GH-16790)
Julien Palard [Mon, 14 Oct 2019 22:13:38 +0000 (00:13 +0200)] 
Doc: 3.8 is now stable. (GH-16790)

6 years agoRemove draft status. Add asyncio REPL example (GH-16785)
Raymond Hettinger [Mon, 14 Oct 2019 16:01:05 +0000 (09:01 -0700)] 
Remove draft status.  Add asyncio REPL example (GH-16785)

6 years agobpo-38453: Resolve test directories before chdir to them (GH-16723)
Steve Dower [Mon, 14 Oct 2019 15:42:21 +0000 (08:42 -0700)] 
bpo-38453: Resolve test directories before chdir to them (GH-16723)

6 years agobpo-37759: Polish What's New in Python 3.8. (#16769)
Serhiy Storchaka [Mon, 14 Oct 2019 13:10:40 +0000 (16:10 +0300)] 
bpo-37759: Polish What's New in Python 3.8. (#16769)

6 years agoUpdate build docs for macOS (GH-16771)
Ned Deily [Mon, 14 Oct 2019 12:16:10 +0000 (08:16 -0400)] 
Update build docs for macOS (GH-16771)

6 years agobpo-32498: urllib.parse.unquote also accepts bytes (GH-7768)
Stein Karlsen [Mon, 14 Oct 2019 10:36:29 +0000 (12:36 +0200)] 
bpo-32498: urllib.parse.unquote also accepts bytes (GH-7768)

6 years agoUpdate macOS installer display files for 3.9.0a1 (GH-16765)
Ned Deily [Mon, 14 Oct 2019 08:26:45 +0000 (04:26 -0400)] 
Update macOS installer display files for 3.9.0a1 (GH-16765)

6 years agobpo-37759: Add examples for the new typing features (GH-16763)
Raymond Hettinger [Mon, 14 Oct 2019 06:32:03 +0000 (23:32 -0700)] 
bpo-37759: Add examples for the new typing features (GH-16763)

6 years agobpo-38461 and bpo-38463: Minor fixes to Whatsnew 3.8 (GH-16761)
Raymond Hettinger [Mon, 14 Oct 2019 04:31:12 +0000 (21:31 -0700)] 
bpo-38461 and bpo-38463: Minor fixes to Whatsnew 3.8 (GH-16761)

* bpo-38461: ncurses misspelled as curses

* bpo-38463: Fix broken link

6 years agobpo-38469: Handle named expression scope with global/nonlocal keywords (GH-16755)
Pablo Galindo [Mon, 14 Oct 2019 04:18:05 +0000 (05:18 +0100)] 
bpo-38469: Handle named expression scope with global/nonlocal keywords (GH-16755)

The symbol table handing of PEP572's assignment expressions is not resolving correctly the scope of some variables in presence of global/nonlocal keywords in conjunction with comprehensions.

6 years agobpo-38464: Document parameter for NormalDist.quantiles() (GH-16757)
Raymond Hettinger [Mon, 14 Oct 2019 02:53:30 +0000 (19:53 -0700)] 
bpo-38464: Document parameter for NormalDist.quantiles() (GH-16757)

6 years agoMisc gc code & comment cleanups. (GH-16752)
Tim Peters [Sun, 13 Oct 2019 21:47:04 +0000 (16:47 -0500)] 
Misc gc code & comment cleanups. (GH-16752)

* Misc gc code & comment cleanups.

validate_list:  there are two temp flags polluting pointers, but this checked only one.  Now it checks both, and verifies that the list head's pointers are not polluted.

move_unreachable: repaired incoherent comments.  Added new comments.  Cleared the pollution of the unreachable list head's 'next' pointer (it was expedient while the function was running, but there's no excuse for letting this damage survive the function's end).

* Update Modules/gcmodule.c

Co-Authored-By: Pablo Galindo <Pablogsal@gmail.com>
6 years agobpo-38467: Fix argument name of typing functions (GH-16753)
Sebastian Rittau [Sun, 13 Oct 2019 18:31:35 +0000 (20:31 +0200)] 
bpo-38467: Fix argument name of typing functions (GH-16753)

6 years agobpo-28556: Remove another mention of metaclass of Generic in typing docs (GH-16743)
Ivan Levkivskyi [Sun, 13 Oct 2019 16:53:06 +0000 (17:53 +0100)] 
bpo-28556: Remove another mention of metaclass of Generic in typing docs (GH-16743)

Metaclass was removed in Python 3.7 (there is already a `versionchanged` item about this).

https://bugs.python.org/issue28556

6 years agoRebased version of what's new PR (#16745)
Andrew Kuchling [Sun, 13 Oct 2019 15:51:36 +0000 (11:51 -0400)] 
Rebased version of what's new PR (#16745)

* Use Unicode character for accent
* Various grammar fixes
* Sort library modules alphabetically; remove duplicated idlelib/IDLE section