[issue35753] Importing call from unittest.mock directly causes ValueError

2021-03-14 Thread Alfred Perlstein
Alfred Perlstein added the comment: I have a patch here that fixes this: https://github.com/python/cpython/pull/22981 It simply swallows the unwrap exception making doctest immune to such buggy objects. Can someone help it get reviewed please? -- __

[issue43496] Save As dialog in IDLE doesn't accept keyboard shortcuts on MacOS

2021-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: The menu items and Windows shortcuts work on Windows 10. Several shortcuts and some menu items do not work on macOS. The latter is true for the undo and clipboard items at the top of the Edit menu. The shortcuts do cause 'Edit' to flash, indicating that

[issue43199] FAQ about goto lacks answer

2021-03-14 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.6, Python 3.7 ___ Python tracker ___ ___

[issue43199] FAQ about goto lacks answer

2021-03-14 Thread miss-islington
miss-islington added the comment: New changeset 59f2741c4a1a53d4122d2cb512337f4b88619de9 by Miss Islington (bot) in branch '3.8': bpo-43199: Briefly explain why no goto (GH-24852) https://github.com/python/cpython/commit/59f2741c4a1a53d4122d2cb512337f4b88619de9 -- _

[issue43199] FAQ about goto lacks answer

2021-03-14 Thread miss-islington
miss-islington added the comment: New changeset c3f0c3a9c7aa213a463c5928d33fd4049060 by Miss Islington (bot) in branch '3.9': bpo-43199: Briefly explain why no goto (GH-24852) https://github.com/python/cpython/commit/c3f0c3a9c7aa213a463c5928d33fd4049060 -- _

[issue32592] Drop support of Windows Vista and 7 in Python 3.9

2021-03-14 Thread C.A.M. Gerlach
C.A.M. Gerlach added the comment: Sorry I never got around to this, I was planning on it and then life and COVID intervened. I can give it another look now to get it in before the 3.10 feature freeze (since I at least documented in detail what each change should be, so it should be relativel

[issue43482] Py_AddPendingCall Inserted Function Never Called in 3.8, works in 3.6

2021-03-14 Thread Chris Morton
Change by Chris Morton : -- title: Py_AddPendingCall Function Never Called in 3.8, works in 3.6 -> Py_AddPendingCall Inserted Function Never Called in 3.8, works in 3.6 ___ Python tracker ___

[issue43482] Py_AddPendingCall Function Never Called in 3.8, works in 3.6

2021-03-14 Thread Chris Morton
Chris Morton added the comment: I should add that Py_AddPendingCall returns 0 in both cases. -- title: PyAddPendingCall Function Never Called in 3.8, works in 3.6 -> Py_AddPendingCall Function Never Called in 3.8, works in 3.6 type: -> behavior __

[issue32592] Drop support of Windows Vista and 7 in Python 3.9

2021-03-14 Thread Eryk Sun
Eryk Sun added the comment: PEP 11 says that "[a] new feature release X.Y.0 will support all Windows releases whose extended support phase is not yet expired". There was no such thing as Extended Security Updates (ESU) when that provision was accepted. As defined by PEP 11, extended support

[issue43475] Worst-case behaviour of hash collision with float NaN

2021-03-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: > The performance thoughts were motivated by the idea of > making NaN a singleton: adding a check to > PyFloat_FromDouble would mean that almost every operation > that produced a float would have to pass through that check. It may suffice to move the check

[issue43428] Sync importlib_metadata enhancements through 3.7.

2021-03-14 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 35d5068928ab5485e5f28b60b1e33062bc2c46cc by Jason R. Coombs in branch 'master': bpo-43428: Improve documentation for importlib.metadata changes. (GH-24858) https://github.com/python/cpython/commit/35d5068928ab5485e5f28b60b1e33062bc2c46cc

[issue32592] Drop support of Windows Vista and 7 in Python 3.9

2021-03-14 Thread DMI-1407
DMI-1407 added the comment: Is a Windows Version dropped on "normal" end of life or when the extended support ends? Windows 7 extended support ends in 2023 (april i think). Source: https://docs.microsoft.com/en-us/troubleshoot/windows-client/windows-7-eos-faq/windows-7-extended-security-updat

[issue43496] Save As dialog in IDLE doesn't accept keyboard shortcuts on MacOS

2021-03-14 Thread Jacob Walls
New submission from Jacob Walls : Cmd-A to select all or Cmd-Z to undo, etc., have no effect when typing in the "Save As:" or "Tags:" fields of the native Save As... dialog on MacOS. Cmd-R, curiously, opens a Finder window. IDLE dialogs such as Search behave as expected (Cmd-A selects all).

[issue42917] Block stack size for frame objects should be dynamically sizable

2021-03-14 Thread Guido van Rossum
Guido van Rossum added the comment: I don't see what putting the limit back in this PR would give, but I do question that we need more block nesting, and this PR causes a lot of code churn (including a new API to create frames). It would be more convincing if you could actually point to a co

[issue27929] asyncio.AbstractEventLoop.sock_connect broken for AF_BLUETOOTH

2021-03-14 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue42917] Block stack size for frame objects should be dynamically sizable

