]> granicus.if.org Git - python/log
python
5 years agoDoc fix: duplicate object description of email.message (GH-13742)
Julien Palard [Mon, 3 Jun 2019 15:17:03 +0000 (17:17 +0200)]
Doc fix: duplicate object description of email.message (GH-13742)

5 years agoAdd credits to What's New in Python 3.8 (GH-13776)
Victor Stinner [Mon, 3 Jun 2019 14:28:01 +0000 (16:28 +0200)]
Add credits to What's New in Python 3.8 (GH-13776)

* Credit myself and others.
* Complete asyncio changes.

5 years agobpo-26219: remove unused code (GH-13775)
Inada Naoki [Mon, 3 Jun 2019 13:34:15 +0000 (22:34 +0900)]
bpo-26219: remove unused code (GH-13775)

This code was for deoptimization, which is removed from
PR-12884.

5 years agobpo-26219: per opcode cache for LOAD_GLOBAL (GH-12884)
Inada Naoki [Mon, 3 Jun 2019 12:30:58 +0000 (21:30 +0900)]
bpo-26219: per opcode cache for LOAD_GLOBAL (GH-12884)

This patch implements per opcode cache mechanism, and use it in
only LOAD_GLOBAL opcode.

Based on Yury's opcache3.patch in bpo-26219.

5 years agoPin macOS installer Sphinx to v2.0.1 (GH-13774)
Ned Deily [Mon, 3 Jun 2019 12:00:25 +0000 (08:00 -0400)]
Pin macOS installer Sphinx to v2.0.1 (GH-13774)

5 years agobpo-36231: Support building on macOS without /usr/include (GH-13773)
Ned Deily [Mon, 3 Jun 2019 10:34:48 +0000 (06:34 -0400)]
bpo-36231:  Support building on macOS without /usr/include (GH-13773)

5 years agobpo-35814: Allow unpacking in r.h.s of annotated assignment expressions (GH-13760)
Pablo Galindo [Mon, 3 Jun 2019 07:34:20 +0000 (08:34 +0100)]
bpo-35814: Allow unpacking in r.h.s of annotated assignment expressions (GH-13760)

5 years agoIDLE: Fix typos in docs and comments (GH-13749)
Xtreak [Mon, 3 Jun 2019 04:21:15 +0000 (09:51 +0530)]
IDLE: Fix typos in docs and comments (GH-13749)

5 years agobpo-36546: Add design notes to aid future discussions (GH-13769)
Raymond Hettinger [Mon, 3 Jun 2019 04:07:43 +0000 (21:07 -0700)]
bpo-36546: Add design notes to aid future discussions (GH-13769)

5 years agoFix variable name copy/paste error in build-installer.py (GH-13038)
cclauss [Mon, 3 Jun 2019 03:19:44 +0000 (05:19 +0200)]
Fix variable name copy/paste error in build-installer.py (GH-13038)

5 years agobpo-33569 Preserve type information with dataclasses.InitVar (GH-8927)
Augusto Hack [Mon, 3 Jun 2019 02:14:48 +0000 (23:14 -0300)]
bpo-33569 Preserve type information with dataclasses.InitVar (GH-8927)

5 years agobpo-37069: tests use catch_unraisable_exception() (GH-13762)
Victor Stinner [Mon, 3 Jun 2019 01:51:43 +0000 (03:51 +0200)]
bpo-37069: tests use catch_unraisable_exception() (GH-13762)

Modify test_coroutines, test_cprofile, test_generators, test_raise,
test_ssl and test_yield_from to use
support.catch_unraisable_exception() rather than
support.captured_stderr().

test_thread: remove test_save_exception_state_on_error() which is now
updated. test_unraisable_exception() checks that sys.unraisablehook()
is called to handle _thread.start_new_thread() exception.

test_cprofile now rely on unittest for test discovery: replace
support.run_unittest() with unittest.main().

5 years agobpo-36896: Clarify that some types constructors are unstable (GH-13271)
Matthias Bussonnier [Mon, 3 Jun 2019 00:43:22 +0000 (17:43 -0700)]
bpo-36896: Clarify that some types constructors are unstable (GH-13271)

