[issue40464] functools.singledispatch doesn't verify annotation is on FIRST parameter

2020-05-01 Thread Dutcho
New submission from Dutcho : >From Python 3.7, `functools.singledispatch` makes the `register()` attribute >of the generic function infer the type of the first argument automatically for >functions annotated with types. That's great for DRY. However, in 3.7 and 3.8, no check is made that the

[issue40463] csv.reader split error

2020-05-01 Thread Eric V. Smith
Eric V. Smith added the comment: You should tell us what you're seeing, and what you're expecting. I'm adding the rest of this not because it solves your problem, but because it might help you or someone else troubleshoot this further. Here's a simpler reproducer: import csv lst =

[issue40465] Deprecate the optional *random* argument to random.shuffle()

2020-05-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: +1 -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-05-01 Thread Chris Jerdonek
Chris Jerdonek added the comment: Okay, I was able to get the tests passing on the other platforms. I'm still not sure why Mac and Fedora behaved differently with my original PR. I was able to come up with a simple script that isolated the behavior difference (posted in the PR comments).

[issue40466] asyncio.ensure_future() breaks implicit exception chaining

2020-05-01 Thread Chris Jerdonek
New submission from Chris Jerdonek : This issue is about how if a coroutine is wrapped in a Task with asyncio.ensure_future(), then portions of the exception chain can be lost. Specifically, if you run the following code, then ValueError will be raised with exc.__context__ equal to the

[issue40334] PEP 617: new PEG-based parser

2020-05-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +19152 pull_request: https://github.com/python/cpython/pull/19833 ___ Python tracker ___

[issue40453] Add PyConfig._isolated_interpreter: isolated subinterpreters

2020-05-01 Thread STINNER Victor
STINNER Victor added the comment: TODO * check that spawning a thread is blocked in isolated subinterpreter * block loading C extensions which don't implement PEP 489 in isolated subinterpreter (see https://github.com/python/cpython/pull/19820 comments) --

[issue40453] Add PyConfig._isolated_interpreter: isolated subinterpreters

2020-05-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 252346acd937ddba4845331994b8ff4f90349625 by Victor Stinner in branch 'master': bpo-40453: Add PyConfig._isolated_subinterpreter (GH-19820) https://github.com/python/cpython/commit/252346acd937ddba4845331994b8ff4f90349625 --

[issue40453] Add PyConfig._isolated_interpreter: isolated subinterpreters

2020-05-01 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40465] Deprecate the optional *random* argument to random.shuffle()

2020-05-01 Thread Raymond Hettinger
New submission from Raymond Hettinger : shuffle(x, random=None)⟼shuffle(x) AFAICT, no one ever uses the optional parameter, nor would they have a valid reason to do so. It is an ancient API oddity and is inconsistent with the other methods in the module. I've long been annoyed by it

[issue40462] [easy] undefined name in Lib/test/mock_socket.py

2020-05-01 Thread Furkan Onder
Change by Furkan Onder : -- keywords: +patch nosy: +furkanonder nosy_count: 1.0 -> 2.0 pull_requests: +19151 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19832 ___ Python tracker