2021-03-14 Thread Thomas Anderson
Thomas Anderson added the comment: IIRC, some transpilers for functional languages create deeply nested code. In particular for things like haskell's do notation. Anyway, when I wrote the PR, it was initially to reduce the frame size. Then once I had dynamic block stack sizing working, I r

[issue43495] Missing frame block push in compiler_async_comprehension_generator()

2021-03-14 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +23626 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24865 ___ Python tracker _

[issue43495] Missing frame block push in compiler_async_comprehension_generator()

2021-03-14 Thread Thomas Anderson
New submission from Thomas Anderson : The runtime pushes a frame block in SETUP_FINALLY, so the compiler needs to account for that, otherwise the runtime block stack may overflow. -- components: Interpreter Core messages: 388696 nosy: tomkpz priority: normal severity: normal status: op

[issue37820] Unnecessary URL scheme exists to allow 'URL: reading file in urllib

2021-03-14 Thread Steve Stagg
Steve Stagg added the comment: This appears to have been fixed in python 3: rx.py: import urllib.request print(urllib.request.urlopen('URL:/etc/passwd').read()[:30]) $> python rx.py Traceback (most recent call last): File "rx.py", line 2, in print(urllib.request.urlopen('URL:/etc/pass

[issue27929] asyncio.AbstractEventLoop.sock_connect broken for AF_BLUETOOTH

2021-03-14 Thread Larry Hastings
Change by Larry Hastings : -- nosy: -larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue27929] asyncio.AbstractEventLoop.sock_connect broken for AF_BLUETOOTH

2021-03-14 Thread Paul Weiss
Change by Paul Weiss : -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue1283110] Give __len__() advice for "don't know"

2021-03-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Looking at the patch years later, I'm thinking that this isn't needed or helpful. Not needed because users haven't reported any misunderstandings in the interim. Not helpful because the text looks forbidding and impenetrable, too much for a simple metho

[issue42914] pprint numbers with underscore

2021-03-14 Thread Stéphane Blondon
Stéphane Blondon added the comment: Thank you Felipe for the news! :) I have committed a PR about this issue. Two remarks: - I changed the proposed implementation from 'format(integer, '_d')' to '{:_d}.format(integer)' because the first way raised an exception. (The `format` function was not

[issue42914] pprint numbers with underscore

2021-03-14 Thread Stéphane Blondon
Change by Stéphane Blondon : -- keywords: +patch pull_requests: +23624 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24864 ___ Python tracker ___

[issue43199] FAQ about goto lacks answer

2021-03-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +23623 pull_request: https://github.com/python/cpython/pull/24863 ___ Python tracker ___ __

[issue43199] FAQ about goto lacks answer

2021-03-14 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +23622 pull_request: https://github.com/python/cpython/pull/24862 ___ Python tracker _

[issue43199] FAQ about goto lacks answer

2021-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 5e29021a5eb10baa9147fd977cab82fa3f652bf0 by Terry Jan Reedy in branch 'master': bpo-43199: Briefly explain why no goto (GH-24852) https://github.com/python/cpython/commit/5e29021a5eb10baa9147fd977cab82fa3f652bf0 -- ___

[issue32822] finally block doesn't re-raise exception if return statement exists inside

2021-03-14 Thread Irit Katriel
Irit Katriel added the comment: The doc has a lot more detail now: https://docs.python.org/3.10/tutorial/errors.html#defining-clean-up-actions but this point is still not mentioned. -- keywords: +easy nosy: +iritkatriel versions: +Python 3.10, Python 3.9 -Python 2.7, Python 3.6, Pyth

[issue43494] Minor changes to Objects/lnotab_notes.txt

2021-03-14 Thread Skip Montanaro
Skip Montanaro added the comment: When I submitted the PR one check failed with this error: No news entry in Misc/NEWS.d/next/ or "skip news" label found I'd be surprised if this was important enough for a news entry, and I'm pretty sure I can't add a "skip news" label. --

[issue43494] Minor changes to Objects/lnotab_notes.txt

2021-03-14 Thread Skip Montanaro
Change by Skip Montanaro : -- keywords: +patch pull_requests: +23621 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24861 ___ Python tracker ___ _

[issue43494] Minor changes to Objects/lnotab_notes.txt

2021-03-14 Thread Skip Montanaro
New submission from Skip Montanaro : For the VM work I'm doing I need to adapt to Mark's new line number table format. (I stalled for several months, hence this rather late report.) As I was reading Objects/lnotab_notes.txt I noticed a couple typos, fixed those and threw in a couple other min

[issue43493] EmailMessage mis-folding headers of a certain length

2021-03-14 Thread Mike Glover
New submission from Mike Glover : The attached file demonstrates the incorrect folding behavior I'm seeing. Header lines of a certain total length get folded after the colon following the header name, which is not valid RFC. Slightly longer or shorter lines are folded correctly. Interestin

[issue42686] include built-in Math functions in SQLite to 3.35.0 of march 2021

2021-03-14 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: See bpo-43492 for upgrading the macOS & Windows installers to SQLite 3.35.0. -- ___ Python tracker ___ __

[issue43492] Upgrade to SQLite 3.35.0 in macOS and Windows

2021-03-14 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : SQLite 3.35.0 was released a couple of days ago: https://www.sqlite.org/releaselog/3_35_0.html Suggesting to hold off for a week or two, to see if a bug-fix release happens. -- components: Windows, macOS messages: 388685 nosy: erlendaasland

[issue43422] Revert _decimal C API changes

2021-03-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: FWIW, I have the roles "User,Developer,Coordinator" according to my user page. You (Terry) have the roles "User,Developer". Perhaps the "Coordinator" role explains I see things you don't see (it's a better explanation than believing I am a psychic :-D). -