5 years agobpo-36027: Really fix "incompatible pointer type" compiler warning (GH-13761)
Petr Viktorin [Mon, 3 Jun 2019 00:28:29 +0000 (02:28 +0200)]
bpo-36027: Really fix "incompatible pointer type" compiler warning (GH-13761)

Apologies for the earlier hasty attempt.

5 years agobpo-36974: add some assertions for PEP 590 (GH-13682)
Jeroen Demeyer [Sun, 2 Jun 2019 23:57:22 +0000 (01:57 +0200)]
bpo-36974: add some assertions for PEP 590 (GH-13682)

5 years agobpo-36974: document PEP 590 (GH-13450)
Jeroen Demeyer [Sun, 2 Jun 2019 23:43:13 +0000 (01:43 +0200)]
bpo-36974: document PEP 590 (GH-13450)

5 years agoUpdate the annotated assignment docs (GH-13757)
Ivan Levkivskyi [Sun, 2 Jun 2019 23:41:00 +0000 (00:41 +0100)]
Update the annotated assignment docs (GH-13757)

5 years agobpo-37100: Fix test_coroutines with -Werror (GH-13756)
Victor Stinner [Sun, 2 Jun 2019 23:35:37 +0000 (01:35 +0200)]
bpo-37100: Fix test_coroutines with -Werror (GH-13756)

test_coroutines: test_unawaited_warning_when_module_broken() now uses
support.check_warnings() to catch expected RuntimeWarning.