[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-05-01 Thread Chris Jerdonek
Chris Jerdonek added the comment: By the way, I just posted a new issue about exception chaining getting suppressed, but this time in an asyncio setting with ensure_future(): https://bugs.python.org/issue40466 I first noticed this issue two or three years ago and raised it on the async-sig

[issue40460] [easy] undefined name in Lib/idlelib/zzdummy.py

2020-05-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, simple typo. I need to look at test_Zzdummy.py to see if it should have been failing with the typo. If this is executed, the end index must be 1 so that the loop never executes. -- ___ Python tracker

[issue40334] PEP 617: new PEG-based parser

2020-05-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Warnings found by pyflakes: Hu, "Lib/test/test_tools/test_c_analyzer/test_parser" has nothing to do with this PR. This looks like Eric Snow's c analyzer for avoiding globals and other stuff for sub interpreters. --

[issue40462] [easy] undefined name in Lib/test/mock_socket.py

2020-05-01 Thread Furkan Onder
Furkan Onder added the comment: Hello, I sent a PR that corrects variable and function names. I'm not sure how to fix it for Lib/test/test_json/test_recursion.py:55:24 so I didn't make any changes. -- ___ Python tracker

[issue40462] [easy] undefined name in Lib/test/mock_socket.py

2020-05-01 Thread miss-islington
miss-islington added the comment: New changeset 719e14d2837520c18398a3e22a36f20c1fe76edf by Furkan Önder in branch 'master': bpo-40462: fix variable and function names (GH-19832) https://github.com/python/cpython/commit/719e14d2837520c18398a3e22a36f20c1fe76edf -- nosy:

[issue40334] PEP 617: new PEG-based parser

2020-05-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 76c1b4d5c5a610c09943e1ee7ae18f1957804730 by Batuhan Taskaya in branch 'master': bpo-40334: Improve column offsets for thrown syntax errors by Pegen (GH-19782)

[issue40467] subprocess: replacement shell on windows with executable="..." arg

2020-05-01 Thread Anish Athalye
New submission from Anish Athalye : On Windows, using subprocess.call() and specifying both shell=True and the executable='...' keyword arguments produces an undesirable result when the specified shell is a POSIX-like shell rather than the standard cmd.exe. I think the documentation is unclear

[issue40334] PEP 617: new PEG-based parser

2020-05-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset b796b3fb48283412d3caf52323c69690e5818d3d by Pablo Galindo in branch 'master': bpo-40334: Simplify type handling in the PEG c_generator (GH-19818) https://github.com/python/cpython/commit/b796b3fb48283412d3caf52323c69690e5818d3d

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-05-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +19153 pull_request: https://github.com/python/cpython/pull/19835 ___ Python tracker ___

[issue32494] Use gdbm_count if possible

2020-05-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 8727664557cd44dcd00612ccba816942e8f885ab by Dong-hee Na in branch 'master': bpo-32494: Use gdbm_count for dbm_length if possible (GH-19814) https://github.com/python/cpython/commit/8727664557cd44dcd00612ccba816942e8f885ab -- nosy:

[issue32494] Use gdbm_count if possible

2020-05-01 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40468] IDLE split "general" into two tabs

2020-05-01 Thread E. Paine
New submission from E. Paine : The proposed change to move some of the content in the "General" tab to a new tab. The need for this has been emphasised As a proof-of-concept, I moved the "Window Preferences" LabelFrame to a new tab titled "Window" (and did the minimum required to get the

[issue40468] IDLE split "general" into two tabs

2020-05-01 Thread E. Paine
Change by E. Paine : Added file: https://bugs.python.org/file49105/font_page_short.png ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40468] IDLE split "general" into two tabs

2020-05-01 Thread E. Paine
Change by E. Paine : Added file: https://bugs.python.org/file49108/general_page_pady_short.png ___ Python tracker ___ ___ Python-bugs-list

[issue40468] IDLE split "general" into two tabs

2020-05-01 Thread E. Paine
Change by E. Paine : Added file: https://bugs.python.org/file49106/general_page.png ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40468] IDLE split "general" into two tabs

2020-05-01 Thread E. Paine
Change by E. Paine : Added file: https://bugs.python.org/file49107/general_page_pady.png ___ Python tracker ___ ___ Python-bugs-list

[issue40468] IDLE split "general" into two tabs

2020-05-01 Thread E. Paine
Change by E. Paine : Added file: https://bugs.python.org/file49109/general_page_short.png ___ Python tracker ___ ___ Python-bugs-list

[issue40468] IDLE split "general" into two tabs

2020-05-01 Thread E. Paine
Change by E. Paine : Added file: https://bugs.python.org/file49110/window_page.png ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40434] Update of reasoning why there is no case statement

2020-05-01 Thread Ama Aje My Fren
Ama Aje My Fren added the comment: the statement initially said that there was _no consensus yet on how to do range tests_. This is not true because there is now a decision to not do range tests - that decision is only in PEP 3103 and not in PEP 275 (PEP 275 actually links to PEP 3103 to

[issue40334] PEP 617: new PEG-based parser

2020-05-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: While PR 19786 makes the PEG generator working on 3.6, it fails on 3.7. Seems there are more dependencies on wrong tokenizer. Please don't forget to fix this. -- ___ Python tracker

[issue40462] [easy] undefined name in Lib/test/mock_socket.py

2020-05-01 Thread Dong-hee Na
Dong-hee Na added the comment: @vstinner IMHO we should create backport patch for 3.8 and 3.7 3.8 and 3.7 has same codes for this. https://github.com/python/cpython/blob/3.8/Lib/test/mock_socket.py#L95 -- nosy: +corona10 ___ Python tracker

[issue40408] GenericAlias does not support nested type variables

2020-05-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +19154 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19836 ___ Python tracker

[issue40334] PEP 617: new PEG-based parser

2020-05-01 Thread STINNER Victor
STINNER Victor added the comment: > Hu, "Lib/test/test_tools/test_c_analyzer/test_parser" has nothing to do > with this PR. This looks like Eric Snow's c analyzer for avoiding globals and > other stuff for sub interpreters. Oh sorry. I analyzed dozens of pyflakes warning. When I saw

[issue40334] PEP 617: new PEG-based parser

2020-05-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Seems there are more dependencies on wrong tokenizer. Please don't forget to > fix this. Thanks, Serhiy, will submit a PR soon! -- ___ Python tracker

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-05-01 Thread miss-islington
miss-islington added the comment: New changeset 5055c274c6e4f2bb8025910dedf0ff89f4bdd170 by Pablo Galindo in branch '3.8': [3.8] bpo-39562: Prevent collision of future and compiler flags (GH-19230) (GH-19835) https://github.com/python/cpython/commit/5055c274c6e4f2bb8025910dedf0ff89f4bdd170

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-05-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36825] Make TestCase aware of the command line arguments given to TestProgram

2020-05-01 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Bumping this issue as issue 37873 that wants to add a new -j argument to unittest got some attention lately. This PR makes the Test Cases aware of the command line arguments given to unittest.main() and is needed to add the --pdb argument proposed in issue

[issue40453] Add PyConfig._isolated_interpreter: isolated subinterpreters

2020-05-01 Thread Eric Snow
Change by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40469] TimedRotatingFileHandler rotating on use not time

