[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel
Irit Katriel added the comment: This doesn't leak: try: raise B() except B: tb = sys.exc_info()[1].__traceback__ So this isn't about the traceback being part of the cycle. The B() needs to be there too. --

[issue42448] re.findall have different match result against re.search or re.sub

2021-08-17 Thread Rondevous
Rondevous added the comment: I was frustrated for hours when I couldn't figure out why this won't match: >>> re.findall(r'(foo)?bar|cool', 'cool') Now I know, I have to make this change: (?:foo) But this isn't obvious. Should it be mentioned in the docs of re.findall() to use (?:...) for non

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Mark Shannon
Mark Shannon added the comment: refleak.py seems to run forever for me. Got bored after 6000 iterations. Which O/S and configure options are needed for refleak.py to fail? -- ___ Python tracker

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel
Irit Katriel added the comment: I'm using a mac. It typically fails within at most 10-20 iterations. -- ___ Python tracker ___ ___

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel
Irit Katriel added the comment: > Could you outline how are you reproducing the leaks? Sorry I missed this. Just run the script: iritkatriel@Irits-MBP cpython-1 % ./python.exe refleak.py -- 1 -- beginning 6 repetitions 123456 .. -- 2 -- beginning 6 repetitions 123456 .. -- 3 -- begin

[issue44921] dict subclassing is slow

2021-08-17 Thread Kevin Shweh
Kevin Shweh added the comment: Of course it's reasonable to support dict subclasses. We already have a bunch of dict subclasses in the standard library, like collections.defaultdict and collections.Counter, and collections.Counter is significantly slower than it could be because of this issu

[issue36384] [security] CVE-2021-29921: ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-08-17 Thread Łukasz Langa
Łukasz Langa added the comment: > it prevents using 3.8 because of this open vulnerability What do you mean by this? Our understanding is that this is a low-severity CVE because in order for this to be a vulnerability, you'd have to have both: 1. user access to IP address input; and 2. contr

[issue44940] Hint the use of non-capturing group in re.findall() documentation

2021-08-17 Thread Rondevous
New submission from Rondevous : Can it please be hinted in the docs of re.findall to use (?:...) for non-capturing groups? >>> re.findall('(foo)?bar|cool', 'cool') [''] >>> ### I expected the result: ['cool'] After hours of frustration, I learnt that I should use a non-capturing group (?:foo

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: There is some timing-related race condition at hand because I tried in a Linux machine and a MacBook Pro (intel) laptop and I wasn't able to reproduce after 20 min of the script running :( -- ___ Python tra

[issue36384] [security] CVE-2021-29921: ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-08-17 Thread Achraf Merzouki
Achraf Merzouki added the comment: >> it prevents using 3.8 because of this open vulnerability >What do you mean by this? >Our understanding is that this is a low-severity CVE because in order for this >to be a vulnerability, you'd have to have both: >1. user access to IP address input; and

[issue44508] asyncio: document failure mode for loop.call_soon_threadsafe

2021-08-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +26271 pull_request: https://github.com/python/cpython/pull/27805 ___ Python tracker ___ __

[issue44508] asyncio: document failure mode for loop.call_soon_threadsafe

2021-08-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 3240bc62f4e0afa09964f3afc845697f0a0806b9 by meowmeowmeowcat in branch 'main': bpo-44508: [Doc] Document failure mode for loop.call_soon_threadsafe (GH-27688) https://github.com/python/cpython/commit/3240bc62f4e0afa09964f3afc845697f0a0806b9 --

[issue44508] asyncio: document failure mode for loop.call_soon_threadsafe

2021-08-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +26270 pull_request: https://github.com/python/cpython/pull/27804 ___ Python tracker _

[issue36384] [security] CVE-2021-29921: ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-08-17 Thread Łukasz Langa
Łukasz Langa added the comment: I was unaware of the "CRITICAL" base score assigned by NIST to this. Alright, let's port this back then. There are a few things the PR will need. -- ___ Python tracker ___

[issue36384] [security] CVE-2021-29921: ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-08-17 Thread Christian Heimes
Christian Heimes added the comment: "CRITICAL" is a ridiculous high assessment for this bug. Somebody ticked all the scary boxes in the CVSS form like "total loss of control". -- ___ Python tracker

[issue36384] [security] CVE-2021-29921: ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-08-17 Thread Christian Heimes
Christian Heimes added the comment: The CVE was rated https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H&version=3.1, which is equivalent to a RCE with authentication bypass. I would rate the issue https://nvd.nist.gov/vuln-metrics/cvss/v3-calcul

[issue44508] asyncio: document failure mode for loop.call_soon_threadsafe

2021-08-17 Thread miss-islington
miss-islington added the comment: New changeset bbb10761b64095425f7f8dcb3bc1f0d8bdee528a by Miss Islington (bot) in branch '3.10': bpo-44508: [Doc] Document failure mode for loop.call_soon_threadsafe (GH-27688) https://github.com/python/cpython/commit/bbb10761b64095425f7f8dcb3bc1f0d8bdee528a

[issue44508] asyncio: document failure mode for loop.call_soon_threadsafe

2021-08-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e2320c6a34d44a0efa7ecc693c3a6215014b7b6e by Miss Islington (bot) in branch '3.9': bpo-44508: [Doc] Document failure mode for loop.call_soon_threadsafe (GH-27688) (GH-27805) https://github.com/python/cpython/commit/e2320c6a34d44a0efa7ecc693c3a62150

[issue44508] asyncio: document failure mode for loop.call_soon_threadsafe

2021-08-17 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks for reporting, Mark, and for the patch, meowmeowcat! ✨ 🍰 ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44935] Solaris: enable posix_spawn in subprocess