5 years agobpo-37012: Clean up special cases in PyType_FromSpecWithBases slot assignments (GH...
Petr Viktorin [Sun, 2 Jun 2019 23:31:12 +0000 (01:31 +0200)]
bpo-37012: Clean up special cases in PyType_FromSpecWithBases slot assignments (GH-13496)

The main slot assignment loop is now if-else if ladder, making the
control flow clearer.

Based on suggestion by Victor Stinner in:
https://github.com/python/cpython/pull/10304/#issuecomment-491123026

5 years agoFix typos in docs and docstrings (GH-13745)
Xtreak [Sun, 2 Jun 2019 23:12:33 +0000 (04:42 +0530)]
Fix typos in docs and docstrings (GH-13745)

5 years agobpo-36027 bpo-36974: Fix "incompatible pointer type" compiler warnings (GH-13758)
Petr Viktorin [Sun, 2 Jun 2019 23:08:14 +0000 (01:08 +0200)]
bpo-36027 bpo-36974: Fix "incompatible pointer type" compiler warnings (GH-13758)

5 years agobpo-35621: Fix tests when SafeChildWatcher is expected instead of ThreadedChildWatche...
Andrew Svetlov [Sun, 2 Jun 2019 22:45:54 +0000 (01:45 +0300)]
bpo-35621: Fix tests when SafeChildWatcher is expected instead of ThreadedChildWatcher (GH-13754)

https://bugs.python.org/issue35621

5 years agobpo-36974: Make tp_call=PyVectorcall_Call work for inherited types (GH-13699)
Petr Viktorin [Sun, 2 Jun 2019 21:52:20 +0000 (23:52 +0200)]
bpo-36974: Make tp_call=PyVectorcall_Call work for inherited types (GH-13699)

When inheriting a heap subclass from a vectorcall class that sets
`.tp_call=PyVectorcall_Call` (as recommended in PEP 590), the subclass does
not inherit `_Py_TPFLAGS_HAVE_VECTORCALL`, and thus `PyVectorcall_Call` does
not work for it.

This attempts to solve the issue by:
* always inheriting `tp_vectorcall_offset` unless `tp_call` is overridden
  in the subclass
* inheriting _Py_TPFLAGS_HAVE_VECTORCALL for static types, unless `tp_call`
  is overridden
* making `PyVectorcall_Call` ignore `_Py_TPFLAGS_HAVE_VECTORCALL`

This means it'll be ever more important to only call `PyVectorcall_Call`
on classes that support vectorcall. In `PyVectorcall_Call`'s intended role
as `tp_call` filler, that's not a problem.

5 years agobpo-19184: Update the documentation of dis module. (GH-13652)
Michele Angrisano [Sun, 2 Jun 2019 21:34:12 +0000 (23:34 +0200)]
bpo-19184: Update the documentation of dis module. (GH-13652)

* bpo-19184: Update the documentation of dis module

* Explain the behavior of the number of arguments of RAISE_VARGARGS
  opcode.

* bpo-19184: Update blurb.

* bpo-19184: Fix typo in the dis Documentation.

* bpo-19184: Address review comments and improve the doc

* bpo-19184: Remove news file.

5 years agotest_gdb.test_pycfunction: test more calling conventions (GH-13668)
Petr Viktorin [Sun, 2 Jun 2019 21:11:24 +0000 (23:11 +0200)]
test_gdb.test_pycfunction: test more calling conventions (GH-13668)

As the code paths for various METH_* conventions are diverging due
to optimizations, we should check they continue to be covered by
GDB integration.

5 years agobpo-36829: test_threading: Fix a ref cycle (GH-13752)
Victor Stinner [Sun, 2 Jun 2019 21:08:41 +0000 (23:08 +0200)]
bpo-36829: test_threading: Fix a ref cycle (GH-13752)

5 years agobpo-37014: Update docstring and Documentation of fileinput.FileInput(). (GH-13545)
Michele Angrisano [Sun, 2 Jun 2019 21:01:49 +0000 (23:01 +0200)]
bpo-37014: Update docstring and Documentation of fileinput.FileInput(). (GH-13545)

* bpo-37014: Update docstring and Documentation of fileinput.FileInput()

* Explain the behavior of fileinput.FileInput() when reading stdin.

* Update blurb.

* bpo-37014: Fix typo in the docstring and documentation.

5 years agoCall PyObject_GC_UnTrack in structseq dealloc (GH-13751)
Pablo Galindo [Sun, 2 Jun 2019 20:52:49 +0000 (21:52 +0100)]
Call PyObject_GC_UnTrack in structseq dealloc (GH-13751)

5 years agobpo-37124: Fix reference leak in test_msilib (GH-13750)
Pablo Galindo [Sun, 2 Jun 2019 20:36:21 +0000 (21:36 +0100)]
bpo-37124: Fix reference leak in test_msilib (GH-13750)

5 years agobpo-35610: IDLE - Replace .context_use_ps1 with .prompt_last_line (GH-11307)
Cheryl Sabella [Sun, 2 Jun 2019 18:56:47 +0000 (14:56 -0400)]
bpo-35610: IDLE - Replace .context_use_ps1 with .prompt_last_line (GH-11307)

Changes in bpo- 31858 made the less informative 'context_use_ps1' redundant.

5 years agoAdd description to the command line help of the argument clinic (GH-8518)
Tim Hoffmann [Sun, 2 Jun 2019 16:58:10 +0000 (18:58 +0200)]
Add description to the command line help of the argument clinic (GH-8518)

5 years agobpo-37126: Allow structseq objects to be tracked by the GC (GH-13729)
Pablo Galindo [Sun, 2 Jun 2019 14:45:13 +0000 (15:45 +0100)]
bpo-37126: Allow structseq objects to be tracked by the GC (GH-13729)

5 years agobpo-35621: Support running subprocesses in asyncio when loop is executed in non-main...
Andrew Svetlov [Sun, 2 Jun 2019 10:56:38 +0000 (13:56 +0300)]
bpo-35621: Support running subprocesses in asyncio when loop is executed in non-main thread (#13630)

5 years agobpo-36027: Extend three-argument pow to negative second argument (GH-13266)
Mark Dickinson [Sun, 2 Jun 2019 09:24:06 +0000 (10:24 +0100)]
bpo-36027: Extend three-argument pow to negative second argument (GH-13266)

5 years agobpo-37128: Add math.perm(). (GH-13731)
Serhiy Storchaka [Sun, 2 Jun 2019 08:16:49 +0000 (11:16 +0300)]
bpo-37128: Add math.perm(). (GH-13731)

5 years agoAdd more tests for preserving identity in marshal. (GH-13736)
Serhiy Storchaka [Sun, 2 Jun 2019 06:03:59 +0000 (09:03 +0300)]
Add more tests for preserving identity in marshal. (GH-13736)

5 years agoImprove version added references in `typing` module docs (GH-13457)
Anthony Sottile [Sun, 2 Jun 2019 00:13:26 +0000 (17:13 -0700)]
Improve version added references in `typing` module docs (GH-13457)

5 years agoPut math.comb() docs is correct place alphabetically (GH-13734)
Raymond Hettinger [Sat, 1 Jun 2019 22:01:46 +0000 (15:01 -0700)]
Put math.comb() docs is correct place alphabetically (GH-13734)

5 years agobpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (gh-13714)
Eric Snow [Sat, 1 Jun 2019 21:39:46 +0000 (15:39 -0600)]
bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (gh-13714)

5 years agobpo-29414: Change 'the for statement is such an iterator' in Tutorial (GH-273)
Marco Buttu [Sat, 1 Jun 2019 21:11:48 +0000 (23:11 +0200)]
bpo-29414: Change 'the for statement is such an iterator' in Tutorial (GH-273)

5 years agoFix the error handling in bytesio_sizeof(). (GH-10459)
Zackery Spytz [Sat, 1 Jun 2019 21:07:46 +0000 (15:07 -0600)]
Fix the error handling in bytesio_sizeof(). (GH-10459)

bytesio_sizeof() must check if an error has occurred in _PySys_GetSizeOf().

5 years agobpo-20092. Use __index__ in constructors of int, float and complex. (GH-13108)
Serhiy Storchaka [Sat, 1 Jun 2019 21:05:48 +0000 (00:05 +0300)]
bpo-20092. Use __index__ in constructors of int, float and complex. (GH-13108)

5 years agobpo-32411: IDLE: Remove line number sort in browser.py (#5011)
Cheryl Sabella [Sat, 1 Jun 2019 21:03:22 +0000 (17:03 -0400)]
bpo-32411: IDLE: Remove line number sort in browser.py (#5011)

Insertion in line order makes sorting keys by line order unneeded.

5 years agobpo-34303: Micro-optimizations in functools.reduce() (GH-8598)
Sergey Fedoseev [Sat, 1 Jun 2019 20:32:18 +0000 (01:32 +0500)]
bpo-34303: Micro-optimizations in functools.reduce() (GH-8598)

5 years agobpo-36842: Pass positional only parameters to code_new audit hook (GH-13707)
Pablo Galindo [Sat, 1 Jun 2019 20:18:48 +0000 (21:18 +0100)]
bpo-36842: Pass positional only parameters to code_new audit hook (GH-13707)

5 years agoFix compiler warnings in the pystrehex module (GH-13730)
Pablo Galindo [Sat, 1 Jun 2019 20:02:08 +0000 (21:02 +0100)]
Fix compiler warnings in the pystrehex module (GH-13730)

5 years agoClean up and reduce visual clutter in the makeunicode.py script. (GH-7558)
Stefan Behnel [Sat, 1 Jun 2019 19:49:03 +0000 (21:49 +0200)]
Clean up and reduce visual clutter in the makeunicode.py script. (GH-7558)

5 years agobpo-28595: Allow shlex whitespace_split with punctuation_chars (GH-2071)
Evan [Sat, 1 Jun 2019 19:09:22 +0000 (05:09 +1000)]
bpo-28595: Allow shlex whitespace_split with punctuation_chars (GH-2071)

5 years agobpo-35431: Refactor math.comb() implementation. (GH-13725)
Serhiy Storchaka [Sat, 1 Jun 2019 19:09:02 +0000 (22:09 +0300)]
bpo-35431: Refactor math.comb() implementation. (GH-13725)

* Fixed some bugs.
* Added support for index-likes objects.
* Improved error messages.
* Cleaned up and optimized the code.
* Added more tests.

5 years agoImprove exception message for str.format (GH-12675)
Francisco Couzo [Sat, 1 Jun 2019 17:14:00 +0000 (14:14 -0300)]
Improve exception message for str.format (GH-12675)

5 years agobpo-37122: Make co->co_argcount represent the total number of positonal arguments...
Pablo Galindo [Sat, 1 Jun 2019 17:08:04 +0000 (18:08 +0100)]
bpo-37122: Make co->co_argcount represent the total number of positonal arguments in the code object (GH-13726)

5 years agobpo-31968: Documentation -- add clarification on the globals dict for exec() (GH...
Anthony Shaw [Sat, 1 Jun 2019 15:51:58 +0000 (01:51 +1000)]
bpo-31968: Documentation -- add clarification on the globals dict for exec() (GH-13140)

5 years agoDoc: Correct the creation year and the credits of the Logo Programming language ...
Stéphane Wirtel [Sat, 1 Jun 2019 11:41:33 +0000 (13:41 +0200)]
Doc: Correct the creation year and the credits of the Logo Programming language (GH-13520)

5 years agoMove whats-new entry for math.factorial to the math module section. (GH-13723)
Mark Dickinson [Sat, 1 Jun 2019 11:21:53 +0000 (12:21 +0100)]
Move whats-new entry for math.factorial to the math module section. (GH-13723)

5 years agobpo-36813: Fix QueueListener to call task_done() upon termination. (GH-13113)
Bar Harel [Sat, 1 Jun 2019 09:19:09 +0000 (12:19 +0300)]
bpo-36813: Fix QueueListener to call task_done() upon termination. (GH-13113)

Fixed QueueListener in order to avoid random deadlocks.
Unable to add regression tests atm due to time constraints, will add it in a bit.
Regarding implementation, although it's nested, it does not cause performance issues whatsoever, and does not call task_done() in case of an exception (which is the right thing to do IMHO).

https://bugs.python.org/issue36813

5 years agoUse more PEP 570 syntax in the documentation. (GH-13720)
Serhiy Storchaka [Sat, 1 Jun 2019 08:38:24 +0000 (11:38 +0300)]
Use more PEP 570 syntax in the documentation. (GH-13720)

5 years agobpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)
Serhiy Storchaka [Sat, 1 Jun 2019 08:00:15 +0000 (11:00 +0300)]
bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)

5 years agobpo-35431: Implemented math.comb (GH-11414)
Yash Aggarwal [Sat, 1 Jun 2019 07:21:27 +0000 (12:51 +0530)]
bpo-35431: Implemented math.comb (GH-11414)

5 years agobpo-18911: clarify that the minidom XML writer receives texts but not bytes (GH-13352)
Windson yang [Sat, 1 Jun 2019 06:33:16 +0000 (14:33 +0800)]
bpo-18911: clarify that the minidom XML writer receives texts but not bytes (GH-13352)

5 years agoAdd option to trace to run modules (GH-5134)
Mario Corchero [Sat, 1 Jun 2019 04:49:10 +0000 (05:49 +0100)]
Add option to trace to run modules (GH-5134)

Adds a new option in trace that allows tracing runnable modules. It is
exposed as `--module module_name` as `-m` is already in use for another
argument.

5 years agobpo-29984: Improve 'heapq' test coverage (GH-992)
Rob Day [Sat, 1 Jun 2019 04:13:57 +0000 (05:13 +0100)]
bpo-29984: Improve 'heapq' test coverage (GH-992)

5 years agoImprove docstring of list.sort (GH-8516)
Tim Hoffmann [Sat, 1 Jun 2019 04:10:02 +0000 (06:10 +0200)]
Improve docstring of list.sort (GH-8516)

5 years agobpo-36818: Add PyInterpreterState.runtime field. (gh-13129)
Eric Snow [Sat, 1 Jun 2019 03:16:47 +0000 (21:16 -0600)]
bpo-36818: Add PyInterpreterState.runtime field. (gh-13129)

https://bugs.python.org/issue36818

5 years agobpo-37029: keep usable_arenas in sorted order without searching (#13612)
Tim Peters [Sat, 1 Jun 2019 02:16:04 +0000 (21:16 -0500)]
bpo-37029:  keep usable_arenas in sorted order without searching (#13612)

This adds a vector of "search fingers" so that usable_arenas can be kept in sorted order (by number of free pools) via constant-time operations instead of linear search.

This should reduce worst-case time for reclaiming a great many objects from O(A**2) to O(A), where A is the number of arenas.  See bpo-37029.

5 years agobpo-12202: Properly check MsiSummaryInfoGetProperty() calls in msilib (GH-13711)
Zackery Spytz [Sat, 1 Jun 2019 00:16:20 +0000 (18:16 -0600)]
bpo-12202: Properly check MsiSummaryInfoGetProperty() calls in msilib (GH-13711)

5 years agobpo-37105: Add deprecated-remove information on stream doc (#13672)
Emmanuel Arias [Fri, 31 May 2019 20:48:57 +0000 (17:48 -0300)]
bpo-37105: Add deprecated-remove information on stream doc (#13672)

* Add deprecated-remove information on stream doc

According to the code on streams.py the functions:
``open_connection()``, ``start_server()``, ``open_unix_connection()``,
``start_unix_server()`` are deprecated. I infor that on
documentation.

5 years agobpo-15115: Document deprecation of email.encoders in Python 3 (GH-5354)
Cheryl Sabella [Fri, 31 May 2019 20:18:41 +0000 (16:18 -0400)]
bpo-15115: Document deprecation of email.encoders in Python 3 (GH-5354)

5 years agobpo-33361: Fix bug with seeking in StreamRecoders (GH-8278)
Ammar Askar [Fri, 31 May 2019 19:44:01 +0000 (12:44 -0700)]
bpo-33361: Fix bug with seeking in StreamRecoders (GH-8278)

5 years agobpo-26826: Expose copy_file_range in the os module (GH-7255)
Pablo Galindo [Fri, 31 May 2019 18:39:47 +0000 (19:39 +0100)]
bpo-26826: Expose copy_file_range in the os module (GH-7255)

5 years agoDocument changes for PyCode_New regarding PEP570 (GH-13706)
Pablo Galindo [Fri, 31 May 2019 18:33:41 +0000 (19:33 +0100)]
Document changes for PyCode_New regarding PEP570 (GH-13706)

5 years agobpo-12639: msilib.Directory.start_component() fails if *keyfile* is not None (GH...
Zackery Spytz [Fri, 31 May 2019 16:43:13 +0000 (10:43 -0600)]
bpo-12639: msilib.Directory.start_component() fails if *keyfile* is not None (GH-13688)

msilib.Directory.start_component() was passing an extra argument to CAB.gen_id().

5 years agobpo-25735: math.factorial doc should mention integer return type (GH-6420)
Akshay Sharma [Fri, 31 May 2019 16:41:17 +0000 (22:11 +0530)]
bpo-25735: math.factorial doc should mention integer return type (GH-6420)

5 years agobpo-26835: Add file sealing constants to fcntl (GH-13694)
Christian Heimes [Fri, 31 May 2019 16:32:33 +0000 (18:32 +0200)]
bpo-26835: Add file sealing constants to fcntl (GH-13694)

Co-authored-by: nanjekyejoannah <nanjekyejoannah@gmail.com>
5 years agobpo-37094: Add example for TestCase.skipTest in unittest doc (GH-13645)
Makdon [Fri, 31 May 2019 16:19:12 +0000 (00:19 +0800)]
bpo-37094: Add example for TestCase.skipTest in unittest doc (GH-13645)

Also includes other minor test skipping doc improvements.

https://bugs.python.org/issue37094

5 years agobpo-37115: Support annotations in positional-only arguments (GH-13698)
Pablo Galindo [Fri, 31 May 2019 14:19:50 +0000 (15:19 +0100)]
bpo-37115: Support annotations in positional-only arguments (GH-13698)

5 years agobpo-37112: Allow compile to work on AST with positional only arguments with defaults...
Pablo Galindo [Fri, 31 May 2019 13:09:49 +0000 (14:09 +0100)]
bpo-37112: Allow compile to work on AST with positional only arguments with defaults (GH-13697)

5 years agoUpdate data model docs to include missing attributes for code objects (GH-13696)
Pablo Galindo [Fri, 31 May 2019 11:13:04 +0000 (12:13 +0100)]
Update data model docs to include missing attributes for code objects (GH-13696)

Include and document co_posonlyargcount and co_kwonlyargcount

5 years agobpo-37108: Support super with methods that use positional-only arguments (GH-13695)
Pablo Galindo [Fri, 31 May 2019 11:07:56 +0000 (12:07 +0100)]
bpo-37108: Support super with methods that use positional-only arguments (GH-13695)

5 years agobpo-36379: __ipow__ must be a ternaryfunc, not a binaryfunc (GH-13546)
Zackery Spytz [Fri, 31 May 2019 09:46:36 +0000 (03:46 -0600)]
bpo-36379: __ipow__ must be a ternaryfunc, not a binaryfunc (GH-13546)

If a type's __ipow__ method was implemented in C, attempting to use
the *modulo* parameter would cause crashes.

https://bugs.python.org/issue36379

5 years agobpo-34271: Add ssl debugging helpers (GH-10031)
Christian Heimes [Fri, 31 May 2019 09:44:05 +0000 (11:44 +0200)]
bpo-34271: Add ssl debugging helpers (GH-10031)

The ssl module now can dump key material to a keylog file and trace TLS
protocol messages with a tracing callback. The default and stdlib
contexts also support SSLKEYLOGFILE env var.

The msg_callback and related enums are private members. The feature
is designed for internal debugging and not for end users.

Signed-off-by: Christian Heimes <christian@python.org>
5 years agobpo-26660, bpo-35144: Fix permission errors in TemporaryDirectory cleanup. (GH-10320)
Serhiy Storchaka [Fri, 31 May 2019 08:30:37 +0000 (11:30 +0300)]
bpo-26660, bpo-35144: Fix permission errors in TemporaryDirectory cleanup. (GH-10320)

TemporaryDirectory.cleanup() failed when non-writeable or non-searchable
files or directories were created inside a temporary directory.

5 years agobpo-31829: Make protocol 0 pickles be loadable in text mode in Python 2. (GH-11859)
Serhiy Storchaka [Fri, 31 May 2019 08:29:39 +0000 (11:29 +0300)]
bpo-31829: Make protocol 0 pickles be loadable in text mode in Python 2. (GH-11859)

Escape ``\r``, ``\0`` and ``\x1a`` (end-of-file on Windows) in Unicode strings.

5 years agoIDLE - Capitalize search dialogs' 'Close' button label. (#13691)
Terry Jan Reedy [Fri, 31 May 2019 08:26:35 +0000 (04:26 -0400)]
IDLE - Capitalize search dialogs' 'Close' button label. (#13691)

It seems to be the only widget label not capitalized.

5 years agobpo-36548: Improve the repr of re flags. (GH-12715)
Serhiy Storchaka [Fri, 31 May 2019 07:39:47 +0000 (10:39 +0300)]
bpo-36548: Improve the repr of re flags. (GH-12715)

5 years agobpo-339827: Do not swallow exceptions in the _ssl module. (GH-12756)
Serhiy Storchaka [Fri, 31 May 2019 07:39:15 +0000 (10:39 +0300)]
bpo-339827: Do not swallow exceptions in the _ssl module. (GH-12756)

5 years agobpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async (GH-13464)
Jeroen Demeyer [Fri, 31 May 2019 02:13:39 +0000 (04:13 +0200)]
bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async (GH-13464)

Automatically replace
tp_print -> tp_vectorcall_offset
tp_compare -> tp_as_async
tp_reserved -> tp_as_async

5 years agobpo-29262: Add get_origin() and get_args() introspection helpers to typing (GH-13685)
Ivan Levkivskyi [Thu, 30 May 2019 23:10:07 +0000 (00:10 +0100)]
bpo-29262: Add get_origin() and get_args() introspection helpers to typing (GH-13685)

This is an old feature request that appears from time to time. After a year of experimenting with various introspection capabilities in `typing_inspect` on PyPI, I propose to add these two most commonly used functions: `get_origin()` and `get_args()`. These are essentially thin public wrappers around private APIs: `__origin__` and `__args__`.

As discussed in the issue and on the typing tracker, exposing some public helpers instead of `__origin__` and `__args__` directly will give us more flexibility if we will decide to update the internal representation, while still maintaining backwards compatibility.

The implementation is very simple an is essentially a copy from `typing_inspect` with one exception: `ClassVar` was special-cased in `typing_inspect`, but I think this special-casing doesn't really help and only makes things more complicated.

5 years agobpo-5028: Fix up rest of documentation for tokenize documenting line (GH-13686)
Anthony Sottile [Thu, 30 May 2019 22:06:32 +0000 (15:06 -0700)]
bpo-5028: Fix up rest of documentation for tokenize documenting line (GH-13686)

https://bugs.python.org/issue5028

5 years agobpo-36953: Delay removal of ABCs from collections. (GH-13409)
Matthias Bussonnier [Thu, 30 May 2019 21:45:48 +0000 (14:45 -0700)]
bpo-36953: Delay removal of ABCs from collections. (GH-13409)

Bump the removal to 3.9, indicate collections.abc available since 3.3,
replace version-changed directive to deprecated-removed.

https://bugs.python.org/issue36953

5 years agobpo-36342: Fix test_multiprocessing in test_venv (GH-12513)
xdegaye [Thu, 30 May 2019 21:42:29 +0000 (23:42 +0200)]
bpo-36342: Fix test_multiprocessing in test_venv (GH-12513)

when platform lacks a functioning sem_open implementation

https://bugs.python.org/issue36342

5 years agobpo-30969: Fix docs about the comparison in absence of __contains__ (GH-2761)
Antti Haapala [Thu, 30 May 2019 20:19:29 +0000 (23:19 +0300)]
bpo-30969: Fix docs about the comparison in absence of __contains__ (GH-2761)

5 years agobpo-5028: fix doc bug for tokenize (GH-11683)
Andrew Carr [Thu, 30 May 2019 19:31:51 +0000 (13:31 -0600)]
bpo-5028: fix doc bug for tokenize (GH-11683)

https://bugs.python.org/issue5028

5 years agoFix audit event typo : urllib.request -> urllib.Request (GH-13550)
Xtreak [Thu, 30 May 2019 17:58:28 +0000 (23:28 +0530)]
Fix audit event typo : urllib.request -> urllib.Request (GH-13550)

As per the PEP and the [audit event raised](https://github.com/python/cpython/blob/13d4e6a4a090031f8214e058ed3c8fd47767e05f/Lib/urllib/request.py#L524) in urllib.request this should be `urllib.Request`

cc: @zooba

5 years agobpo-36999: Add asyncio.Task.get_coro() (GH-13680)
Alex Grönholm [Thu, 30 May 2019 15:30:09 +0000 (18:30 +0300)]
bpo-36999: Add asyncio.Task.get_coro() (GH-13680)

https://bugs.python.org/issue36999

5 years agoRevert adding @maxking to CODEOWNERS file (GH-13660)
Brett Cannon [Thu, 30 May 2019 14:59:01 +0000 (07:59 -0700)]
Revert adding @maxking to CODEOWNERS file (GH-13660)

This reverts commit 71dc7c5fbd856df83202f39c1f41ccd07c6eceb7. Turns out you must have write access for CODEOWNERS to work.

5 years agobpo-36974: rename _FastCallKeywords -> _Vectorcall (GH-13653)
Jeroen Demeyer [Thu, 30 May 2019 13:11:22 +0000 (15:11 +0200)]
bpo-36974: rename _FastCallKeywords -> _Vectorcall (GH-13653)

5 years agobpo-37099: Silence DeprecationWarning in test_inspect (GH-13679)
Xtreak [Thu, 30 May 2019 12:01:39 +0000 (17:31 +0530)]
bpo-37099: Silence DeprecationWarning in test_inspect (GH-13679)

Fix DeprecationWarning introduced in aee19f54f6fe45f6b3c906987941e5a8af4468e9

https://bugs.python.org/issue37099

5 years agobpo-20602: Do not clear sys.flags and sys.float_info during shutdown (GH-8096)
Zackery Spytz [Thu, 30 May 2019 11:08:24 +0000 (05:08 -0600)]
bpo-20602: Do not clear sys.flags and sys.float_info during shutdown (GH-8096)

There is no need to clear these immutable objects during shutdown.

5 years agobpo-36974: remove _PyObject_HasFastCall (GH-13460)
Jeroen Demeyer [Thu, 30 May 2019 10:43:59 +0000 (12:43 +0200)]
bpo-36974: remove _PyObject_HasFastCall (GH-13460)

5 years agobpo-36974: inherit the vectorcall protocol (GH-13498)
Jeroen Demeyer [Thu, 30 May 2019 10:43:19 +0000 (12:43 +0200)]
bpo-36974: inherit the vectorcall protocol (GH-13498)