[issue41229] Asynchronous generator memory leak

2020-11-09 Thread Joongi Kim
Change by Joongi Kim : -- pull_requests: +22115 pull_request: https://github.com/python/cpython/pull/23217 ___ Python tracker ___

[issue42305] Added Auto_Complete DropBox Suggestion For Tkinter

2020-11-09 Thread Mechtron 750
New submission from Mechtron 750 : # This is auto complete drop box suggestion wiget for tkinter # Tkinter Autocomplete Text autocompletion provides relevant real-time results to users. Because tkinter does not provide a widget for adding autocompletion to GUIs out of the box, I decided to

[issue42304] [easy C] long type performance waste in 64-bit Windows build

2020-11-09 Thread Ma Lin
New submission from Ma Lin : C type `long` is 4-byte integer in 64-bit Windows build (MSVC behavior). [1] In other compilers, `long` is 8-byte integer in 64-bit build. This leads to a bit unnecessary performance waste, issue38252 fixed this problem in a situation. Search `SIZEOF_LONG` in

[issue42303] I found a bug while checking string with find()

2020-11-09 Thread DongwonTTuna
DongwonTTuna added the comment: That was a mistake. upload another picture file. -- resolution: -> wont fix Added file: https://bugs.python.org/file49586/스크린샷 2020-11-10 16.14.28.png ___ Python tracker

[issue42303] I found a bug while checking string with find()

2020-11-09 Thread DongwonTTuna
New submission from DongwonTTuna : USED THE PYTHON-BINANCE MODULE FOR THIS from binance.client import Client from binance.exceptions import * client = Client(api_key='Your_Public_Apikey', api_secret='Your_Secret_Apikey') def

[issue42302] [Turtle] Add clockwise and anticlockwise method as alias to right and left

2020-11-09 Thread Steven D'Aprano
Steven D'Aprano added the comment: As a new feature, it can only go into 3.10. All other versions have reached feature-freeze and can accept no new features. We might argue that rotations should have always been written as "anticlockwise" and "clockwise", but they are long and verbose, and

[issue42302] [Turtle] Add clockwise and anticlockwise method as alias to right and left

2020-11-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What other Turtle graphics implementations use commands clockwise and anticlockwise? Is it popular enough? -- nosy: +serhiy.storchaka ___ Python tracker

[issue39679] functools: singledispatchmethod doesn't work with classmethod

2020-11-09 Thread mental
Change by mental : -- nosy: +mental ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41987] singledispatchmethod raises an error when relying on a forward declaration

2020-11-09 Thread mental
Change by mental : -- keywords: +patch nosy: +mental nosy_count: 5.0 -> 6.0 pull_requests: +22113 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/23216 ___ Python tracker

[issue21664] multiprocessing leaks temporary directories pymp-xxx

2020-11-09 Thread Zackery Spytz
Zackery Spytz added the comment: Python 2.7 is no longer supported, so I think this issue should be closed. -- nosy: +ZackerySpytz ___ Python tracker ___

[issue42302] [Turtle] Add clockwise and anticlockwise method as alias to right and left

2020-11-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: This doesn't seem useful to me. -- nosy: +rhettinger ___ Python tracker ___ ___

[issue42302] [Turtle] Add clockwise and anticlockwise method as alias to right and left

2020-11-09 Thread Ravi Chityala
New submission from Ravi Chityala : The current implementation of turtle.py has right and left method for rotation. Another approach to view rotation is either clockwise or anticlockwise. These two methods can be an alias to right and left respectively. -- components: Library (Lib)

[issue40988] singledispatchmethod significantly slower than singledispatch

2020-11-09 Thread mental
Change by mental : -- keywords: +patch nosy: +mental nosy_count: 1.0 -> 2.0 pull_requests: +22112 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23213 ___ Python tracker

[issue42301] Add function to exploit heapq structure to locate an index of element

2020-11-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: See: https://stackoverflow.com/questions/2372994/search-an-element-in-a-heap -- ___ Python tracker ___

[issue42301] Add function to exploit heapq structure to locate an index of element

2020-11-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: What is the use case for this? This doesn't seem to be a typical heap operation. https://en.wikipedia.org/wiki/Heap_(data_structure)#Operations Have you seen the in other heap APIs? -- components: +Library (Lib) -Extension Modules title: Lack

[issue41122] functools.singledispatchfunction has confusing error message if no positional arguments are passed in