2021-08-17 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed versions: -Python 3.9 ___ Python tracker ___

[issue36384] [security] CVE-2021-29921: ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-08-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 03dd89d62413c4a92831ed1b36e2ae8983bcb2d4 by achraf-mer in branch '3.8': [3.8] bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated (GH-25099) (GH-27801) https://github.com/python/cpython/commit/03dd89d62413c4a92831ed1b36e2ae8983bcb2d

[issue44899] tarfile: add support for creating an archive of potentially changing files

2021-08-17 Thread Ethan Furman
Change by Ethan Furman : -- nosy: +ethan.furman versions: +Python 3.11 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list maili

[issue30924] RPM build doc_files needs files separated into separate lines

2021-08-17 Thread Ryan Mast
Ryan Mast added the comment: Should this be closed? It looks like the PR is only changing a file in distutils, and according to https://bugs.python.org/issue30925#msg386350 distutils is deprecated and only release blocking issues will be considered. -- nosy: +rmast _

[issue39039] zlib.error with tarfile.open

2021-08-17 Thread Jack DeVries
Jack DeVries added the comment: @jvoisin I am able to reproduce the problem when I download your script, but I am having a hard time reproducing it by passing corrupt archives to `tarfile.open`. How exactly was this file corrupted? I am trying to figure out if there are any similar implement

[issue33140] shutil.chown should not be defined in Windows

2021-08-17 Thread Ryan Mast (nightlark)
Ryan Mast (nightlark) added the comment: If this function were to be implemented on Windows would the preferred approach be the one described in the initial message for this issue of creating a Windows `os.set_owner` function that uses the appropriate Windows API calls to change owner/group

[issue28646] Using a read-only buffer.

2021-08-17 Thread jakirkham
Change by jakirkham : -- nosy: +jakirkham ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue24905] Allow incremental I/O to blobs in sqlite3

2021-08-17 Thread Ryan Mast (nightlark)
Ryan Mast (nightlark) added the comment: It looks like this has a PR that just needs rebasing, then it will be ready for another review. -- nosy: +rmast ___ Python tracker __

[issue44941] Add check_methods function to standard library

