]> granicus.if.org Git - python/log
python
5 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)

5 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)

5 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)

5 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)

5 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

5 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
5 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)

5 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
5 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)

5 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.

5 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)

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

5 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)

5 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)

5 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)

5 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)

5 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)

5 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.

5 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)

5 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
5 years agoFix Zope URL (GH-16880)
Kyle Stanley [Tue, 22 Oct 2019 09:43:10 +0000 (05:43 -0400)]
Fix Zope URL (GH-16880)

5 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)

5 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.

5 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)

5 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)

5 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)

5 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)

5 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)

5 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)

5 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

5 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)

5 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.

5 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.

5 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).

5 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)

5 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)

5 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.

5 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.

5 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
5 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.

5 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)

5 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.

5 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)

5 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)

5 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.

5 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)

5 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)

5 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.

5 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)

5 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)

5 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

5 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.

5 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)

5 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.

5 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)

5 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)

5 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)

5 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)

5 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)

5 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)

5 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)

5 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)

5 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)

5 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)

5 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

5 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.

5 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)

5 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>
5 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)

5 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

5 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

5 years agobpo-38379: Don't block collection of unreachable objects when some objects resurrect...
Pablo Galindo [Sun, 13 Oct 2019 15:48:59 +0000 (16:48 +0100)]
bpo-38379: Don't block collection of unreachable objects when some objects resurrect (GH-16687)

Currently if any finalizer invoked during garbage collection resurrects any object, the gc gives up and aborts the collection. Although finalizers are assured to only run once per object, this behaviour of the gc can lead to an ever-increasing memory situation if new resurrecting objects are allocated in every new gc collection.

To avoid this, recompute what objects among the unreachable set need to be resurrected and what objects can be safely collected. In this way, resurrecting objects will not block the collection of other objects in the unreachable set.

5 years agoCorrect signature of __build_class__ (GH-16735)
Pablo Galindo [Sun, 13 Oct 2019 15:35:41 +0000 (16:35 +0100)]
Correct signature of __build_class__ (GH-16735)

5 years agobpo-38202: Fix a crash in dict_view & non-itearble. (GH-16241)
Zackery Spytz [Sun, 13 Oct 2019 11:49:05 +0000 (05:49 -0600)]
bpo-38202: Fix a crash in dict_view & non-itearble. (GH-16241)

5 years agobpo-38431: Fix __repr__ method of InitVar to work with typing objects. (GH-16702)
Samuel Colvin [Sun, 13 Oct 2019 11:45:36 +0000 (12:45 +0100)]
bpo-38431: Fix __repr__ method of InitVar to work with typing objects. (GH-16702)

5 years agobpo-38378: Rename parameters "out" and "in" of os.sendfile(). (GH-16742)
Serhiy Storchaka [Sun, 13 Oct 2019 08:59:31 +0000 (11:59 +0300)]
bpo-38378: Rename parameters "out" and "in" of os.sendfile(). (GH-16742)

They conflicted with keyword "in".

Also rename positional-only parameters of private os._fcopyfile()
for consistency.

5 years agobpo-38456: Handle the case when there is no 'true' command (GH-16739)
Pablo Galindo [Sun, 13 Oct 2019 01:40:24 +0000 (02:40 +0100)]
bpo-38456: Handle the case when there is no 'true' command (GH-16739)

5 years agobpo-38282: Correctly manage the Bluetooth L2CAP socket structure in FreeBSD (GH-16738)
Pablo Galindo [Sun, 13 Oct 2019 01:03:54 +0000 (02:03 +0100)]
bpo-38282: Correctly manage the Bluetooth L2CAP socket structure in FreeBSD (GH-16738)

5 years agobpo-38456: Use /bin/true in test_subprocess (GH-16736)
Gregory P. Smith [Sat, 12 Oct 2019 23:35:53 +0000 (16:35 -0700)]
bpo-38456: Use /bin/true in test_subprocess (GH-16736)

* bpo-38456: Use /bin/true in test_subprocess.