2020-05-01 Thread Mark Hallett
New submission from Mark Hallett : Using the attached confing ymal file, the log file only rolls if the log file is not written to for over a minute, logging regulary (eg every 30s) prevents the correct rolling of the log. -- files: logging_config.ymal messages: 367849 nosy:

[issue40334] PEP 617: new PEG-based parser

2020-05-01 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset ea7297cf8f1aad4df8921a3d81a75118511afe77 by Pablo Galindo in branch 'master': bpo-40334: unskip test_function_type in test_unparse with the new parser (GH-19837)

[issue40470] Make inspect.signature able to parse format strings.

2020-05-01 Thread Antony Lee
New submission from Antony Lee : It would be nice if inspect.signature was able to understand bound str.format methods, e.g. `inspect.signature("{a} {b}".format) == inspect.signature(lambda *args, a, b, **kwargs: None)` (`*args, **kwargs` are there because str.format ignores additional

[issue40417] PyImport_ReloadModule emits deprecation warning

2020-05-01 Thread Eric Snow
Eric Snow added the comment: Yeah, that looks like an oversight. I've approved your PR. Thanks! -- nosy: +eric.snow ___ Python tracker ___

[issue40334] PEP 617: new PEG-based parser

2020-05-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +19155 pull_request: https://github.com/python/cpython/pull/19837 ___ Python tracker ___

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-05-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 71e6122b4428ae43e868e34db4f072635f58a555 by Pablo Galindo in branch '3.8': bpo-39562: Correctly updated the version section in the what's new document (GH-19838)

[issue40350] modulefinder chokes on numpy - dereferencing None in spec.loader

2020-05-01 Thread Eric Snow
Eric Snow added the comment: Ah, namespace packages. :) Yeah, the code is not taking the "spec.loader is None" case into account. I expect the fix would be to add handling of that case a few lines up in the code, right after handling BuiltinImporter and FrozenImporter. Offhand I'm not

[issue40350] modulefinder chokes on numpy - dereferencing None in spec.loader

2020-05-01 Thread Eric Snow
Change by Eric Snow : -- stage: -> test needed versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40455] GCC 10 compiler warnings

2020-05-01 Thread Mark Dickinson
Mark Dickinson added the comment: I'm fairly sure that that's a false positive for `longobject.c`. Do you know of a non-intrusive way to silence the warning? -- ___ Python tracker

[issue40417] PyImport_ReloadModule emits deprecation warning

2020-05-01 Thread Eric Snow
Eric Snow added the comment: Did you have a need for this to be fixed in 3.8 or earlier? This seems reasonably and simple enough to backport. I suppose someone could be relying on an implicit import of the "imp" module, but that seems highly unlikely and suspect anyway. :) --

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-05-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +19156 pull_request: https://github.com/python/cpython/pull/19838 ___ Python tracker ___

