[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:

[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

[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:

[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 ___

[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

[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 ___

[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

[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

[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:

[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

[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

[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

[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

[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

[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

[issue28646] Using a read-only buffer.

2021-08-17 Thread jakirkham
Change by jakirkham : -- nosy: +jakirkham ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

[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

[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

[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

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

[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 ___

[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

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

[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

[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=3.1, which is equivalent to a RCE with authentication bypass. I would rate the issue

[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 Ł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

[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

[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 : -- pull_requests: +26271 pull_request: https://github.com/python/cpython/pull/27805 ___ Python tracker ___

[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;

[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

[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

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

[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

[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 --

[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 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

[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

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

[issue44921] dict subclassing is slow

2021-08-17 Thread Marco Sulla
Marco Sulla added the comment: I not finished my phrase. I'm sure that if there's a way to turn lemons into lemonade, she is **MUCH** more skilled than me to find one. -- ___ Python tracker

[issue44921] dict subclassing is slow

2021-08-17 Thread Marco Sulla
Marco Sulla added the comment: Since my knowledge of this is very poor, I informed Monica about the issue. I'm quite sure that if there's a way to turn lemons into lemonade :) -- ___ Python tracker

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > But this makes it not leak again, so now we know it's the traceback: The traceback is a very heavy gc object because it contains the frames, and in the locals of the frame is the traceback itself via the exception. This is a well known heavy cycle,

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I am still amazed that I cannot reproduce the leaks on my machine. Maybe I am missing some steps. Could you outline how are you reproducing the leaks? -- ___ Python tracker

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

2021-08-17 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 17.0 -> 18.0 pull_requests: +26269 pull_request: https://github.com/python/cpython/pull/27801 ___ Python tracker ___

[issue44939] proposal: add support for regex in Literal type hint

2021-08-17 Thread Leon Mintz
New submission from Leon Mintz : Could typing.Literal (or analogous) accept a regex pattern to match against? For example, if I want a duration string, duration: str # allowed syntax: 3s, 3m, 3h etc. vs duration: LiteralPattern['[0-9]+[smh]'] -- messages: 399787 nosy: leon.mintz

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel
Irit Katriel added the comment: But this makes it not leak again, so now we know it's the traceback: try: raise B() except B: b = sys.exc_info()[1] b.__traceback__ = None -- ___ Python tracker

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel
Irit Katriel added the comment: It's probably not that because this leaks too, and it skips the cleanup: try: raise B() except B: b = sys.exc_info()[1] -- ___ Python tracker

[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: Can we backport the security fix from this issue https://bugs.python.org/issue36384#msg392684 to version 3.8 The comment explicitly says that it was decided to not include in 3.8, I am not sure this is best, since it prevents using 3.8 because of this open

[issue38956] argparse.BooleanOptionalAction should not add the default value to the help string by default

2021-08-17 Thread Antony Lee
Change by Antony Lee : -- nosy: -Antony.Lee ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44932] `issubclass` and `isinstance` doesn't check for all 2nd argument types

2021-08-17 Thread Guido van Rossum
Guido van Rossum added the comment: Agreed. Thanks, Serhiy. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42560] Improve Tkinter Documentation

2021-08-17 Thread E. Paine
E. Paine added the comment: > In particular, you added OS-specific info I also deemed this very useful information. The issue is that it is not documented in the man pages and so those values are pulled straight from the source code. We would need to decide whether we keep such information

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Guido van Rossum
Guido van Rossum added the comment: So there's code generated for an except clause with a variable that clears the variable at the end, so that this works: try: ... except Exception as err: ... print(err) # Should fail, since err was cleared when the except clause exited. Maybe there's

[issue44935] Solaris: enable posix_spawn in subprocess

2021-08-17 Thread miss-islington
miss-islington added the comment: New changeset 826e059bb9b42e17bef2186938a2bd3f33610e69 by Miss Islington (bot) in branch '3.10': [3.10] bpo-44935: enable posix_spawn() on Solaris (GH-27795) (GH-27800) https://github.com/python/cpython/commit/826e059bb9b42e17bef2186938a2bd3f33610e69

[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

2021-08-17 Thread Mark Dickinson
Mark Dickinson added the comment: Re-closing; we should be good now. -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44935] Solaris: enable posix_spawn in subprocess

2021-08-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +26268 pull_request: https://github.com/python/cpython/pull/27800 ___ Python tracker

[issue44935] Solaris: enable posix_spawn in subprocess

2021-08-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset b1930bf75f276cd7ca08c4455298128d89adf7d1 by Jakub Kulík in branch 'main': bpo-44935: enable posix_spawn() on Solaris (GH-27795) https://github.com/python/cpython/commit/b1930bf75f276cd7ca08c4455298128d89adf7d1 -- nosy:

[issue44938] Expose PyErr_ChainExceptions in the stable API

2021-08-17 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +26267 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27799 ___ Python tracker

[issue44938] Expose PyErr_ChainExceptions in the stable API

2021-08-17 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Currently, exception chaining in the C-API must be done by hand. This is a painstaking process that involves several steps and is very easy to do incorrectly. We currently have a private function: _PyErr_ChainExceptions that does this job. Given

[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

2021-08-17 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset beb3a835dae3cd940b93e7caa32450890c4cd539 by Miss Islington (bot) in branch '3.9': bpo-44698: Restore complex pow behaviour for small integral exponents (GH-27772) (GH-27797)

[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

2021-08-17 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset 3f81e9628f6f104c103d0e38adb84c51e5261626 by Miss Islington (bot) in branch '3.10': bpo-44698: Restore complex pow behaviour for small integral exponents (GH-27772) (GH-27796)

[issue44926] typing.get_type_hints() raises for type aliases with forward references

2021-08-17 Thread Guido van Rossum
Guido van Rossum added the comment: Maximilian, I think your last analysis is spot on. The problem is specific to type aliases and how at runtime they do not carry information about scope with them. The current type alias syntax (both the original form and the form using "x: TypeAlias =

[issue44936] test_concurrent_futures: test_cancel_futures_wait_false() and test_interpreter_shutdown() failed on GHA Windows x64

2021-08-17 Thread STINNER Victor
STINNER Victor added the comment: The machine was busy when test_concurrent_futures: system load of 5.59. 2021-08-16T17:14:01.3805500Z 0:01:58 load avg: 5.59 [ 93/428/1] test_concurrent_futures failed (2 failures) (1 min 49 sec) -- running: test_regrtest (39.2 sec) --

[issue44937] test_regrest: test_tools_script_run_tests() failed on GHA Windows x64

2021-08-17 Thread STINNER Victor
STINNER Victor added the comment: In another commit of the same PR 27774, I don't even see test_regrtest in the list of the "10 slowest tests", so test_regrtest took less than "test_socket: 46.4 sec". If test_regrtest is killed after 20 minutes, it's likely that it was stuck somewhere.

[issue44936] test_concurrent_futures: test_cancel_futures_wait_false() and test_interpreter_shutdown() failed on GHA Windows x64

2021-08-17 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44937] test_regrest: test_tools_script_run_tests() failed on GHA Windows x64

2021-08-17 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +erlendaasland, lukasz.langa, pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44936] test_concurrent_futures: test_cancel_futures_wait_false() and test_interpreter_shutdown() failed on GHA Windows x64

2021-08-17 Thread STINNER Victor
STINNER Victor added the comment: > AssertionError: Process return code is 3221225477 > (...) > AssertionError: Process return code is 3221225477 This is STATUS_ACCESS_VIOLATION: the process crashed, not good :-( Moreover, even if the process was run with -X faulthandler, stderr is empty :-(

[issue41682] [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2021-08-17 Thread STINNER Victor
STINNER Victor added the comment: Recent failure on GHA Windows x64: https://github.com/python/cpython/runs/3342514542 2021-08-16T17:19:58.4338049Z == 2021-08-16T17:19:58.4339129Z FAIL:

[issue44937] test_regrest: test_tools_script_run_tests() failed on GHA Windows x64

2021-08-17 Thread STINNER Victor
New submission from STINNER Victor : GitHub Action Windows x64 CI: https://github.com/python/cpython/runs/3342514542 First, test_regrtest was killed after 20 minutes, while it was running test_tools_script_run_tests(). Then, re-running test_regrtest in verbose mode failed with a

[issue44936] test_concurrent_futures: test_cancel_futures_wait_false() and test_interpreter_shutdown() failed on GHA Windows x64

2021-08-17 Thread STINNER Victor
New submission from STINNER Victor : GitHub Action Windows x64: https://github.com/python/cpython/runs/3342514542 test_concurrent_futures failed when tests are run in parallel, but then passed then re-run in verbose mode. ==

[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

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

[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

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

[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

2021-08-17 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset 4b9a2dcf19e5d13c3bc2afea2de1f65cd994c699 by Mark Dickinson in branch 'main': bpo-44698: Restore complex pow behaviour for small integral exponents (GH-27772) https://github.com/python/cpython/commit/4b9a2dcf19e5d13c3bc2afea2de1f65cd994c699

[issue42255] webbrowser.MacOSX is unused, untested and undocumented

2021-08-17 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: +Python 3.11 -Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42255] webbrowser.MacOSX is unused, untested and undocumented

2021-08-17 Thread Dong-hee Na
Dong-hee Na added the comment: Let's deprecate it from 3.11 and remove it at 3.12 :) -- nosy: +corona10 ___ Python tracker ___ ___

[issue24955] webbrowser broken on Mac OS X when using the BROWSER variable

2021-08-17 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: +Python 3.11 -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list

[issue42560] Improve Tkinter Documentation

2021-08-17 Thread Mark Roseman
Mark Roseman added the comment: Łukasz, I've got a bunch of individual branches for each of those sections. What I posted the link to was a merge of all of them just for overview purposes, but the PR's will be created from the individual branches. I can start creating those now or wait a

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel
Irit Katriel added the comment: I'm pretty sure the frame locals is involved. This leaks (not a is being re-raised, not b): - def test_no_hang_on_context_chain_cycle2(): class A(Exception): pass class B(Exception): pass try: try: raise

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel
Change by Irit Katriel : -- Removed message: https://bugs.python.org/msg399763 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel
Irit Katriel added the comment: I'm pretty sure the frame locals is involved. This leaks (note that a is being re-raised, not b): - def test_no_hang_on_context_chain_cycle2(): class A(Exception): pass class B(Exception): pass try: try:

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset c2c857b40f226575d64e0d56a759cbd799f51e62 by Dong-hee Na in branch 'main': bpo-44895: Introduce PYTHONDUMPREFSFILE variable for refcount dumping (GH-27767) https://github.com/python/cpython/commit/c2c857b40f226575d64e0d56a759cbd799f51e62

[issue42035] [C API] PyType_GetSlot cannot get tp_name

2021-08-17 Thread Petr Viktorin
Change by Petr Viktorin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44889] Specialize LOAD_METHOD with PEP 659 adaptive interpreter

2021-08-17 Thread Ken Jin
Ken Jin added the comment: Some improvements can be made (see https://github.com/python/cpython/pull/27722#issuecomment-900369714), but for the most part we're done. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue42035] [C API] PyType_GetSlot cannot get tp_name

2021-08-17 Thread hai shi
hai shi added the comment: > Now, I wonder if we should also introduce PyType_GetModuleName for > __module__, or stop and close this as fixed. IMO, I suggest to close this bpo. We can get the `tp_name` by the C API now. If there have user want get `__module__`, we can open a new bpo to

[issue44889] Specialize LOAD_METHOD with PEP 659 adaptive interpreter

2021-08-17 Thread Mark Shannon
Mark Shannon added the comment: New changeset 96346cb6d0593ef9ec122614347ccb053cd63433 by Ken Jin in branch 'main': bpo-44889: Specialize LOAD_METHOD with PEP 659 adaptive interpreter (GH-27722) https://github.com/python/cpython/commit/96346cb6d0593ef9ec122614347ccb053cd63433 --

[issue44934] Windows installer: Append Python to PATH instead of prepending it

2021-08-17 Thread Steve Dower
Steve Dower added the comment: Prepending is used because it makes the most recently installed version of Python the "active" one. It also ensures that a deliberate install is going to override any applications that may have put their own copy on PATH (deliberately or otherwise). There's no

[issue42035] [C API] PyType_GetSlot cannot get tp_name

2021-08-17 Thread Petr Viktorin
Petr Viktorin added the comment: Now, I wonder if we should also introduce PyType_GetModuleName for __module__, or stop and close this as fixed. -- ___ Python tracker ___

[issue44874] Deprecate Py_TRASHCAN_SAFE_BEGIN/END

2021-08-17 Thread Irit Katriel
Irit Katriel added the comment: Link to python-dev thread: https://mail.python.org/archives/list/python-...@python.org/message/LWP6MOLP5UW2TH3MROZQK4N64SX35N2B/ -- ___ Python tracker

[issue42035] [C API] PyType_GetSlot cannot get tp_name

2021-08-17 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset fcd651d16fc5ac3d07dd3f57f1001a861a2e7d23 by Hai Shi in branch 'main': bpo-42035: Enhance test_get_type_name() of _testcapi (GH-27649) https://github.com/python/cpython/commit/fcd651d16fc5ac3d07dd3f57f1001a861a2e7d23 --

[issue44874] Deprecate Py_TRASHCAN_SAFE_BEGIN/END

2021-08-17 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +petr.viktorin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44874] Deprecate Py_TRASHCAN_SAFE_BEGIN/END

2021-08-17 Thread Irit Katriel
Irit Katriel added the comment: Following discussion on python-dev I added a compile-time deprecation warning. With this, and after reverting PR27683 I get the warning below. The build succeeds and the tests pass. % make -s -j2 Objects/frameobject.c:622:5: warning:

[issue44050] [subinterpreters] _PyImport_FixupExtensionObject() regression in Python 3.9

2021-08-17 Thread hai shi
hai shi added the comment: > (Note that the "def->m_size == -1" means that the module does not support > sub-interpreters, because it has global state. Make Sense. It's more better and exact than my suggestion :) -- ___ Python tracker

[issue26871] Change weird behavior of PyModule_AddObject()

2021-08-17 Thread Petr Viktorin
Petr Viktorin added the comment: Since https://github.com/python/cpython/pull/23122, there is PyModule_AddObjectRef doesn't steal a reference. PyModule_AddObject is discouraged in the docs, but not formally deprecated. (As Stefan notes, the leaks are single references in case of a module

[issue44931] Add "bidimap" to collections library: a simple bidirectional map

2021-08-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: This has come up several times in the past and never moved forward. Part of the reason is that the mapping API doesn't translate cleanly to bidirectional lookups and it leaves users trapped if two keys every end up needing to be mapped to the same value

[issue44935] Solaris: enable posix_spawn in subprocess

2021-08-17 Thread Jakub Kulik
Change by Jakub Kulik : -- keywords: +patch pull_requests: +26264 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27795 ___ Python tracker ___

[issue42560] Improve Tkinter Documentation

2021-08-17 Thread Richard Sheridan
Change by Richard Sheridan : -- nosy: +Richard Sheridan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44935] Solaris: enable posix_spawn in subprocess

2021-08-17 Thread Jakub Kulik
New submission from Jakub Kulik : Solaris also provides posix_spawn() syscall that can/should be used in the subprocess module to spawn new processes. -- components: Library (Lib) messages: 399750 nosy: kulikjak priority: normal severity: normal status: open title: Solaris: enable

[issue42035] [C API] PyType_GetSlot cannot get tp_name

2021-08-17 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 3e2c643ae0b21f9e596bfd9c8ec99ca546ea8d0f by Hai Shi in branch 'main': bpo-42035: Add PyType_GetQualName() to get a type's qualified name. (GH-27551) https://github.com/python/cpython/commit/3e2c643ae0b21f9e596bfd9c8ec99ca546ea8d0f --

[issue44050] [subinterpreters] _PyImport_FixupExtensionObject() regression in Python 3.9

2021-08-17 Thread hai shi
hai shi added the comment: > Maybe the old behavior was better: if an extension uses the old API, share > its state between all interpreters. +1. I create PR-27794, which use `def->m_slots` to identify the extension module created from `PyModule_Create()` or not. cc @petr --

  1   2   >