Instead of sys.executable, "-c", "pass" or "import sys; sys.exit(0)"
use /bin/true when it is available.  On a reasonable machine this
shaves up to two seconds wall time off the otherwise ~40sec execution
on a --with-pydebug build.  It should be more notable on many
buildbots or overloaded slower I/O systems (CI, etc).

5 years agobpo-38417: Add umask support to subprocess (GH-16726)
Gregory P. Smith [Sat, 12 Oct 2019 20:24:56 +0000 (13:24 -0700)]
bpo-38417: Add umask support to subprocess (GH-16726)

On POSIX systems, allow the umask to be set in the child process before we exec.

5 years agobpo-37731: Reorder includes in xmltok.c to avoid redefinition of _POSIX_C_SOURCE...
Pablo Galindo [Sat, 12 Oct 2019 19:14:11 +0000 (20:14 +0100)]
bpo-37731: Reorder includes in xmltok.c to avoid redefinition of _POSIX_C_SOURCE (GH-16733)

5 years agoFix minor typos in Whatsnew
Hugo van Kemenade [Sat, 12 Oct 2019 17:53:36 +0000 (20:53 +0300)]
Fix minor typos in Whatsnew

5 years agoAnnounce the change in the CancelledError inheritance (GH-16730)
Phil Jones [Sat, 12 Oct 2019 17:46:13 +0000 (17:46 +0000)]
Announce the change in the CancelledError inheritance (GH-16730)

This is a fairly noticeable change that requires adjustments in
existing asyncio code. It should therefore be announced.

5 years agobpo-35800: Deprecate smtpd.MailmanProxy (GH-11675)
Samuel Colvin [Sat, 12 Oct 2019 17:24:26 +0000 (18:24 +0100)]
bpo-35800: Deprecate smtpd.MailmanProxy (GH-11675)

Since `smtpd.MailmanProxy` is already broken, it is not formally deprecated in 3.9. It will be removed in 3.10.

https://bugs.python.org/issue35800

5 years agobpo-38449: Revert "bpo-22347: Update mimetypes.guess_type to allow oper parsing of...
Abhilash Raj [Sat, 12 Oct 2019 05:41:35 +0000 (22:41 -0700)]
bpo-38449: Revert "bpo-22347: Update mimetypes.guess_type to allow oper parsing of URLs (GH-15522)" (GH-16724)

This reverts commit 87bd2071c756188b6cd577889fb1682831142ceb.

https://bugs.python.org/issue38449

5 years agobpo-38347: find pathfix for Python scripts whose name contain a '-' (GH-16536)
Ruediger Pluem [Fri, 11 Oct 2019 13:36:50 +0000 (15:36 +0200)]
bpo-38347: find pathfix for Python scripts whose name contain a '-' (GH-16536)

 pathfix.py: Assume all files that end on '.py' are Python scripts when working recursively.

5 years agobpo-38442: Remove an execution bit from Doc/whatsnew/3.8.rst. (GH-16715)
Serhiy Storchaka [Fri, 11 Oct 2019 08:44:42 +0000 (11:44 +0300)]
bpo-38442: Remove an execution bit from Doc/whatsnew/3.8.rst. (GH-16715)

5 years agoFix strict-aliasing rules errors on gcc 4.8.5. (GH-16714)
Dong-hee Na [Fri, 11 Oct 2019 08:43:11 +0000 (17:43 +0900)]
Fix strict-aliasing rules errors on gcc 4.8.5. (GH-16714)

5 years agoTypo fix: "throuhgh" should be "through". (GH-16704)
Hansraj Das [Fri, 11 Oct 2019 03:43:13 +0000 (09:13 +0530)]
Typo fix: "throuhgh" should be "through". (GH-16704)

5 years agodocs: Add asyncio source code links (GH-16640)
Kyle Stanley [Thu, 10 Oct 2019 23:18:46 +0000 (19:18 -0400)]
docs: Add asyncio source code links (GH-16640)