2020-11-09 Thread mental
Change by mental : -- nosy: +mental nosy_count: 2.0 -> 3.0 pull_requests: +22111 pull_request: https://github.com/python/cpython/pull/23212 ___ Python tracker ___

[issue42301] Lack function to track index of an element in heapq

2020-11-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger, stutzbach ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42301] Lack function to track index of an element in heapq

2020-11-09 Thread Sam Yan
New submission from Sam Yan : Github PR #23204: For a given element in a heap, we can leverage the fact that we can search this element quicker thinking of the property of a heap. Therefore out of h.index(x) that a list linear search uses, I propose to use a special written index method to

[issue42300] Typo in translation to portuguese

2020-11-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The Portuguese translation is maintained in GitHub and uses GitHub issues. Please report issues at https://github.com/python/python-docs-pt-br -- nosy: +xtreak ___ Python tracker

[issue42300] Typo in translation to portuguese

2020-11-09 Thread Ronan Soares
New submission from Ronan Soares : Change "múltiplo menos comum" to "menor múltiplo comum" in the portuguese section of the what changed in python 3.9 -- assignee: docs@python components: Documentation messages: 380626 nosy: docs@python, ronan.soares priority: normal severity: normal

[issue14019] Unify tests for str.format and string.Formatter

2020-11-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Victor: Irit is reviewing old issues to decide whether to close or not. She has to touch it somehow to mark it as reviewed. Irit: if you only change the version, others may think that you blindly updated the version. Better to say something that moves the

[issue14019] Unify tests for str.format and string.Formatter

2020-11-09 Thread Terry J. Reedy
Change by Terry J. Reedy : Removed file: https://bugs.python.org/file31453/mywork2.patch ___ Python tracker ___ ___ Python-bugs-list

[issue42260] [C API] Add PyInterpreterState_SetConfig(): reconfigure an interpreter

2020-11-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22109 pull_request: https://github.com/python/cpython/pull/23211 ___ Python tracker ___

[issue42299] Add test_formatter (or remove deprecated formatter module?)

2020-11-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: The patch is by Francisco Freire (francisco.freire) * (CLA signed). There is apparently no way to directly move a patch from one issue to another, so I download and upload. -- keywords: +patch Added file:

[issue14019] Unify tests for str.format and string.Formatter

2020-11-09 Thread Terry J. Reedy
Change by Terry J. Reedy : Removed file: https://bugs.python.org/file31202/mywork.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue42299] Add test_formatter (or remove deprecated formatter module?)

2020-11-09 Thread Terry J. Reedy
New submission from Terry J. Reedy : #14019 has a patch, unrelated to the issue, that adds test.test_formatter. There still is no such file, so I open this issue to move the patch here. It is the second version, responding to review by Ezio Melotti. But formatter has been deprecated since

[issue36310] pygettext3.7 Does Not Recognize gettext Calls Within fstrings

2020-11-09 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 -Python 3.7 ___ Python tracker ___

[issue36310] pygettext3.7 Does Not Recognize gettext Calls Within fstrings

2020-11-09 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: New changeset bfc6b63102d37ccb58a71711e2342143cd9f4d86 by jack1142 in branch 'master': bpo-36310: Allow pygettext.py to detect calls to gettext in f-strings. (GH-19875) https://github.com/python/cpython/commit/bfc6b63102d37ccb58a71711e2342143cd9f4d86

[issue35712] Make NotImplemented unusable in boolean context

2020-11-09 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42294] [C API] Add new C functions with more regular reference counting like PyTuple_GetItemRef()

2020-11-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Mark. If you want to work only with non-borrowed references, use PySequence_GetItem() and PySequence_SetItem(). It has a cost: it is slower and needs checking errors. If you need more performant solution and binary compatibility across

[issue26200] SETREF adds unnecessary work in some cases

2020-11-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Py_SETREF() is simple wrappers around Py_DECREF() and assignment. If there are macros in Rust it is better to implement Py_SETREF() as Rust macro. Py_SETREF() was not added to the limited API for reason. If arguments against Py_SETREF() are still valid,

[issue42297] [argparse] Bad error message formatting when using custom usage text

2020-11-09 Thread Jake Hunsaker
Jake Hunsaker added the comment: Ok, yeah there seem to be several paths to avoid this behavior then. We should be fine exploring those options. Thanks for the pointer! -- ___ Python tracker