2021-08-17 Thread Finn Mason
New submission from Finn Mason : In _collections_abc.py is a private function titled `_check_methods`. It takes a class and a number of method names (as strings), checks if the class has all of the methods, and returns NotImplemented if any are missing. The code is below: ``` def _check_meth

[issue33140] shutil.chown should not be defined in Windows

2021-08-17 Thread Eryk Sun
Eryk Sun added the comment: > creating a Windows `os.set_owner` function that uses the > appropriate Windows API calls to change owner/group settings, > and then using that for Windows in the `shutil.chown` function? I'd gladly help with implementing os.set_owner(), as a separate issue. But I

[issue44942] Add number pad enter bind to TK's simpleDialog

2021-08-17 Thread Ryan Mast (nightlark)
New submission from Ryan Mast (nightlark) : Tk the number pad enter and main enter keys separately. The number pad enter button should be bound to `self.ok` in simpleDialog's `Dialog` class so that both enter buttons have the same behavior. A PR for this change has been submitted on GitHub by

[issue44942] Add number pad enter bind to TK's simpleDialog

2021-08-17 Thread Ryan Mast (nightlark)
Ryan Mast (nightlark) added the comment: I'm new to this system, if I'm understanding https://devguide.python.org/triaging/#nosy-list then it looks like the people listed for `tkinter` should be added to the Nosy List? -- nosy: +gpolo, serhiy.storchaka __

[issue44925] [docs] Confusing deprecation notice for typing.IO

2021-08-17 Thread Jesse Rittner
Jesse Rittner added the comment: @kj I'm not sure if I'll have the time, but for reference, is this what the PR would be raised against? https://raw.githubusercontent.com/python/cpython/main/Doc/library/typing.rst -- ___ Python tracker

[issue44943] Integrate PyHyphen into the textwrap module?

2021-08-17 Thread Elsie Hupp
New submission from Elsie Hupp : PyHyphen is a mature library that wraps the existing CPython `textwrap` module and provides the ability to break and hyphenate words in wrapped text. PyHyphen is on PyPI here: https://pypi.org/project/PyHyphen/ And on GitHub here: https://github.com/dr-leo/P

[issue44938] Expose PyErr_ChainExceptions in the stable API

2021-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As the original author of _PyErr_ChainExceptions() (issue21715) I am not sure that its name and signature are optimal. It did not matter while it was internal function because we could change them at any moment, but for public API the design should be more

[issue44944] Addition of _heappush_max method to complete the max heap implementation in Python's heapq module

2021-08-17 Thread Yatharth Mathur
Change by Yatharth Mathur : -- nosy: yatharthmathur priority: normal pull_requests: 26273 severity: normal status: open title: Addition of _heappush_max method to complete the max heap implementation in Python's heapq module type: enhancement versions: Python 3.11

[issue44944] Addition of _heappush_max method to complete the max heap implementation in Python's heapq module

2021-08-17 Thread Yatharth Mathur
Change by Yatharth Mathur : -- keywords: +patch pull_requests: +26274 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27807 ___ Python tracker ___

[issue44933] python3.9-intel64 hardened runtime not enabled

2021-08-17 Thread Ned Deily
Ned Deily added the comment: The "python3.x-intel64" executable was added for macOS "universal2" builds by Issue44009 in the 3.9.5 and 3.8.10 releases. As described in the issue and the changelog entries, the rationale is: "Provide “python3.x-intel64” executable to allow reliably forcing macO

[issue44587] argparse BooleanOptionalAction displays default=SUPPRESS unlike other action types

2021-08-17 Thread Toshio Kuratomi
Change by Toshio Kuratomi : -- pull_requests: +26275 pull_request: https://github.com/python/cpython/pull/27808 ___ Python tracker ___ _

[issue27498] Regression in repr() of class object

2021-08-17 Thread Ned Deily
Change by Ned Deily : -- pull_requests: -26016 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue44587] argparse BooleanOptionalAction displays default=SUPPRESS unlike other action types

2021-08-17 Thread Toshio Kuratomi
Toshio Kuratomi added the comment: PR Opened. A fix for this should be backported as well. However, if you decide you don't want the refactor backported, you can merely continue to change the condition inside of BooleanOptionalAction to repeat all of the same checks as are contained in the

[issue44863] Allow TypedDict to inherit from Generics

2021-08-17 Thread Tobias Burger
Change by Tobias Burger : -- nosy: +toburger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue15373] copy.copy() does not properly copy os.environment

2021-08-17 Thread Ryan Mast (nightlark)
Change by Ryan Mast (nightlark) : -- nosy: +rmast ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue26545] [doc] os.walk is limited by python's recursion limit

2021-08-17 Thread Ryan Mast (nightlark)
Change by Ryan Mast (nightlark) : -- nosy: +rmast ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue20041] TypeError when f_trace is None and tracing.

2021-08-17 Thread Ryan Mast (nightlark)
Change by Ryan Mast (nightlark) : -- nosy: +rmast ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

<    1   2