[issue43422] Revert _decimal C API changes

2021-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: OK. I see no structural difference between his page and yours, https://bugs.python.org/user2040. No 'Roles' field, no 'User' entry, on either page, nor on mine. So you must be an admin who sees extra info. In any case, the last part of my comment stands.

[issue18232] running a suite with no tests is not an error

2021-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: With more experience, I agree that 0/0 tests passing should not be a pass. -- ___ Python tracker ___

[issue1283110] Give __len__() advice for "don't know"

2021-03-14 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ ___

[issue43422] Revert _decimal C API changes

2021-03-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Terry, the list of roles in https://bugs.python.org/user11089 is empty, which I take it to mean that Stefan doesn't have any access rights on this issue tracker (except to read issues). Other users all seem to have the "User" role. -- _

[issue29982] tempfile.TemporaryDirectory fails to delete itself

2021-03-14 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue29982] tempfile.TemporaryDirectory fails to delete itself

2021-03-14 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset bd2fa3c416ffe6107b500a2180fa1764645c0a61 by CAM Gerlach in branch 'master': bpo-29982: Add "ignore_cleanup_errors" param to tempfile.TemporaryDirectory() (GH-24793) https://github.com/python/cpython/commit/bd2fa3c416ffe6107b500a2180fa1764645c

[issue42246] Implement PEP 626 -- Precise line numbers for debugging

2021-03-14 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +23620 pull_request: https://github.com/python/cpython/pull/24860 ___ Python tracker ___

[issue31472] "Emulating callable objects" documentation misleading

2021-03-14 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue18232] running a suite with no tests is not an error

2021-03-14 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue39316] settrace skips lines when chaining methods without arguments

2021-03-14 Thread Mark Shannon
Mark Shannon added the comment: New changeset d48848c83e0f3e41b65c8f741f3fb6dbce5b9c29 by Mark Shannon in branch 'master': bpo-39316: Make sure that attribute accesses and stores, including method calls, conform to PEP 626. (GH-24859) https://github.com/python/cpython/commit/d48848c83e0f3e41

[issue19359] reversed() does not work with weakref.proxy of sequences

2021-03-14 Thread Irit Katriel
Irit Katriel added the comment: On 3.10 the reversed_proxy_failure.py script fails with Traceback (most recent call last): File "/Users/iritkatriel/src/cpython/tmp.py", line 18, in reversed(weakref.proxy(foo)) # TypeError AttributeError: 'Foo' object has no attribute '__reversed__' --

[issue18767] csv documentation does not note default quote constant

2021-03-14 Thread Irit Katriel
Change by Irit Katriel : -- components: +Library (Lib) keywords: +easy versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker __

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2021-03-14 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy versions: +Python 3.10, Python 3.9 -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ _

[issue31472] "Emulating callable objects" documentation misleading

2021-03-14 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker _

[issue43489] Can't install, nothing to install

2021-03-14 Thread Adrian LeDeaux
Adrian LeDeaux added the comment: Alright! Thanks for the help! I will try that. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue39316] settrace skips lines when chaining methods without arguments

2021-03-14 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +23619 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24859 ___ Python tracker ___ ___