[issue42273] Using LazyLoader leads to AttributeError

2020-11-09 Thread Kevin Keating
Kevin Keating added the comment: My colleague just tested this on Mac and confirms that the bug also occurs there using Python 3.8.3. -- ___ Python tracker ___

[issue42273] Using LazyLoader leads to AttributeError

2020-11-09 Thread Kevin Keating
Kevin Keating added the comment: An __init__.py shouldn't be necessary. If I comment out the 'b = lazy_import("foo.b")' line in a.py (i.e. disable the lazy import), then the print statement works correctly as written without any other changes. Also, I double checked with the colleague who

[issue42297] [argparse] Bad error message formatting when using custom usage text

2020-11-09 Thread paul j3
paul j3 added the comment: It's the subparser that's producing this error, specifically its 'prog' attribute. If I use a custom usage with a simple parser: 1129:~/mypy$ python3 issue42297.py --foo=on usage: issue42297.py one two three issue42297.py: error: argument

[issue42133] Update the stdlib to fall back to __spec__.loader if __loader__ isn't defined

2020-11-09 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: Update the stdlib to fall back to __spec__.parent if __loader__ isn't defined -> Update the stdlib to fall back to __spec__.loader if __loader__ isn't defined

[issue42297] [argparse] Bad error message formatting when using custom usage text