[issue40470] Make inspect.signature able to parse format strings.

2020-05-01 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40334] PEP 617: new PEG-based parser

2020-05-01 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset d955241469c18c946924dba79c18a9ef200391ad by Pablo Galindo in branch 'master': bpo-40334: Correct return value of func_type_comment (GH-19833) https://github.com/python/cpython/commit/d955241469c18c946924dba79c18a9ef200391ad --

[issue40455] GCC 10 compiler warnings

2020-05-01 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40334] PEP 617: new PEG-based parser

2020-05-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset d2baff4301387e232495491f7291903cc1217d21 by Pablo Galindo in branch 'master': bpo-40334: regenerate metaparser as part of regen-all (GH-19854) https://github.com/python/cpython/commit/d2baff4301387e232495491f7291903cc1217d21 --

[issue11102] configure doesn't find "major()" on HP-UX v11.31

2020-05-01 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz nosy_count: 2.0 -> 3.0 pull_requests: +19172 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19856 ___ Python tracker

[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-05-01 Thread Chris Jerdonek
Chris Jerdonek added the comment: Okay, thanks everyone. I think I'll take a look at issue 40466 next. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue40334] PEP 617: new PEG-based parser

2020-05-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +19170 pull_request: https://github.com/python/cpython/pull/19854 ___ Python tracker ___

[issue29753] Ctypes Packing Bitfields Incorrectly - Linux

2020-05-01 Thread Filipe Laíns
Change by Filipe Laíns : -- keywords: +patch pull_requests: +19167 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19850 ___ Python tracker ___

[issue40472] PEG parser disables IDLE Shell input > 2 lines

2020-05-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you Dennis. I was just about to post that after installing 3.8.3rc1 and 3.9.0a6 in a Macbook Air, with identical idlelib code, I confirmed the problem as specific to 3.9 and that $ python3.9 -X oldparser -m idlelib works around the issue. My python

[issue40461] execution of file with pictures doesn't work in command --onefile in pyinstaller

2020-05-01 Thread Ned Deily
Ned Deily added the comment: PyInstaller is a third-party project, not part of the Python Standard Library. I suggest you start with their documentation here: https://pyinstaller.readthedocs.io/en/stable/when-things-go-wrong.html -- nosy: +ned.deily resolution: -> third party

[issue40475] json.JSONEncoder override default method

2020-05-01 Thread xie
New submission from xie : I see an example from here:https://docs.python.org/3/library/json.html --It is about custom method from python object to json string:- import json class ComplexEncoder(json.JSONEncoder): def default(self, obj): print("hi") if isinstance(obj,

[issue36825] Make TestCase aware of the command line arguments given to TestProgram

2020-05-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since test modules can already be run in parallel, #37873 does not seem relevant here. (And I agree with the intent of that.) I would be reluctant to add a mechanism with no current use, so I would not apply absent a decision to add one. -- nosy:

[issue39435] pickle: inconsistent arguments pickle.py vs _pickle.c vs docs

2020-05-01 Thread miss-islington
miss-islington added the comment: New changeset e05828055e5165cc7268ea3bea33adc502e054a1 by Antoine Pitrou in branch '3.8': [3.8] bpo-39435: Fix docs for pickle.loads (GH-18160) (GH-19843) https://github.com/python/cpython/commit/e05828055e5165cc7268ea3bea33adc502e054a1 --

[issue40433] Equality operations between lists and arrays

2020-05-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is not clearly a good idea. Lists and tuples with same contents do not compare equal, although set and frozenset do. I suggest that you post this idea to python-ideas list. -- nosy: +rhettinger, terry.reedy versions: -Python 3.5, Python 3.6,

[issue40474] Code coverage report not entirely accurate

2020-05-01 Thread Lewis Ball
New submission from Lewis Ball : The current reported code coverage stats on codecov.io miss some global statements of modules imported before coveragepy begins. This is documented in the dev guide, and the suggested fix is here:

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

2020-05-01 Thread jack1142
Change by jack1142 : -- nosy: +jack1142 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40459] [easy] undefined names in platform.py

2020-05-01 Thread Dennis Sweeney
Change by Dennis Sweeney : -- keywords: +patch nosy: +Dennis Sweeney nosy_count: 1.0 -> 2.0 pull_requests: +19171 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19855 ___ Python tracker

[issue40334] PEP 617: new PEG-based parser