5 years agobpo-38437: Activate GC_DEBUG when PY_DEBUG is set (GH-16707)
Pablo Galindo [Thu, 10 Oct 2019 21:45:17 +0000 (22:45 +0100)]
bpo-38437: Activate GC_DEBUG when PY_DEBUG is set (GH-16707)

5 years agoRemove AppVeyor badge now that we don't use it in the CI anymore (GH-16708)
Pablo Galindo [Thu, 10 Oct 2019 21:39:15 +0000 (22:39 +0100)]
Remove AppVeyor badge now that we don't use it in the CI anymore (GH-16708)

5 years agobpo-38282: Rewrite getsockaddrarg() helper function (GH-16698)
Victor Stinner [Thu, 10 Oct 2019 19:30:20 +0000 (21:30 +0200)]
bpo-38282: Rewrite getsockaddrarg() helper function (GH-16698)

Rewrite getsockaddrarg() helper function of socketmodule.c (_socket
module) to prevent a false alarm when compiling codde using GCC with
_FORTIFY_SOURCE=2. Pass a pointer of the sock_addr_t union, rather
than passing a pointer to a sockaddr structure.

Add "struct sockaddr_tipc tipc;" to the sock_addr_t union.

5 years agoRe-enable the OverflowError test for test_truediv on test_complex (GH-16591)
Dong-hee Na [Thu, 10 Oct 2019 16:23:36 +0000 (01:23 +0900)]
Re-enable the OverflowError test for test_truediv on test_complex (GH-16591)

5 years agobpo-38353: Fix typos in calculate_argv0_path_framework() (GH-16695)
Victor Stinner [Thu, 10 Oct 2019 13:42:30 +0000 (15:42 +0200)]
bpo-38353: Fix typos in calculate_argv0_path_framework() (GH-16695)

bpo-38353, bpo-38429: Fix typos introduced by commit
c02b41b1fb115c87693530ea6a480b2e15460424 in
calculate_argv0_path_framework() of getpath.c.

5 years agobpo-32996: Documentation fix-up. (GH-16646)
M. Eric Irrgang [Thu, 10 Oct 2019 11:11:33 +0000 (14:11 +0300)]
bpo-32996: Documentation fix-up. (GH-16646)

PR #4906 changed the typing.Generic class hierarchy, leaving an
outdated comment in the library reference. User-defined Generic ABCs now
must get a abc.ABCMeta metaclass from something other than typing.Generic
inheritance.

5 years agobpo-38425: Fix ‘res’ may be used uninitialized warning (GH-16688)
Dong-hee Na [Thu, 10 Oct 2019 07:41:26 +0000 (16:41 +0900)]
bpo-38425: Fix ‘res’ may be used uninitialized warning (GH-16688)

5 years agobpo-38109: Add missing constants to Lib/stat.py (GH-16665)
Ronan Lamy [Thu, 10 Oct 2019 07:34:46 +0000 (09:34 +0200)]
bpo-38109: Add missing constants to Lib/stat.py (GH-16665)

Add missing stat.S_IFDOOR, stat.S_IFPORT, stat.S_IFWHT,
stat.S_ISDOOR, stat.S_ISPORT, and stat.S_ISWHT values to
the Python implementation of the stat module.

5 years agobpo-38392: Only declare visit_validate() if Py_DEBUG is defined (GH-16689)
Victor Stinner [Thu, 10 Oct 2019 07:32:13 +0000 (09:32 +0200)]
bpo-38392: Only declare visit_validate() if Py_DEBUG is defined (GH-16689)

bpo-38392, bpo-38426: Fix a compiler warning in gcmodule.c.

Fix also a typo in PYMEM_DEADBYTE macro comment.

5 years agobpo-38409: Fix grammar in str.strip() docstring (GH-16682)
Zachary Ware [Wed, 9 Oct 2019 21:09:00 +0000 (16:09 -0500)]
bpo-38409: Fix grammar in str.strip() docstring (GH-16682)