]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
5 years agocloses bpo-41533: Fix a potential memory leak when allocating a stack (GH-21847)
Tony Solomonik [Sun, 30 Aug 2020 04:53:08 +0000 (07:53 +0300)] 
closes bpo-41533: Fix a potential memory leak when allocating a stack (GH-21847)

Free the stack allocated in va_build_stack if do_mkstack fails
and the stack is not a small_stack

5 years agoImprove asyncio-dev 'Concurrency and Multithreading' docs (GH-20882)
Roger Iyengar [Sat, 29 Aug 2020 23:47:38 +0000 (19:47 -0400)] 
Improve asyncio-dev 'Concurrency and Multithreading' docs (GH-20882)

I added some information to the `Concurrency and Multithreading` section of the `Developing with asyncio` guide.

This is all information that would have helped me when I started using asyncio. I incorrectly assumed that `loop.call_soon_threadsafe()` and `run_coroutine_threadsafe()` could be called from a thread in a process separate from the one that the event loop is running in. Explicitly stating that this will not work will probably help some people starting out with asyncio in the future.

I also added references to some other functions that can be used for inter-process communication without blocking the event loop. The section already mentions running blocking code in a ThreadPoolExecutor, but I think listing these other options in this section will also be helpful.

5 years agobpo-41513: Save unnecessary steps in the hypot() calculation (#21994)
Raymond Hettinger [Sat, 29 Aug 2020 16:11:04 +0000 (09:11 -0700)] 
bpo-41513: Save unnecessary steps in the hypot() calculation (#21994)

5 years agobpo-19521: Fix parallel build race condition on AIX (GH-21997)
Stefan Krah [Sat, 29 Aug 2020 15:00:08 +0000 (17:00 +0200)] 
bpo-19521: Fix parallel build race condition on AIX (GH-21997)

    Patch by Michael Haubenwallner.

5 years agoFix error in argparse documentation example (GH-17399)
SarahPythonista [Fri, 28 Aug 2020 18:47:58 +0000 (11:47 -0700)] 
Fix error in argparse documentation example (GH-17399)

Automerge-Triggered-By: @rhettinger
5 years agobpo-38787: Clarify docs for PyType_GetModule and warn against common mistake (GH...
Petr Viktorin [Thu, 27 Aug 2020 13:36:48 +0000 (15:36 +0200)] 
bpo-38787: Clarify docs for PyType_GetModule and warn against common mistake (GH-20215)

5 years agobpo-41634: Fix a typo in the curses documentation (GH-21958)
Zackery Spytz [Thu, 27 Aug 2020 11:28:16 +0000 (05:28 -0600)] 
bpo-41634: Fix a typo in the curses documentation (GH-21958)

5 years agobpo-41524: fix pointer bug in PyOS_mystr{n}icmp (GH-21845)
wmeehan [Thu, 27 Aug 2020 05:45:25 +0000 (01:45 -0400)] 
bpo-41524: fix pointer bug in PyOS_mystr{n}icmp (GH-21845)

* bpo-41524: fix pointer bug in PyOS_mystr{n}icmp

The existing implementations of PyOS_mystrnicmp and PyOS_mystricmp
can increment pointers beyond the end of a string.

This commit fixes those cases by moving the mutation out of the condition.

* 📜🤖 Added by blurb_it.

* Address comments

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
5 years agobpo-41609: Fix output of pdb's whatis command for instance methods (GH-21935)
Irit Katriel [Thu, 27 Aug 2020 00:51:12 +0000 (01:51 +0100)] 
bpo-41609: Fix output of pdb's whatis command for instance methods (GH-21935)

5 years agoAdd missing word (GH-21936)
Mason [Thu, 27 Aug 2020 00:49:14 +0000 (19:49 -0500)] 
Add missing word (GH-21936)

"data to lost" -> "data to be lost"

5 years agobpo-41624: fix documentation of typing.Coroutine (GH-21952)
MingZhe Hu [Thu, 27 Aug 2020 00:42:37 +0000 (08:42 +0800)] 
bpo-41624: fix documentation of typing.Coroutine (GH-21952)

5 years agobpo-33660: Fix PosixPath to resolve a relative path on root
Dong-hee Na [Tue, 12 Jun 2018 14:30:45 +0000 (23:30 +0900)] 
bpo-33660: Fix PosixPath to resolve a relative path on root

5 years agoFix typos in comment (GH-21966)
Raymond Hettinger [Wed, 26 Aug 2020 20:09:40 +0000 (13:09 -0700)] 
Fix typos in comment (GH-21966)

5 years agobpo-40077: Convert _operator to use PyType_FromSpec (GH-21954)
Dong-hee Na [Wed, 26 Aug 2020 17:22:27 +0000 (17:22 +0000)] 
bpo-40077: Convert _operator to use PyType_FromSpec (GH-21954)

5 years agobpo-37658: Fix asyncio.wait_for() to respect waited task status (#21894)
Elvis Pranskevichus [Wed, 26 Aug 2020 16:42:45 +0000 (09:42 -0700)] 
bpo-37658: Fix asyncio.wait_for() to respect waited task status (#21894)

Currently, if `asyncio.wait_for()` itself is cancelled it will always
raise `CancelledError` regardless if the underlying task is still
running.  This is similar to a race with the timeout, which is handled
already.

5 years agobpo-32751: Wait for task cancel in asyncio.wait_for() when timeout <= 0 (#21895)
Elvis Pranskevichus [Wed, 26 Aug 2020 16:42:22 +0000 (09:42 -0700)] 
bpo-32751: Wait for task cancel in asyncio.wait_for() when timeout <= 0 (#21895)

When I was fixing bpo-32751 back in GH-7216 I missed the case when
*timeout* is zero or negative.  This takes care of that.

Props to @aaliddell for noticing the inconsistency.

5 years agobpo-41513: More accurate hypot() (GH-21916)
Raymond Hettinger [Tue, 25 Aug 2020 00:40:08 +0000 (17:40 -0700)] 
bpo-41513:  More accurate hypot() (GH-21916)

5 years agoREADME: Add link to LICENSE (GH-21565)
Will Binns [Mon, 24 Aug 2020 15:00:12 +0000 (17:00 +0200)] 
README: Add link to LICENSE (GH-21565)

Thanks @wbnns for your contribution.

5 years agoDocument vars behavior when __dict__ is missing (#21466)
Andre Delfino [Fri, 21 Aug 2020 22:29:34 +0000 (19:29 -0300)] 
Document vars behavior when __dict__ is missing (#21466)

5 years agobpo-41573: Update release versions in General FAQ (GH-21915)
wyz23x2 [Fri, 21 Aug 2020 22:28:54 +0000 (06:28 +0800)] 
bpo-41573: Update release versions in General FAQ (GH-21915)

5 years agoUpdate references from travis-ci.org to travis-ci.com (GH-21919)
Ernest W. Durbin III [Fri, 21 Aug 2020 21:34:06 +0000 (17:34 -0400)] 
Update references from travis-ci.org to travis-ci.com (GH-21919)

5 years agoDoc: add a missing period (GH-21819)
Mathieu Dupuy [Thu, 20 Aug 2020 20:08:37 +0000 (22:08 +0200)] 
Doc: add a missing period (GH-21819)

5 years agobpo-41572: Fix grammar in BaseTransport.close docstring (GH-21914)
Cleber Rosa [Thu, 20 Aug 2020 12:40:01 +0000 (08:40 -0400)] 
bpo-41572: Fix grammar in BaseTransport.close docstring (GH-21914)

Fix grammar in BaseTransport.close docstring.

https://bugs.python.org/issue41572

Signed-off-by: Cleber Rosa <crosa@redhat.com>
5 years agobpo-40994: Ungroup items in collections.abc documentation for improved clarity (GH...
Sydney Pemberton [Thu, 20 Aug 2020 10:30:21 +0000 (05:30 -0500)] 
bpo-40994: Ungroup items in collections.abc documentation for improved clarity (GH-21880)

Use a less surprising document structure.

Automerge-Triggered-By: @csabella
5 years agoFix grammar in Doc/tutorial/controlflow.rst (GH-21885)
Denis Ovsienko [Wed, 19 Aug 2020 11:29:47 +0000 (12:29 +0100)] 
Fix grammar in Doc/tutorial/controlflow.rst (GH-21885)

Automerge-Triggered-By: @csabella
5 years agobpo-41568: Fix refleaks in zoneinfo subclasses (GH-21907)
Paul Ganssle [Mon, 17 Aug 2020 22:40:07 +0000 (18:40 -0400)] 
bpo-41568: Fix refleaks in zoneinfo subclasses (GH-21907)

* Fix refleak in C module __init_subclass__

This was leaking a reference to the weak cache dictionary for every
ZoneInfo subclass created.

* Fix refleak in ZoneInfo subclass's clear_cache

The previous version of the code accidentally cleared the global
ZONEINFO_STRONG_CACHE variable (and inducing `ZoneInfo` to create a new
strong cache) on calls to a subclass's `clear_cache()`. This would not
affect guaranteed behavior, but it's still not the right thing to do
(and it caused reference leaks).

5 years agobpo-1635741: Explict GC collect after PyInterpreterState_Clear() (GH-21902)
Hai Shi [Mon, 17 Aug 2020 20:36:19 +0000 (04:36 +0800)] 
bpo-1635741: Explict GC collect after PyInterpreterState_Clear() (GH-21902)

Fix a reference cycle by triggering an explicit GC collection
after calling PyInterpreterState_Clear().

5 years agobpo-40782: Change asyncio.AbstractEventLoop.run_in_executor to be a method not a...
James Weaver [Mon, 17 Aug 2020 14:19:46 +0000 (15:19 +0100)] 
bpo-40782: Change asyncio.AbstractEventLoop.run_in_executor to be a method not a coroutine (GH-21852)

asyncio.AbstractEventLoop.run_in_executor should be a method that returns an asyncio Future, not an async method.
This matches the concrete implementations, and the documentation better.

5 years agoFix typo in message from assert statement (GH-21283)
Allen [Mon, 17 Aug 2020 13:38:55 +0000 (09:38 -0400)] 
Fix typo in message from assert statement (GH-21283)

The error message was missing space between the action "acquire" and "_wait_semaphore" which is an attribute for instances of Condition.

5 years agobpo-40204: Fix duplicated productionlist names in the doc (GH-21900)
Victor Stinner [Mon, 17 Aug 2020 06:41:42 +0000 (08:41 +0200)] 
bpo-40204: Fix duplicated productionlist names in the doc (GH-21900)

Sphinx 3 disallows having more than one productionlist markup with
the same name. Simply remove names in this case, since names are not
shown anyway. For example, fix the Sphinx 3 warning:

Doc/reference/introduction.rst:96: duplicate token description
of *:name, other instance in reference/expressions

5 years agobpo-41521: Rename blacklist parameter to not_exported (GH-21824)
Victor Stinner [Mon, 17 Aug 2020 05:20:40 +0000 (07:20 +0200)] 
bpo-41521: Rename blacklist parameter to not_exported (GH-21824)

Rename "blacklist" parameter of test.support.check__all__() to
"not_exported".

5 years agoUpdate the comment of termios.c (#21886)
Soumendra Ganguly [Sun, 16 Aug 2020 15:51:00 +0000 (10:51 -0500)] 
Update the comment of termios.c (#21886)

5 years agobpo-41503: Fix race between setTarget and flush in logging.handlers.MemoryHandler...
Irit Katriel [Sun, 16 Aug 2020 15:10:13 +0000 (16:10 +0100)] 
bpo-41503: Fix race between setTarget and flush in logging.handlers.MemoryHandler (GH-21765)

5 years agobpo-41513: Improve speed and accuracy of math.hypot() (GH-21803)
Raymond Hettinger [Sun, 16 Aug 2020 02:38:19 +0000 (19:38 -0700)] 
bpo-41513: Improve speed and accuracy of math.hypot() (GH-21803)

5 years agobpo-41540: AIX: skip test that is flaky with a default ulimit. (#21890)
Stefan Krah [Sat, 15 Aug 2020 18:19:07 +0000 (20:19 +0200)] 
bpo-41540: AIX: skip test that is flaky with a default ulimit. (#21890)

- AIX has extreme over-allocation that is in no relation to the physical
    RAM and swap.

5 years agobpo-31122: ssl.wrap_socket() now raises ssl.SSLEOFError rather than OSError when...
Dima Tisnek [Sat, 15 Aug 2020 17:01:19 +0000 (02:01 +0900)] 
bpo-31122: ssl.wrap_socket() now raises ssl.SSLEOFError rather than OSError when peer closes connection during TLS negotiation (GH-18772)

[bpo-31122](): ssl.wrap_socket() now raises ssl.SSLEOFError rather than OSError when peer closes connection during TLS negotiation

Reproducer: http://tiny.cc/f4ztnz (tiny url because some bot keeps renaming b.p.o.-nnn as bpo links)

5 years agobpo-40878: xlc cannot handle C99 extern inline. (GH-21887)
Stefan Krah [Sat, 15 Aug 2020 14:06:21 +0000 (16:06 +0200)] 
bpo-40878: xlc cannot handle C99 extern inline. (GH-21887)

This applies to the default "extc99" mode.  Python does not compile with "stdc99".

5 years agoFix typo in typing doc (GH-21879)
Irit Katriel [Fri, 14 Aug 2020 23:01:36 +0000 (00:01 +0100)] 
Fix typo in typing doc (GH-21879)

Automerge-Triggered-By: @gvanrossum
5 years agobpo-40204: Fix reference to terms in the doc (GH-21865)
Victor Stinner [Fri, 14 Aug 2020 10:20:05 +0000 (12:20 +0200)] 
bpo-40204: Fix reference to terms in the doc (GH-21865)

Sphinx 3 requires to refer to terms with the exact case.

For example, fix the Sphinx 3 warning:

Doc/library/pkgutil.rst:71: WARNING: term Loader not found in case
sensitive match.made a reference to loader instead.

5 years agobpo-41025: Fix subclassing for zoneinfo.ZoneInfo (GH-20965)
Paul Ganssle [Fri, 14 Aug 2020 02:38:30 +0000 (22:38 -0400)] 
bpo-41025: Fix subclassing for zoneinfo.ZoneInfo (GH-20965)

Prior to this change, attempting to subclass the C implementation of
zoneinfo.ZoneInfo gave the following error:

    TypeError: unbound method ZoneInfo.__init_subclass__() needs an argument

https://bugs.python.org/issue41025

5 years agobpo-41410: Fix outdated info in mkstemp docs (GH-21701)
Rishav Kundu [Fri, 14 Aug 2020 01:33:14 +0000 (07:03 +0530)] 
bpo-41410: Fix outdated info in mkstemp docs (GH-21701)

Automerge-Triggered-By: @ericvsmith
5 years agobpo-41526: Fixed layout of final page of the installer (GH-21871)
Steve Dower [Thu, 13 Aug 2020 23:35:52 +0000 (00:35 +0100)] 
bpo-41526: Fixed layout of final page of the installer (GH-21871)

5 years agoFixed comment about pathlib.link_to: it was added in 3.8, not changed. (#21851)
Facundo Batista [Thu, 13 Aug 2020 20:33:56 +0000 (17:33 -0300)] 
Fixed comment about pathlib.link_to: it was added in 3.8, not changed. (#21851)

5 years agobpo-40204, doc: Fix syntax of C variables (GH-21846)
Victor Stinner [Thu, 13 Aug 2020 20:11:50 +0000 (22:11 +0200)] 
bpo-40204, doc: Fix syntax of C variables (GH-21846)

For example, fix the following Sphinx 3 errors:

Doc/c-api/buffer.rst:102: WARNING: Error in declarator or parameters
Invalid C declaration: Expected identifier in nested name. [error at 5]
  void \*obj
  -----^

Doc/c-api/arg.rst:130: WARNING: Unparseable C cross-reference: 'PyObject*'
Invalid C declaration: Expected end of definition. [error at 8]
  PyObject*
  --------^

The modified documentation is compatible with Sphinx 2 and Sphinx 3.

5 years agobpo-41066: Update the comparison section for os vs pathlib (GH-21261)
Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) [Thu, 13 Aug 2020 19:52:04 +0000 (01:22 +0530)] 
bpo-41066: Update the comparison section for os vs pathlib (GH-21261)

5 years agobpo-40204: Add :noindex: in the documentation (GH-21859)
Victor Stinner [Thu, 13 Aug 2020 19:41:54 +0000 (21:41 +0200)] 
bpo-40204: Add :noindex: in the documentation (GH-21859)

Add :noindex: to duplicated documentation to fix "duplicate object
description" errors.

For example, fix this Sphinx 3 issue:

Doc/library/configparser.rst:1146: WARNING: duplicate object
description of configparser.ConfigParser.optionxform, other instance
in library/configparser, use :noindex: for one of them

5 years agobpo-41521: Replace denylist with blocklist is http.cookiejar doc (GH-21826)
Victor Stinner [Thu, 13 Aug 2020 17:20:28 +0000 (19:20 +0200)] 
bpo-41521: Replace denylist with blocklist is http.cookiejar doc (GH-21826)

The http.cookiejar module has is_blocked() and blocked_domains()
methods, so "blocklist" term sounds better than "denylist" in this
module.

Replace also denylisted with denied in test___all__.

5 years agobpo-41520: Fix second codeop regression (GH-21848)
Terry Jan Reedy [Thu, 13 Aug 2020 17:18:49 +0000 (13:18 -0400)] 
bpo-41520: Fix second codeop regression (GH-21848)

* bpo-41520: Fix second codeop repression

Fix the repression introduced by the initial regression fix.

5 years agobpo-40204: Fix duplicates in the documentation (GH-21857)
Victor Stinner [Thu, 13 Aug 2020 17:16:02 +0000 (19:16 +0200)] 
bpo-40204: Fix duplicates in the documentation (GH-21857)

Fix two Sphinx 3 issues:

Doc/c-api/buffer.rst:304: WARNING: Duplicate C declaration, also defined in 'c-api/buffer'.
Declaration is 'PyBUF_ND'.

Doc/c-api/unicode.rst:1603: WARNING: Duplicate C declaration, also defined in 'c-api/unicode'.
Declaration is 'PyObject* PyUnicode_Translate(PyObject *str, PyObject *table, const char *errors)'.

5 years agobpo-40204: Fix Sphinx sytanx in howto/instrumentation.rst (GH-21858)
Victor Stinner [Thu, 13 Aug 2020 17:15:38 +0000 (19:15 +0200)] 
bpo-40204: Fix Sphinx sytanx in howto/instrumentation.rst (GH-21858)

Use generic '.. object::' to declare markers, rather than abusing
'..  c:function::' which fails on Sphinx 3.

5 years agobpo-1635741: Port _winapi ext to multi-stage init (GH-21371)
Mohamed Koubaa [Thu, 13 Aug 2020 14:22:48 +0000 (09:22 -0500)] 
bpo-1635741: Port _winapi ext to multi-stage init (GH-21371)

5 years agobpo-41531: Fix compilation of dict literals with more than 0xFFFF elements (GH-21850)
Pablo Galindo [Thu, 13 Aug 2020 08:48:41 +0000 (09:48 +0100)] 
bpo-41531: Fix compilation of dict literals with more than 0xFFFF elements (GH-21850)

5 years agobpo-1635741: Clean sysdict and builtins of interpreter at exit (GH-21605)
Hai Shi [Wed, 12 Aug 2020 21:23:30 +0000 (05:23 +0800)] 
bpo-1635741: Clean sysdict and builtins of interpreter at exit (GH-21605)

5 years agobpo-40204: Allow pre-Sphinx 3 syntax in the doc (GH-21844)
Victor Stinner [Wed, 12 Aug 2020 19:49:22 +0000 (21:49 +0200)] 
bpo-40204: Allow pre-Sphinx 3 syntax in the doc (GH-21844)

Enable Sphinx 3.2 "c_allow_pre_v3" option and disable the
c_warn_on_allowed_pre_v3 option to make the documentation compatible
with Sphinx 2 and Sphinx 3.

5 years agoCatch all skip_handler cases (GH-21842)
Stefan Krah [Wed, 12 Aug 2020 14:00:05 +0000 (16:00 +0200)] 
Catch all skip_handler cases (GH-21842)

5 years agobpo-41520: codeop no longer ignores SyntaxWarning (GH-21838)
Victor Stinner [Wed, 12 Aug 2020 12:53:28 +0000 (14:53 +0200)] 
bpo-41520: codeop no longer ignores SyntaxWarning (GH-21838)

5 years agobpo-41521, typing: Rename _PROTO_WHITELIST to _PROTO_ALLOWLIST (#21825)
Victor Stinner [Wed, 12 Aug 2020 08:53:12 +0000 (10:53 +0200)] 
bpo-41521, typing: Rename _PROTO_WHITELIST to _PROTO_ALLOWLIST (#21825)

5 years agoFix typo (GH-21820)
Christopher Yeh [Tue, 11 Aug 2020 22:27:08 +0000 (15:27 -0700)] 
Fix typo (GH-21820)

5 years agoCall randseed() before other imports in deccheck.py (GH-21834)
Stefan Krah [Tue, 11 Aug 2020 19:14:51 +0000 (21:14 +0200)] 
Call randseed() before other imports in deccheck.py (GH-21834)

5 years agobpo-41475: Fix note in "What's new in 3.7" (#21733)
Ram Rachum [Tue, 11 Aug 2020 16:33:25 +0000 (19:33 +0300)] 
bpo-41475: Fix note in "What's new in 3.7" (#21733)

5 years agoAdd PEP 573 additions to What's New (GH-21374)
Petr Viktorin [Tue, 11 Aug 2020 16:15:57 +0000 (18:15 +0200)] 
Add PEP 573 additions to What's New (GH-21374)

5 years agoAdd links to asttokens, leoAst, LibCST and parso to ast docs (GH-21773)
Edward K. Ream [Tue, 11 Aug 2020 14:07:49 +0000 (09:07 -0500)] 
Add links to asttokens, leoAst, LibCST and parso to ast docs (GH-21773)

5 years agobpo-41521: Replace whitelist/blacklist with allowlist/denylist (GH-21823)
Victor Stinner [Tue, 11 Aug 2020 13:28:43 +0000 (15:28 +0200)] 
bpo-41521: Replace whitelist/blacklist with allowlist/denylist (GH-21823)

Rename 5 test method names in test_codecs and test_typing.

5 years agobpo-41521: Replace whitelist/blacklist with allowlist/denylist (GH-21822)
Victor Stinner [Tue, 11 Aug 2020 13:26:59 +0000 (15:26 +0200)] 
bpo-41521: Replace whitelist/blacklist with allowlist/denylist (GH-21822)

Automerge-Triggered-By: @tiran
5 years agobpo-1635741: Port multiprocessing ext to multiphase init (GH-21378)
Mohamed Koubaa [Tue, 11 Aug 2020 10:32:35 +0000 (05:32 -0500)] 
bpo-1635741: Port multiprocessing ext to multiphase init (GH-21378)

Port the _multiprocessing extension module to multiphase initialization (PEP 489).

5 years agobpo-40275: Fix failed test cases by using test helpers (GH-21811)
Hai Shi [Mon, 10 Aug 2020 21:24:02 +0000 (05:24 +0800)] 
bpo-40275: Fix failed test cases by using test helpers (GH-21811)

5 years agoMSVC: The ARM command line should not define MASM. (#21817)
Stefan Krah [Mon, 10 Aug 2020 20:39:46 +0000 (22:39 +0200)] 
MSVC: The ARM command line should not define MASM. (#21817)

5 years agoReplace import_fresh_module in decimal test files (GH-21815)
Stefan Krah [Mon, 10 Aug 2020 19:54:50 +0000 (21:54 +0200)] 
Replace import_fresh_module in decimal test files (GH-21815)

5 years agobpo-40548: Fix "Check for source changes (pull_request)" GH Action job (GH-21806)
Victor Stinner [Mon, 10 Aug 2020 16:36:59 +0000 (18:36 +0200)] 
bpo-40548: Fix "Check for source changes (pull_request)" GH Action job (GH-21806)

On Git 2.28, "git diff master..." (3 dots) no longer works when
"fetch --depth=1" is used, whereas it works on Git 2.26.

Replace "..." (3 dots) with ".." (2 dots) in the "git diff" command
computing the list of modified files between the base branch and the
PR branch.

5 years agobpo-16995: add support for base32 extended hex (base32hex) (GH-20441)
Filipe Laíns [Mon, 10 Aug 2020 14:48:20 +0000 (15:48 +0100)] 
bpo-16995: add support for base32 extended hex (base32hex) (GH-20441)

cc @pganssle

Automerge-Triggered-By: @pganssle
5 years agobpo-41324 Add a minimal decimal capsule API (#21519)
Stefan Krah [Mon, 10 Aug 2020 14:32:21 +0000 (16:32 +0200)] 
bpo-41324 Add a minimal decimal capsule API (#21519)

5 years agobpo-41514: Fix buggy IDLE test (GH-21808)
Terry Jan Reedy [Mon, 10 Aug 2020 13:43:56 +0000 (09:43 -0400)] 
bpo-41514: Fix buggy IDLE test (GH-21808)

test_run method test_fatal_error failed when run twice, as with
python -m test -m test_fatal_error test_idle test_idle
because func.called was not reinitialized to 0.
This bug caused a failure on a refleak buildbot.

5 years agobpo-41468: Improve and test IDLE run error exit (GH-21798)
Terry Jan Reedy [Sun, 9 Aug 2020 20:08:30 +0000 (16:08 -0400)] 
bpo-41468: Improve and test IDLE run error exit  (GH-21798)

A message box pops up when an unexpected error stops the run process.  Tell users it is likely a random glitch, but report it if not.

5 years agoImprove renamed test_run.RecursionLimitTest (GH-21794)
Terry Jan Reedy [Sun, 9 Aug 2020 17:08:19 +0000 (13:08 -0400)] 
Improve renamed test_run.RecursionLimitTest (GH-21794)

PEP 8 style and new comments.

5 years agobpo-35018: Sax parser should provide user access to lexical handlers (GH-20958)
Zackery Spytz [Sun, 9 Aug 2020 10:50:53 +0000 (04:50 -0600)] 
bpo-35018: Sax parser should provide user access to lexical handlers (GH-20958)

Co-Authored-By: Jonathan Gossage <jgossage@gmail.com>
5 years agoDoc: Add output to example code in programming FAQ (GH-21346)
Jiajie Zhong [Sat, 8 Aug 2020 19:29:03 +0000 (03:29 +0800)] 
Doc: Add output to example code in programming FAQ (GH-21346)

Add output hint to document, part faq/programming, section [How do I write a function with output parameters (call by reference)?](https://docs.python.org/3/faq/programming.html#how-do-i-write-a-function-with-output-parameters-call-by-reference).

This patch make the output hint just like prefix code block.

5 years agobpo-41455: Provide a link to how the third generation is collected in the GC docs...
Yaroslav Pankovych [Sat, 8 Aug 2020 18:48:21 +0000 (21:48 +0300)] 
bpo-41455: Provide a link to how the third generation is collected in the GC docs (GH-21703)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-40275: Use new test.support helper submodules in tests (GH-21785)
Hai Shi [Sat, 8 Aug 2020 11:05:24 +0000 (19:05 +0800)] 
bpo-40275: Use new test.support helper submodules in tests (GH-21785)

5 years agobpo-40275: Remove test helpers aliases in test.support (GH-21771)
Hai Shi [Sat, 8 Aug 2020 09:32:41 +0000 (17:32 +0800)] 
bpo-40275: Remove test helpers aliases in test.support (GH-21771)

5 years agobpo-41497: Fix potential UnicodeDecodeError in dis CLI (GH-21757)
Konge [Sat, 8 Aug 2020 03:03:09 +0000 (11:03 +0800)] 
bpo-41497: Fix potential UnicodeDecodeError in dis CLI (GH-21757)

5 years agoDoc: Add a link to tutorial page from `open()` doc (GH-21737)
Benjamin Kane [Sat, 8 Aug 2020 02:57:03 +0000 (19:57 -0700)] 
Doc: Add a link to tutorial page from `open()` doc (GH-21737)

Adds a link to the "Reading and Writing Files" page so users can
more easily discover how file handles are handled with the `with`
context manager vs without it.

5 years agoUpdate Azure Pipelines build to use Ubuntu 18.04 and move triggers into YAML files...
Steve Dower [Fri, 7 Aug 2020 22:22:02 +0000 (23:22 +0100)] 
Update Azure Pipelines build to use Ubuntu 18.04 and move triggers into YAML files (GH-21776)

5 years agobpo-40275: Use new test.support helper submodules in tests (GH-21772)
Hai Shi [Fri, 7 Aug 2020 21:55:35 +0000 (05:55 +0800)] 
bpo-40275: Use new test.support helper submodules in tests (GH-21772)

5 years agobpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)
Victor Stinner [Fri, 7 Aug 2020 15:57:56 +0000 (17:57 +0200)] 
bpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)

gdb 9.2 on Fedora Rawhide is not reliable, see:

* https://bugs.python.org/issue41473
* https://bugzilla.redhat.com/show_bug.cgi?id=1866884

5 years agobpo-41477: Make ctypes optional in test_genericalias (GH-21766)
Victor Stinner [Fri, 7 Aug 2020 15:56:42 +0000 (17:56 +0200)] 
bpo-41477: Make ctypes optional in test_genericalias (GH-21766)

5 years agobpo-40275: Use new test.support helper submodules in tests (GH-21764)
Hai Shi [Fri, 7 Aug 2020 15:18:38 +0000 (23:18 +0800)] 
bpo-40275: Use new test.support helper submodules in tests (GH-21764)

5 years agobpo-41098: Doc: Add missing deprecated directives (GH-21162)
Inada Naoki [Fri, 7 Aug 2020 07:31:53 +0000 (16:31 +0900)] 
bpo-41098: Doc: Add missing deprecated directives (GH-21162)

PyUnicodeEncodeError_Create has been deprecated with
`Py_DEPRECATED` macro. But it was not documented.

5 years agobpo-39871: Fix an error in a news entry (GH-21749)
Zackery Spytz [Fri, 7 Aug 2020 05:38:48 +0000 (23:38 -0600)] 
bpo-39871: Fix an error in a news entry (GH-21749)

5 years agobpo-41440: add os.cpu_count() support for VxWorks RTOS (GH-21685)
pxinwr [Fri, 7 Aug 2020 05:21:52 +0000 (13:21 +0800)] 
bpo-41440: add os.cpu_count() support for VxWorks RTOS (GH-21685)

5 years agobpo-41493: Refactoring dictresize (GH-21751)
Inada Naoki [Fri, 7 Aug 2020 05:08:55 +0000 (14:08 +0900)] 
bpo-41493: Refactoring dictresize (GH-21751)

Split newsize calculation into new function. dictresize() now accepts exact newsize.

5 years agobpo-41371: Handle lzma lib import error in test_zoneinfo.py (GH-21734)
Nathan M [Thu, 6 Aug 2020 22:09:40 +0000 (18:09 -0400)] 
bpo-41371: Handle lzma lib import error in test_zoneinfo.py (GH-21734)

5 years agobpo-41492: Fixes the description appearing in UAC prompts on Windows (GH-21754)
Steve Dower [Thu, 6 Aug 2020 16:36:22 +0000 (17:36 +0100)] 
bpo-41492: Fixes the description appearing in UAC prompts on Windows (GH-21754)

5 years agobpo-40275: Use new test.support helper submodules in tests (GH-21743)
Hai Shi [Thu, 6 Aug 2020 11:51:29 +0000 (19:51 +0800)] 
bpo-40275: Use new test.support helper submodules in tests (GH-21743)

5 years agobpo-41482: Fix error in ipaddress.IPv4Network docstring (GH-21736)
Eric L. Frederich [Wed, 5 Aug 2020 18:44:53 +0000 (14:44 -0400)] 
bpo-41482: Fix error in ipaddress.IPv4Network docstring (GH-21736)

5 years agobpo-40989: Fix compiler warning in winreg.c (GH-21722)
Victor Stinner [Wed, 5 Aug 2020 14:23:10 +0000 (16:23 +0200)] 
bpo-40989: Fix compiler warning in winreg.c (GH-21722)

Explicitly cast PyHKEYObject* to PyObject* to call _PyObject_Init().

5 years agobpo-40726: handle uninitalized end_lineno on ast.increment_lineno (GH-20312)
Batuhan Taskaya [Wed, 5 Aug 2020 13:32:32 +0000 (16:32 +0300)] 
bpo-40726: handle uninitalized end_lineno on ast.increment_lineno (GH-20312)

5 years agobpo-36346: Doc: Update removal schedule of legacy Unicode (GH-21479)
Inada Naoki [Wed, 5 Aug 2020 01:48:51 +0000 (10:48 +0900)] 
bpo-36346: Doc: Update removal schedule of legacy Unicode (GH-21479)

See PEP 623 for detail.

5 years agobpo-41463: Generate information about jumps from 'opcode.py' rather than duplicating...
Mark Shannon [Tue, 4 Aug 2020 16:30:11 +0000 (17:30 +0100)] 
bpo-41463: Generate information about jumps from 'opcode.py' rather than duplicating it in 'compile.c' (GH-21714)

Generate information about jumps from 'opcode.py' rather than duplicate it in 'compile.c'

5 years agobpo-40275: Use new test.support helper submodules in tests (GH-21727)
Hai Shi [Tue, 4 Aug 2020 15:53:12 +0000 (23:53 +0800)] 
bpo-40275: Use new test.support helper submodules in tests (GH-21727)

5 years agobpo-40275: Use new test.support helper submodules in tests (GH-21452)
Hai Shi [Tue, 4 Aug 2020 15:51:43 +0000 (23:51 +0800)] 
bpo-40275: Use new test.support helper submodules in tests (GH-21452)