2020-05-01 Thread Guido van Rossum
Guido van Rossum added the comment: Easy issue: the Python.gram file still has a comment saying something like # Simplified grammar -- ___ Python tracker ___

[issue11102] configure doesn't find "major()" on HP-UX v11.31

2020-05-01 Thread Zackery Spytz
Change by Zackery Spytz : -- versions: +Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list

[issue29753] Ctypes Packing Bitfields Incorrectly - Linux

2020-05-01 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40433] Equality operations between lists and arrays

2020-05-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Terry that this would need to be taken to python-ideas. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue40459] [easy] undefined names in platform.py

2020-05-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue40475] json.JSONEncoder override default method

2020-05-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://docs.python.org/3/library/json.html#json.JSONEncoder > To extend this to recognize other objects, subclass and implement a default() > method with another method that returns a serializable object for o if > possible, otherwise it should

[issue40406] MagicMock __aenter__ should be AsyncMock(return_value=MagicMock())

2020-05-01 Thread Brian Curtin
Brian Curtin added the comment: graingert: Do you have a workaround for this? I'm doing roughly the same thing with an asyncpg connection pool nested with a transaction and am getting nowhere. async with pg_pool.acquire() as conn: async with conn.transaction(): ...

[issue40394] difflib.SequenceMatcher.find_longest_match default arguments

2020-05-01 Thread Lewis Ball
Lewis Ball added the comment: Thanks Tim. Cheers for your support with this :) -- ___ Python tracker ___ ___ Python-bugs-list

