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

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

[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 "d:/Larry/Desktop/Python/

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

2020-05-01 Thread Miro Hrončok
Miro Hrončok added the comment: Fedora packagers report that this problem is now showing up in 3.8.3rc1. What can be done to ensure that 3.8.3 final will contain the fix? -- nosy: +hroncok ___ Python tracker ___

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

2020-05-01 Thread Larry Kuhn
Change by Larry Kuhn : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue40398] typing.get_args(Callable) fails

2020-05-01 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: get_args(Callable) fails -> typing.get_args(Callable) fails ___ Python tracker ___ ___ Python-b

[issue40334] PEP 617: new PEG-based parser

2020-05-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 7ba08ff7b41911f972d0750e068a2270e0dbd68f by Pablo Galindo in branch 'master': bpo-40334: use the TOKENS file when checking dangling rules (GH-19849) https://github.com/python/cpython/commit/7ba08ff7b41911f972d0750e068a2270e0dbd68f -

[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 Yury Selivanov
Change by Yury Selivanov : -- nosy: -yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue40414] Incorrect mouse and keyboard mapping

2020-05-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sequences 'a' and '1' are unambiguously interpreted as abbreviating '' and '', and similarly for any other printable ascii char. '' is interpreted also as '', but there is no reason to add the brackets. In any case, binding a specific printable key is fair

[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: OS? in case it matters -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing

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

[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: https://mail.p

[issue40426] Unable to use lowercase hexadecimal digits for percent encoding

2020-05-01 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue40398] typing.get_args(Callable) fails

2020-05-01 Thread Guido van Rossum
Guido van Rossum added the comment: @Serhiy is this fixed by PR 19720? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

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

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

[issue40449] multi-line f-string, syntaxerror points to wrong line

2020-05-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: There have been issues about SyntaxError line pointing. Someone should test with 3.9.0xx to see if fixed but not backported (I cannot today), or search for existing error. -- nosy: +terry.reedy ___ Python tracker

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

[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(): ...

[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: https://mail.python.o

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

[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: https://devguide.python.org/coverage/#coverage-results-for-modu

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

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

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

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

[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: https://mail.python.o

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

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

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

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

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

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

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

[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

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

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

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

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

2020-05-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 531d1e541284bfd7944f8c66a5e8c3c3234afaff by Serhiy Storchaka in branch 'master': bpo-39435: Make the first argument of pickle.loads() positional-only. (GH-19846) https://github.com/python/cpython/commit/531d1e541284bfd7944f8c66a5e8c3c3234afaff

[issue40398] typing.get_args(Callable) fails

2020-05-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +19173 pull_request: https://github.com/python/cpython/pull/19857 ___ Python tracker ___

[issue40475] json.JSONEncoder override default method

2020-05-01 Thread xie
xie added the comment: I got it,Thank you! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue40398] typing.get_args(Callable) fails

2020-05-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, I have not closed this issue yet because it required a manual backporting to 3.8. -- ___ Python tracker ___ _

<    1   2