2020-11-09 Thread Jake Hunsaker
Jake Hunsaker added the comment: Ah, ok - so I neglected to mention we're using subparsers which appears to be relevant here. My apologies. Here's a minimal reproducer that shows the behavior when using './arg_test.py foo --bar=on' ``` #! /bin/python3 import argparse usage_string = 'test

[issue35712] Make NotImplemented unusable in boolean context

2020-11-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am sad that such code (as well as my former code in total_ordering) no longer works, but this is just a clever trick, and the code can be written in less clever but more explicit way. On other hand, the warning helps to catch common mistakes like

[issue35712] Make NotImplemented unusable in boolean context

2020-11-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I assume you've been recommending this? Not really, but it does come up and I've seen it in customer code more than once. I do show people this: >>> data = [10.5, 3.27, float('Nan'), 56.1] >>> list(filter(isfinite, data)) [10.5, 3.27,

[issue42297] [argparse] Bad error message formatting when using custom usage text

2020-11-09 Thread Jake Hunsaker
Jake Hunsaker added the comment: I'll try and get a simple reproducer made shortly, however as a quick note I've found that using '--all-logs on' results in a properly formatted error message. -- ___ Python tracker

[issue42297] [argparse] Bad error message formatting when using custom usage text

2020-11-09 Thread paul j3
paul j3 added the comment: Provide a minimal reproducible example. I can't reproduce that run on error message. Also test with arguments like '--all-logs on', which issues an 'unrecognizeable argument' error (with a different error reporting path). Stripping excess newlines is normal,

[issue41712] REDoS in purge

2020-11-09 Thread Steve Dower
Steve Dower added the comment: Thanks Yash for the fix! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42296] Infinite loop uninterruptable on Windows in 3.10

2020-11-09 Thread Eryk Sun
Eryk Sun added the comment: Yes, if I force the return value of _Py_ThreadCanHandleSignals to 1, the loop is broken by a KeyboardInterrupt. -- ___ Python tracker ___

[issue42296] Infinite loop uninterruptable on Windows in 3.10

2020-11-09 Thread Guido van Rossum
Guido van Rossum added the comment: So you're saying this war broken by https://github.com/python/cpython/pull/19087 ? -- ___ Python tracker ___

[issue42179] Clarify chaining exceptions in tutorial/errors.rst

2020-11-09 Thread Vladimir Ryabtsev
Vladimir Ryabtsev added the comment: All right, you won. I hope beginner users will be happy :) I removed my proposal paragraph about __cause__ and __context__ and kept only changes about exception type (https://bugs.python.org/issue42179#msg380435). --

[issue42296] Infinite loop uninterruptable on Windows in 3.10

2020-11-09 Thread Eryk Sun
Eryk Sun added the comment: See bpo-40010. COMPUTE_EVAL_BREAKER() in Python/ceval.c -- or _Py_ThreadCanHandleSignals in Include/internal/pycore_pystate.h -- needs to take into account that SIGNAL_PENDING_SIGNALS() gets called on a completely new thread in Windows. --

[issue42296] Infinite loop uninterruptable on Windows in 3.10

2020-11-09 Thread Eryk Sun
Change by Eryk Sun : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35712] Make NotImplemented unusable in boolean context

2020-11-09 Thread Guido van Rossum
Guido van Rossum added the comment: That's off topic for this issue -- you can go to python-ideas to propose that. -- ___ Python tracker ___

[issue35712] Make NotImplemented unusable in boolean context

2020-11-09 Thread Vedran Čačić
Vedran Čačić added the comment: ... as it probably should: look at https://bugs.python.org/msg349303 Yes, filtering comprehensions are a frequently used niche, and too long in the "official" parlance. I seem to recall that [x in mylist if x is not None] (instead of triple-x version)

[issue35712] Make NotImplemented unusable in boolean context

2020-11-09 Thread Guido van Rossum
Guido van Rossum added the comment: > list(filter(None.__ne__, L)) I assume you've been recommending this? To me it looks obfuscated. People should just use a comprehension, e.g. [x for x in L if x is not None] -- ___ Python tracker

[issue42298] Documented interaction of single-stage init and sub-interpreters inaccurate

2020-11-09 Thread pkerling
New submission from pkerling <9b6ab...@casix.org>: The C API documentation says this about single-phase initialization and sub-interpreters: "[T]he first time a particular extension is imported, it is initialized normally, and a (shallow) copy of its module’s dictionary is squirreled away.

[issue41712] REDoS in purge

2020-11-09 Thread Steve Dower
Steve Dower added the comment: New changeset 1f73c320e2921605c4963e202f6bdac1ef18f2ce by Yash Shete in branch 'master': bpo-41712: Avoid runaway regex match in upload scripts (GH-23166) https://github.com/python/cpython/commit/1f73c320e2921605c4963e202f6bdac1ef18f2ce --

[issue42296] Infinite loop uninterruptable on Windows in 3.10

2020-11-09 Thread Eryk Sun
Eryk Sun added the comment: It also cannot be interrupted in 3.9. But 3.8 and earlier work correctly. -- nosy: +eryksun type: -> behavior versions: +Python 3.9 ___ Python tracker

[issue41798] [C API] Revisit usage of the PyCapsule C API with multi-phase initialization API

2020-11-09 Thread pkerling
Change by pkerling <9b6ab...@casix.org>: -- nosy: +pkerling ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42294] [C API] Add new C functions with more regular reference counting like PyTuple_GetItemRef()

2020-11-09 Thread STINNER Victor
STINNER Victor added the comment: > PyTuple_SetItem() does clear the previous item, it uses Py_XSETREF. The macro > version (PyTuple_SET_ITEM) does not clear the previous item. Oh sorry, I was thinking at PyTuple_SET_ITEM(). -- ___ Python tracker

[issue42297] [argparse] Bad error message formatting when using custom usage text

2020-11-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42296] Infinite loop uninterruptable on Windows in 3.10

2020-11-09 Thread Guido van Rossum
Change by Guido van Rossum : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42296] Infinite loop uninterruptable on Windows in 3.10

2020-11-09 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42297] [argparse] Bad error message formatting when using custom usage text

2020-11-09 Thread Jake Hunsaker
New submission from Jake Hunsaker : In the sos project, we build a custom `usage` string for our argparser parser, and have noticed that doing so causes error messages from argparse to be badly formatted. For example if a bad option value is given, the error message is mangled into the last

[issue42296] Infinite loop uninterruptable on Windows in 3.10

2020-11-09 Thread Guido van Rossum
New submission from Guido van Rossum : This code cannot be interrupted with ^C on Windows (e.g. in the REPL) while True: pass This seems to be a regression, it works in earlier versions. -- messages: 380597 nosy: Mark.Shannon, gvanrossum, steve.dower priority: normal severity:

[issue42296] Infinite loop uninterruptable on Windows in 3.10

2020-11-09 Thread Guido van Rossum
Change by Guido van Rossum : -- components: +Windows nosy: +paul.moore, tim.golden, zach.ware ___ Python tracker ___ ___

[issue42294] [C API] Add new C functions with more regular reference counting like PyTuple_GetItemRef()

2020-11-09 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35712] Make NotImplemented unusable in boolean context

2020-11-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: One of the idioms for removing None no longer works: >>> L = [0, 23, 234, 89, None, 0, 35, 9] >>> list(filter(None.__ne__, L)) Warning (from warnings module): File "", line 1 DeprecationWarning: NotImplemented should not be used in a boolean context [0,

[issue39931] Global variables are not accessible from child processes (multiprocessing.Pool)

2020-11-09 Thread Ronald Oussoren
Ronald Oussoren added the comment: Can this issue be closed? Multiprocessing seems to work as designed. There is a behaviour change between 3.7 and 3.8, but that's documented in What's New. -- ___ Python tracker

[issue42294] [C API] Add new C functions with more regular reference counting like PyTuple_GetItemRef()

2020-11-09 Thread Ronald Oussoren
Ronald Oussoren added the comment: PyTuple_SetItem() does clear the previous item, it uses Py_XSETREF. The macro version (PyTuple_SET_ITEM) does not clear the previous item. -- nosy: +ronaldoussoren ___ Python tracker

[issue42294] [C API] Add new C functions with more regular reference counting like PyTuple_GetItemRef()

2020-11-09 Thread STINNER Victor
STINNER Victor added the comment: Mark Shannon: > The old functions aren't going away, so these additional functions provide no > real safety. You can't stop C programmers trading away correctness for some > perceived performance benefit :( In my experience, newcomers tend to copy existing

[issue42294] [C API] Add new C functions with more regular reference counting like PyTuple_GetItemRef()

2020-11-09 Thread Mark Shannon
Mark Shannon added the comment: I'm not convinced that this is worth the effort. The old functions aren't going away, so these additional functions provide no real safety. You can't stop C programmers trading away correctness for some perceived performance benefit :( If we were designing

[issue42290] Unicode inconsistent display after concencated

2020-11-09 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2931] optparse: various problems with unicode and gettext

2020-11-09 Thread STINNER Victor
STINNER Victor added the comment: This issue was reported in 2008 on Python 2.5. The latest comment is about Python 2. The latest Python version is now Python 3.9 and uses Unicode by default. I close the issue since there is no activity for 4 years. More tests are always welcomed, so

[issue41972] bytes.find consistently hangs in a particular scenario

2020-11-09 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14019] Unify tests for str.format and string.Formatter

2020-11-09 Thread STINNER Victor
STINNER Victor added the comment: @Irit Katriel: Please avoid changing the versions field of old inactive issues. It changes artificially the last activity date of an issue and it sends an email to all people in the nosy list. There is no need to update the Version field of the +7500 open

[issue12625] sporadic test_unittest failure

2020-11-09 Thread STINNER Victor
STINNER Victor added the comment: > Is this test still failing? Or can this be closed? The OpenIndiana buildbot is gone for many years. See also bpo-42173. -- resolution: -> out of date stage: -> resolved status: pending -> closed ___ Python

[issue42291] Incorrect signature of CodeType.replace()

2020-11-09 Thread STINNER Victor
STINNER Victor added the comment: > Argument Clinic and the inspect module do not support this case. That's why I used -1 and None. > But -1 and None are incorrect values for many parameters, and even if they > would be correct, they are not default values. By default, if you do not >

[issue25259] readline macros can segfault Python

2020-11-09 Thread STINNER Victor
STINNER Victor added the comment: No activity for 4 years, I close the issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-09 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26200] SETREF adds unnecessary work in some cases

2020-11-09 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR 23209 to add Py_SetRef() and Py_XSetRef() functions to the limited C API and the stable ABI. Py_SETREF() and Py_XSETREF() macros are excluded from the limited C API and some extension modules cannot use them, like extension modules written in

[issue26200] SETREF adds unnecessary work in some cases

2020-11-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22108 pull_request: https://github.com/python/cpython/pull/23209 ___ Python tracker ___

[issue42294] [C API] Add new C functions with more regular reference counting like PyTuple_GetItemRef()

2020-11-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22107 pull_request: https://github.com/python/cpython/pull/23209 ___ Python tracker ___

[issue19561] request to reopen Issue837046 - pyport.h redeclares gethostname() if SOLARIS is defined

2020-11-09 Thread Jakub Kulik
Change by Jakub Kulik : -- pull_requests: +22106 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23208 ___ Python tracker ___

[issue19561] request to reopen Issue837046 - pyport.h redeclares gethostname() if SOLARIS is defined

2020-11-09 Thread Jakub Kulik
Jakub Kulik added the comment: And for the reference, Solaris distros are already removing this code: https://github.com/oracle/solaris-userland/blob/master/components/python/python37/patches/15-gethostname.patch

[issue41543] contextlib.nullcontext doesn't work with async context managers

2020-11-09 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 ___ Python tracker ___

[issue19561] request to reopen Issue837046 - pyport.h redeclares gethostname() if SOLARIS is defined

2020-11-09 Thread Jakub Kulik
Jakub Kulik added the comment: I think this code should be removed. It was added in its current form more than 20 years ago with the intention to add function declarations missing from system include files: https://github.com/python/cpython/commit/1e0c2f4bee43728930bd5f4dc77283f09c4ba004

[issue42294] [C API] Add new C functions with more regular reference counting like PyTuple_GetItemRef()

2020-11-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22105 pull_request: https://github.com/python/cpython/pull/23207 ___ Python tracker ___

[issue40624] add support for != (not-equals) in ElementTree XPath

2020-11-09 Thread Antony Lee
Change by Antony Lee : -- nosy: -Antony.Lee ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42295] Error should be flagged if Walrus operator is used for multiple assigment

2020-11-09 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42294] [C API] Add new C functions with more regular reference counting like PyTuple_GetItemRef()

2020-11-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 23c5f93b83f78f295313e137011edb18b24c37c2 by Victor Stinner in branch 'master': bpo-42294: Add borrowed/strong reference to doc glossary (GH-23206) https://github.com/python/cpython/commit/23c5f93b83f78f295313e137011edb18b24c37c2 --

[issue41543] contextlib.nullcontext doesn't work with async context managers

2020-11-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset a117167d8dc8fa673a4646f509551c7950f824e5 by Tom Gringauz in branch 'master': bpo-41543: contextlib.nullcontext can fill in for an async context manager (GH-21870)

[issue42294] [C API] Add new C functions with more regular reference counting like PyTuple_GetItemRef()

2020-11-09 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +22104 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23206 ___ Python tracker ___

[issue42295] Error should be flagged if Walrus operator is used for multiple assigment

2020-11-09 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Due to the precedence of the walrus operator, it is not actually a multiple assignment but rather a tuple of 3 elements with one being the value of the assignment expression. $ python -m ast (a, b := 3, 4) Module( body=[ Expr(

[issue42295] Error should be flagged if Walrus operator is used for multiple assigment

2020-11-09 Thread John Zalewski
New submission from John Zalewski : #The 'Walrus' operator does not support multiple assignment but does not #flag an attempt to make a multiple assigment as an error #This results in unexpected behavior at execution time: a, b = 100, 200 print (a, b) #result is #100 200 if (a, b := 3, 4):

[issue41287] __doc__ attribute is not set in property-derived classes

2020-11-09 Thread Sergei Izmailov
Change by Sergei Izmailov : -- keywords: +patch pull_requests: +22103 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23205 ___ Python tracker ___

[issue41237] Access violation in python39.dll!meth_dealloc on exit

2020-11-09 Thread Petr Viktorin
Change by Petr Viktorin : -- nosy: +petr.viktorin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42289] Found a secret/private key in code.

2020-11-09 Thread Christian Heimes
Christian Heimes added the comment: As Zachary already pointed out, Python's source code contains multiple private keys for internal testing. The keys are only used for integration tests and are not a security problem. -- nosy: +christian.heimes resolution: -> not a bug stage: ->

[issue42294] [C API] Add new C functions with more regular reference counting like PyTuple_GetItemRef()

2020-11-09 Thread STINNER Victor
New submission from STINNER Victor : The C API of Python uses and abuses borrowed references and stealing references for performance. When such function is used in some very specific code for best performances, problems arise when they are the only way to access objects. Reference counting

[issue13829] exception error in _scproxy.so when called after fork

2020-11-09 Thread Ronald Oussoren
Ronald Oussoren added the comment: I propose closing this as 3th-party or out-of-date: 1) The crash in _scproxy is due to limitations in Apple's libraries, in particular they don't work in child processes created with os.fork() without calling execv*() 2) The primary way to run into this

[issue42287] Use Py_NewRef & Py_XNewRef where applicable

2020-11-09 Thread STINNER Victor
STINNER Victor added the comment: > Following https://bugs.python.org/issue42262, I think it'd be nice to convert > existing C code to use the more concise Py_NewRef() and Py_XNewRef() where > possible. Increases readability and less bug prone. In general, we don't accept changes which are