[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-05-01 Thread Chris Jerdonek
Chris Jerdonek added the comment: New changeset 02047265eb83a43ba18cc7fee81756f1a1a1f968 by Chris Jerdonek in branch 'master': bpo-29587: Update gen.throw() to chain exceptions (#19823) https://github.com/python/cpython/commit/02047265eb83a43ba18cc7fee81756f1a1a1f968 --

[issue40474] Code coverage report not entirely accurate

2020-05-01 Thread Lewis Ball
Change by Lewis Ball : -- keywords: +patch pull_requests: +19168 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19851 ___ Python tracker ___

[issue40472] IDLE Shell not allowing more than two line inputs

2020-05-01 Thread Dennis Sweeney
Dennis Sweeney added the comment: git bisect says that this was fixed here: commit b94dbd7ac34dc0c79512656eb17f6f07e09fca7a Author: Pablo Galindo Date: Mon Apr 27 18:35:58 2020 +0100 bpo-40334: Support PyPARSE_DONT_IMPLY_DEDENT in the new parser (GH-19736) -- nosy: +Dennis

[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-05-01 Thread Guido van Rossum
Guido van Rossum added the comment: Wow, thanks all! FWIW I agree that ideally things should work with a NULL value... -- --Guido (mobile) -- ___ Python tracker ___

[issue40455] GCC 10 compiler warnings

2020-05-01 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +19169 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19852 ___ Python tracker ___

[issue40406] MagicMock __aenter__ should be AsyncMock(return_value=MagicMock())

2020-05-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: MagicMock object on call returns another MagicMock. AsyncMock object in turn returns a coroutine which has to be awaited. In the report mock.MagicMock().__aenter__() returns an AsyncMock object. Accessing the query attribute will create an

[issue39435] pickle: inconsistent arguments pickle.py vs _pickle.c vs docs

2020-05-01 Thread Antoine Pitrou
Change by Antoine Pitrou : -- pull_requests: +19161 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19843 ___ Python tracker ___

[issue39435] pickle: inconsistent arguments pickle.py vs _pickle.c vs docs

2020-05-01 Thread miss-islington
miss-islington added the comment: New changeset 289842ae820f99908d3a345f1f3b6d4e5b4b97fc by Shantanu in branch 'master': bpo-39435: Fix docs for pickle.loads (GH-18160) https://github.com/python/cpython/commit/289842ae820f99908d3a345f1f3b6d4e5b4b97fc -- nosy: +miss-islington

[issue40471] Grammar typo in issubclass docstring

2020-05-01 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- versions: +Python 3.9 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40458] test_bad_getattr crashes on APPX test

2020-05-01 Thread Steve Dower
Steve Dower added the comment: Also, it was really test_bad_getattr that was crashing. -- title: test_attribute_name_interning crashes on APPX test -> test_bad_getattr crashes on APPX test ___ Python tracker

[issue40471] Grammar typo in issubclass docstring

2020-05-01 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Alex, thanks for reporting this. A PR will be needed to fix those indeed. Regarding argument clinic, the file you will need to change is Python/bltinmodule.c and you can run `make regen-all` to regenerate the other file. There is more information about this

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-05-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The merge is in 3.8 master, so we need to make sure that Łukasz includes this on the 3.8.3 release. Victor sent an email to python-dev already about this issue. If you want to make absolutely sure this happens, maybe send an email directly to Łukasz.

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-05-01 Thread Miro Hrončok
Miro Hrončok added the comment: I just did. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39691] Allow passing Pathlike objects to io.open_code

2020-05-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +19158 pull_request: https://github.com/python/cpython/pull/19840 ___ Python tracker

[issue40471] Grammar typo in issubclass docstring

2020-05-01 Thread alexpovel
Change by alexpovel : -- keywords: +patch pull_requests: +19165 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19847 ___ Python tracker ___

[issue40458] test_bad_getattr crashes on APPX test

2020-05-01 Thread STINNER Victor
STINNER Victor added the comment: > Also, it was really test_bad_getattr that was crashing. Ah, an old friend. It seems like an issue with the maximum stack size. Here are my notes: https://pythondev.readthedocs.io/unstable_tests.html#unlimited-recursion Either reduce Python maximum stack

[issue40334] PEP 617: new PEG-based parser

2020-05-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +19166 pull_request: https://github.com/python/cpython/pull/19849 ___ Python tracker ___

[issue40473] Universal newline not recognizing Mac newline (CR) when using CSV on Windows 10

2020-05-01 Thread Larry Kuhn
New submission from Larry Kuhn : Running open with or without rU generates this message when reading a CSV file with CR line endings: DeprecationWarning: 'U' mode is deprecated with open(csvfile, mode='rU', newline='') as cf: Traceback (most recent call last): File

[issue40417] PyImport_ReloadModule emits deprecation warning

2020-05-01 Thread miss-islington
miss-islington added the comment: New changeset f40bd466bf14029e2687e36e965875adf9d4be1a by Robert Rouhani in branch 'master': bpo-40417: Fix deprecation warning in PyImport_ReloadModule (GH-19750) https://github.com/python/cpython/commit/f40bd466bf14029e2687e36e965875adf9d4be1a --

[issue40412] inittab_copy not set to NULL after free, can lead to crashes when running multiple interpreters in a single process

2020-05-01 Thread miss-islington
miss-islington added the comment: New changeset 1205afb3e10194fe22fa76385abb7e522144eb29 by Miss Islington (bot) in branch '3.8': bpo-40412: Nullify inittab_copy during finalization (GH-19746) https://github.com/python/cpython/commit/1205afb3e10194fe22fa76385abb7e522144eb29 --

[issue40416] Calling TextIOWrapper.tell() in the middle of reading a gb2312-encoded file causes UnicodeDecodeError

2020-05-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Change the line to 'print(f.tell())'. Are any lines printed before the error? -- ___ Python tracker ___

[issue39691] Allow passing Pathlike objects to io.open_code

2020-05-01 Thread Steve Dower
Steve Dower added the comment: New changeset 831d58d7865cb98fa09227dc614f4f3ce6af968b by Shantanu in branch 'master': bpo-39691: Clarify io.open_code behavior (GH-19824) https://github.com/python/cpython/commit/831d58d7865cb98fa09227dc614f4f3ce6af968b --

[issue39691] Allow passing Pathlike objects to io.open_code

2020-05-01 Thread miss-islington
miss-islington added the comment: New changeset c9d7d32b6dc6140f7fcbf1ae1120df6d59fc28d0 by Miss Islington (bot) in branch '3.8': bpo-39691: Clarify io.open_code behavior (GH-19824) https://github.com/python/cpython/commit/c9d7d32b6dc6140f7fcbf1ae1120df6d59fc28d0 --

[issue40471] Grammar typo in issubclass docstring

2020-05-01 Thread alexpovel
New submission from alexpovel : Running `python -c "help(issubclass)"` will output: > Help on built-in function issubclass in module builtins: > > issubclass(cls, class_or_tuple, /) > Return whether 'cls' is a derived from another class or is the same class. > > A

[issue40393] Auto-response from Python Help points to Python 2 reference

2020-05-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you for noticing. As of this moment, http://www.python.org/about/help/ has 3 links to the https://github.com/python/pydotorg/issue repository and issue tracker, which contains the website. Website issues (as opposed to docs.python.org) should be

  1   2   >