[issue43491] Windows filepath bug

2021-03-14 Thread parsa mpsh
parsa mpsh added the comment: Yes. i checked it more. looks problem was from other thing, not the path. -- ___ Python tracker ___ _

[issue43428] Sync importlib_metadata enhancements through 3.7.

2021-03-14 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +23618 pull_request: https://github.com/python/cpython/pull/24858 ___ Python tracker ___ _

[issue43491] Windows filepath bug

2021-03-14 Thread Eryk Sun
Eryk Sun added the comment: "C:\some\path/some/file.txt" is a valid file path. The Windows file API normalizes most paths, except for verbatim paths that start with exactly "\\?\". Path normalization includes replacing forward slashes with backslashes. If you provide the complete traceback,

[issue43491] Windows filepath bug

2021-03-14 Thread parsa mpsh
Change by parsa mpsh : -- components: +IO ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue43491] Windows filepath bug

2021-03-14 Thread parsa mpsh
parsa mpsh added the comment: I think this bug should be fixed by converting all of `/`s to `\` in file paths automatic **When os is windows**. -- ___ Python tracker ___

[issue43491] Windows filepath bug

2021-03-14 Thread parsa mpsh
parsa mpsh added the comment: Update: i only tested this bug in `3.6` and `3.7` i'm not sure about newer versions. but i think this bug also is in them. -- ___ Python tracker ___

[issue43491] Windows filepath bug

2021-03-14 Thread parsa mpsh
New submission from parsa mpsh : I was testing my program in github workflow and i detected a bug. i was opening a file in windows: ``` f = open(os.path.dirname(__FILE__) + '/some/file.txt') ``` means the file path will be `C:\some\path/some/file.txt`. but i received OSError. why? because in

[issue43313] feature: support pymalloc for subinterpreters. each subinterpreter has pymalloc_state

2021-03-14 Thread junyixie
junyixie added the comment: https://github.com/python/cpython/pull/24857 -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue43313] feature: support pymalloc for subinterpreters. each subinterpreter has pymalloc_state

2021-03-14 Thread junyixie
junyixie added the comment: github pr -- keywords: +patch message_count: 2.0 -> 3.0 pull_requests: +23617 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24857 ___ Python tracker ___

[issue18232] running a suite with no tests is not an error

2021-03-14 Thread Michał Górny
Michał Górny added the comment: I'm not convinced we need something that complex here but I think it would make sense to make 'unittest discover' fail when it doesn't discover a single test. As packagers, we've been bitten more than once by packages whose tests suddenly stopped being discove

[issue43313] feature: support pymalloc for subinterpreters. each subinterpreter has pymalloc_state

2021-03-14 Thread junyixie
junyixie added the comment: Made two changes: 1. support pymalloc for subinterpreters. each subinterpreter has pymalloc_state 2. _copy_raw_string api alloc memory use PyMem_RawFree and PyMem_RawMalloc. I extend _xxsubinterpretermodule.c to support call any function in sub interpreter. when

[issue39943] Meta: Clean up various issues in C internals

2021-03-14 Thread miss-islington
miss-islington added the comment: New changeset cf8d6ef9629dc1bffadfcec251a2ffe30d5addaa by Miss Islington (bot) in branch '3.9': bpo-39943: Fix MSVC warnings in sre extension (GH-20508) https://github.com/python/cpython/commit/cf8d6ef9629dc1bffadfcec251a2ffe30d5addaa -- __

[issue39943] Meta: Clean up various issues in C internals

2021-03-14 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +23616 pull_request: https://github.com/python/cpython/pull/24856 ___ Python tracker _

[issue39316] settrace skips lines when chaining methods without arguments

2021-03-14 Thread Alex Hall
Alex Hall added the comment: I just came across https://www.python.org/dev/peps/pep-0626/, seems like this would need to be fixed to satisfy the PEP, but on the latest CPython it's not: ``` ➜ ~ python3.10 ~/Downloads/trace_skipping_lines_bug.py 14 slug = "doing_the_thing" 15 print(slug 16

[issue39316] settrace skips lines when chaining methods without arguments

2021-03-14 Thread Alex Hall
Change by Alex Hall : -- nosy: +Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue29657] os.symlink: FileExistsError shows wrong message

2021-03-14 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue43075] ReDoS in urllib.request

2021-03-14 Thread yeting li
yeting li added the comment: Sorry for the delay. I analyzed the performance of the current version '(?:^|,)[ \t]*([^ \t]+)[ \t]+' and the fixed version '(?:^|,)[ \t]*([^ \t,]+)[ \t]+'. I ran the following HTTP header ten times: header = '' + ',' * (10 ** 5) The current version takes about