[issue44618] inspect.signature does not work for datetime classes

2021-07-13 Thread Mauricio Villegas
New submission from Mauricio Villegas : Classes in the datetime module are implemented using __new__ with some named parameters. I want to be able to inspect their signature to know which are the names of the parameters it accepts like it works for most classes. However, this does not work fo

[issue44618] inspect.signature does not work for datetime classes

2021-07-13 Thread Mauricio Villegas
Change by Mauricio Villegas : -- components: +Library (Lib) type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue44472] ltrace functionality doesn't work if there is an exception set

2021-07-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 4a0f1df9527f7d67064d33f5366476b3c93dc86c by Miss Islington (bot) in branch '3.10': bpo-44472: Fix ltrace functionality when exceptions are raised (GH-26822) (GH-26830) https://github.com/python/cpython/commit/4a0f1df9527f7d67064d33f53664

[issue44606] Discrepancy between isinstance() and issubclass() for union types

2021-07-13 Thread Ken Jin
Ken Jin added the comment: @Serhiy > 2. Different handling of virtual subclasses: This looks like a bug. I think the union form of isinstance/issubclass should have the same behavior as the tuple form. We promise checking of virtual classes in the docs for union types: https://docs.python.or

[issue44619] Bug in Python 3.7.10

2021-07-13 Thread Prakash
New submission from Prakash : Hello - I wish to bring to your kind notice a bug in Python. Given any matrix X. While trying to compute the CoVariance matrix of that matrix X, Python does NOT compute the CoVarianceof the given matrix X. Instead, Python comptes the CoVariance of the Transpose

[issue44619] Bug in Python 3.7.10

2021-07-13 Thread Steven D'Aprano
Steven D'Aprano added the comment: numpy is a third-party library, you will have to report it to them, we can't do anything about it. -- nosy: +steven.daprano resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker

[issue44620] UUIDv1 is not RFC 4122 compliant

2021-07-13 Thread László Görög
New submission from László Görög : Section 4.1.5 of RFC 4122 says the following about Clock Sequence: If the clock is set backwards, or might have been set backwards (e.g., while the system was powered off), and the UUID generator can not be sure that no UUIDs were generated with timest

[issue44621] Python 3.9 traces async for/else incorrectly

2021-07-13 Thread Ned Batchelder
New submission from Ned Batchelder : Python 3.9 traces this code incorrectly. Note: 3.8 and 3.10 are correct, only 3.9 gets it wrong. --- import linecache, sys def trace(frame, event, arg): # The weird globals here is to avoid a NameError on shutdown...

[issue44621] Python 3.9 traces async for/else incorrectly

2021-07-13 Thread Ned Batchelder
Ned Batchelder added the comment: The corresponding coverage.py issue: https://github.com/nedbat/coveragepy/issues/1158 -- ___ Python tracker ___

[issue44602] Issue with get_build_version in msvc9compiler.py in distutils

2021-07-13 Thread Steve Dower
Steve Dower added the comment: msvc9compiler.py has been deprecated ever since _msvccompiler.py was introduced, so no code should be using it (it was always internal anyway). And now all of distutils is also deprecated, so you probably need to report this to the setuptools project at https:/

[issue44622] async-for loops are traced incorrectly in Python 3.10

2021-07-13 Thread Ned Batchelder
New submission from Ned Batchelder : In Python 3.10, the traces at the end of an async-for loop are incorrect and different than at the end of a for-loop. -- import linecache, sys def trace(frame, event, arg): # The weird globals here is to avoid a NameError on

[issue43948] sysconfig's osx_framework_user puts headers in different locations from distutils

2021-07-13 Thread Łukasz Langa
Łukasz Langa added the comment: The current behavior has been there since 2012 at least. Kind of suspicious we haven't tripped over it before. -- nosy: +lukasz.langa ___ Python tracker __

[issue44616] Incorrect tracing for "except" with variable

2021-07-13 Thread Mark Shannon
Mark Shannon added the comment: Thanks Ned, you're doing a fantastic job of finding these issues. Sorry for keeping you so busy with this. This one was a latent bug, exposed by fixing https://bugs.python.org/issue44570. -- ___ Python tracker

[issue44570] 3.10.0b3 doesn't trace line events for return in some cases

2021-07-13 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +25653 pull_request: https://github.com/python/cpython/pull/27109 ___ Python tracker ___

[issue44614] Broken Pipe in Server of Manager in multiprocessing when finalizing, sometimes

2021-07-13 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch nosy: +Mark.Shannon nosy_count: 1.0 -> 2.0 pull_requests: +25654 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27109 ___ Python tracker

[issue44616] Incorrect tracing for "except" with variable

2021-07-13 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +25655 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27109 ___ Python tracker ___ ___

[issue44614] Broken Pipe in Server of Manager in multiprocessing when finalizing, sometimes

2021-07-13 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: -25654 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue44570] 3.10.0b3 doesn't trace line events for return in some cases

2021-07-13 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: -25653 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35113] inspect.getsource returns incorrect source for classes when class definition is part of multiline strings

2021-07-13 Thread Andrei Kulakov
Change by Andrei Kulakov : -- nosy: +andrei.avk nosy_count: 6.0 -> 7.0 pull_requests: +25656 pull_request: https://github.com/python/cpython/pull/27073 ___ Python tracker ___ _

[issue35113] inspect.getsource returns incorrect source for classes when class definition is part of multiline strings

2021-07-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset d4a5f0b659a2b8f206cfbdfd37fc36aedf77a71f by andrei kulakov in branch 'main': bpo-35113: clean up duplicate import and comment (#27073) https://github.com/python/cpython/commit/d4a5f0b659a2b8f206cfbdfd37fc36aedf77a71f -- nosy: +lukasz.lang

[issue38741] Definition of multiple ']' in header configparser

2021-07-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 2924bb1a566977efd45f335d6a94cd84d8047edf by jsnklln in branch 'main': bpo-38741: Definition of multiple ']' in header configparser (GH-17129) https://github.com/python/cpython/commit/2924bb1a566977efd45f335d6a94cd84d8047edf -- __

[issue38741] Definition of multiple ']' in header configparser

2021-07-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +25657 pull_request: https://github.com/python/cpython/pull/27110 ___ Python tracker _

[issue44514] configparser.rst & bz2.rst leave temp files after 'make doctest'

2021-07-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 48a5aa7f128caf5a46e4326c1fd285cd5fc8e59d by Kevin Follstad in branch 'main': bpo-44514: Add doctest testcleanup for configparser and bz2 (#26909) https://github.com/python/cpython/commit/48a5aa7f128caf5a46e4326c1fd285cd5fc8e59d -- nosy: +

[issue44514] configparser.rst & bz2.rst leave temp files after 'make doctest'

2021-07-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +25659 pull_request: https://github.com/python/cpython/pull/27112 ___ Python tracker ___ __

[issue44514] configparser.rst & bz2.rst leave temp files after 'make doctest'

2021-07-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +25658 pull_request: https://github.com/python/cpython/pull/27111 ___ Python tracker _

[issue43126] IOBase.readlines(0) behaviour is inconsistent with documentation

2021-07-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +25660 pull_request: https://github.com/python/cpython/pull/27113 ___ Python tracker _

[issue43126] IOBase.readlines(0) behaviour is inconsistent with documentation

2021-07-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +25661 pull_request: https://github.com/python/cpython/pull/27114 ___ Python tracker ___ __

[issue43126] IOBase.readlines(0) behaviour is inconsistent with documentation

2021-07-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 3b5b99da4b256a31933112f4a2385386149c19e1 by andrei kulakov in branch 'main': bpo-43126: Expand docs on io.IOBase.readlines() method (#27061) https://github.com/python/cpython/commit/3b5b99da4b256a31933112f4a2385386149c19e1 -- nosy: +lukas

[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-13 Thread Paul Ganssle
Paul Ganssle added the comment: > In fact, you're proposing to use exit as a keyword, but lying about it to the > users. If it were really so important, then it _should_ be a keyword, and at > least I'd know that I can't use it for my variables anymore. (It's not the > first time such a thing

[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-13 Thread Paul Ganssle
Paul Ganssle added the comment: At this point I think we should probably start a thread on python-dev to see how people feel about it. I'd be happy to author or co-author a PEP for this if need be. -- ___ Python tracker

[issue44606] Discrepancy between isinstance() and issubclass() for union types

2021-07-13 Thread Guido van Rossum
Guido van Rossum added the comment: Converting None to type(None) is fine, as long as the str() /repr() converts it back, e.g. repr(int | None) should print just that, not NoneType.-- --Guido (mobile) -- ___ Python tracker

[issue44514] configparser.rst & bz2.rst leave temp files after 'make doctest'

2021-07-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 105e6cd67cc793c971b3e83daa87d36516fcba28 by Miss Islington (bot) in branch '3.9': bpo-44514: Add doctest testcleanup for configparser and bz2 (GH-26909) (#27111) https://github.com/python/cpython/commit/105e6cd67cc793c971b3e83daa87d36516fcba28 --

[issue44514] configparser.rst & bz2.rst leave temp files after 'make doctest'

2021-07-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset f514addfbc637a42549ddc422b35b6caad2a4363 by Miss Islington (bot) in branch '3.10': bpo-44514: Add doctest testcleanup for configparser and bz2 (GH-26909) (GH-27112) https://github.com/python/cpython/commit/f514addfbc637a42549ddc422b35b6caad2a4363

[issue44514] configparser.rst & bz2.rst leave temp files after 'make doctest'

2021-07-13 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue38741] Definition of multiple ']' in header configparser

2021-07-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 1cc6769e4146951d47528a97e56ba1e8e9ee7fc1 by Miss Islington (bot) in branch '3.10': bpo-38741: Definition of multiple ']' in header configparser (GH-17129) (#27110) https://github.com/python/cpython/commit/1cc6769e4146951d47528a97e56ba1e8e9ee7fc1

[issue44514] configparser.rst & bz2.rst leave temp files after 'make doctest'

2021-07-13 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Kevin! ✨ 🍰 ✨ -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue38741] Definition of multiple ']' in header configparser

2021-07-13 Thread Łukasz Langa
Łukasz Langa added the comment: Since I got to this only now, we can include the fix in main (3.11) and 3.10. It's too late in the cycle for 3.9. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 -Python 3.9

[issue43126] IOBase.readlines(0) behaviour is inconsistent with documentation

2021-07-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 9b369c952cbefb064dda6cb781e66cc1b793fffa by Miss Islington (bot) in branch '3.10': bpo-43126: Expand docs on io.IOBase.readlines() method (GH-27061) (GH-27113) https://github.com/python/cpython/commit/9b369c952cbefb064dda6cb781e66cc1b793fffa

[issue43126] IOBase.readlines(0) behaviour is inconsistent with documentation

2021-07-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset a3d20bfee38c71df88d69064d47fe98a1d59e624 by Miss Islington (bot) in branch '3.9': bpo-43126: Expand docs on io.IOBase.readlines() method (GH-27061) (#27114) https://github.com/python/cpython/commit/a3d20bfee38c71df88d69064d47fe98a1d59e624 ---

[issue43126] IOBase.readlines(0) behaviour is inconsistent with documentation

2021-07-13 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11 ___ Python tracker ___ _

[issue43126] IOBase.readlines(0) behaviour is inconsistent with documentation

2021-07-13 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Andrei! ✨ 🍰 ✨ -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue44623] help(open('/dev/zero').writelines) gives no help

2021-07-13 Thread Jonathan Fine
New submission from Jonathan Fine : On Linux >>> help(open('/dev/zero').writelines) gives However https://docs.python.org/3/library/io.html#io.IOBase.writelines gives Write a list of lines to the stream. Line separators are not added, so it is usual for each of the lines provided to have a l

[issue44623] help(open('/dev/zero').writelines) gives no help

2021-07-13 Thread Paul Moore
Paul Moore added the comment: It does for me: >>> help(open("nul").writelines) Help on built-in function writelines: writelines(lines, /) method of _io.TextIOWrapper instance Write a list of lines to stream. Line separators are not added, so it is usual for each of the lines prov

[issue44624] Script name for venv PowerShell activate

2021-07-13 Thread Paul Watson
New submission from Paul Watson : In the venv .\Scripts directory. the name 'Activate.ps1' does not conform to the PowerShell prescribed Verb-Noun format. How about using 'Initialize-Python.ps1' as the script name? Or, something else that does conform to PowerShell standard naming. -

[issue44606] Discrepancy between isinstance() and issubclass() for union types

2021-07-13 Thread Ken Jin
Ken Jin added the comment: @Serhiy, can I work on converting None to type(None) please? -- ___ Python tracker ___ ___ Python-bugs-l

[issue44355] Allow spaces in format strings

2021-07-13 Thread Jean Abou Samra
Jean Abou Samra added the comment: Maybe leave the current state, keeping backwards compatibility, but improve the error message by adding "perhaps you wanted no spaces in the format field?" when the_field.replace(" ", "") would be valid? -- nosy: +Jean_Abou_Samra __

[issue42073] classmethod does not pass "type/owner" when invoking wrapped __get__

2021-07-13 Thread Łukasz Langa
Change by Łukasz Langa : -- nosy: +lukasz.langa nosy_count: 4.0 -> 5.0 pull_requests: +25662 pull_request: https://github.com/python/cpython/pull/27115 ___ Python tracker ___ __

[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable

2021-07-13 Thread Łukasz Langa
Change by Łukasz Langa : -- nosy: +lukasz.langa nosy_count: 11.0 -> 12.0 pull_requests: +25663 pull_request: https://github.com/python/cpython/pull/27115 ___ Python tracker ___

[issue44623] help(open('/dev/zero').writelines) gives no help

2021-07-13 Thread Zachary Ware
Zachary Ware added the comment: I also can't reproduce this with a fresh build of 3b5b99da4b on Linux. -- nosy: +zach.ware resolution: -> works for me status: open -> pending ___ Python tracker

[issue44623] help(open('/dev/zero').writelines) gives no help

2021-07-13 Thread Jonathan Fine
Jonathan Fine added the comment: I used my default Python, which is Python 3.6. However, with 3.7 and 3.8 I get the same as Paul. So I'm closing this as 'not a bug' (as there's not an already-fixed option for closing). -- resolution: works for me -> not a bug status: pending -> open

[issue43124] [security] smtplib multiple CRLF injection

2021-07-13 Thread R. David Murray
R. David Murray added the comment: This bug report starts with "a malicious user with direct access to `smtplib.SMTP(..., local_hostname, ..)", which is a senseless supposition. Anyone with "access to" the SMTP object could just as well be talking directly to the SMTP server and do anything

[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-13 Thread Mark Dickinson
Mark Dickinson added the comment: Related 2005 python-dev discussion: https://mail.python.org/archives/list/python-...@python.org/thread/VNGY2DLML4QJUXE73JLVBIH5WFBZNIKG/ -- nosy: +mark.dickinson ___ Python tracker

[issue43124] [security] smtplib multiple CRLF injection

2021-07-13 Thread R. David Murray
R. David Murray added the comment: s/header injection/command injection/ -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue44624] Script name for venv PowerShell activate

2021-07-13 Thread Ammar Askar
Change by Ammar Askar : -- nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44625] Python C API version of `fractions` module

2021-07-13 Thread Azat Ibrakov
New submission from Azat Ibrakov : Are there any plans for implementing `fractions` module in C (like for `decimal` there is a https://github.com/python/cpython/blob/main/Modules/_decimal/_decimal.c module)? I've implemented one myself (https://github.com/lycantropos/cfractions) and from ben

[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-13 Thread Mark Dickinson
Mark Dickinson added the comment: and the related issue: https://bugs.python.org/issue1446372 -- ___ Python tracker ___ ___ Python-

[issue44623] help(open('/dev/zero').writelines) gives no help

2021-07-13 Thread Zachary Ware
Zachary Ware added the comment: Even with 3.6 I get a different result: ``` Python 3.6.13 (tags/v3.6.13:aa73e1722e, Mar 23 2021, 15:45:49) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> help(open('/dev/zero').writelines) Help on built-in functi

[issue44623] help(open('/dev/zero').writelines) gives no help

2021-07-13 Thread Zachary Ware
Change by Zachary Ware : -- versions: +Python 3.6 -Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-13 Thread Paul Ganssle
Paul Ganssle added the comment: Re-opening this because I think the discussion is not done and I don't see any reason why this was rejected. > Related 2005 python-dev discussion: > https://mail.python.org/archives/list/python-...@python.org/thread/VNGY2DLML4QJUXE73JLVBIH5WFBZNIKG/ @Mark Tha

[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-13 Thread Paul Ganssle
Change by Paul Ganssle : -- stage: resolved -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue44604] [Enhancement] Asyncio task decorator to provide interface to define async DAGs (similar to dask's delayed interface)

2021-07-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: I'm not convinced why @task decorator should be a part of asyncio. You can provide the implementation as a part of some third-party library on pypy.org. Looks like it doesn't require any change of asyncio itself. -- _

[issue43950] Include column offsets for bytecode instructions

2021-07-13 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +25664 pull_request: https://github.com/python/cpython/pull/27117 ___ Python tracker ___ _

[issue44625] Python C API version of `fractions` module

2021-07-13 Thread Mark Dickinson
Mark Dickinson added the comment: No, no plans. There are tradeoffs here - the extra speed comes at the expense of increased maintenance burden. (It's certainly much harder to make minor changes and fixes to the decimal module now that it's written in C.) -- nosy: +mark.dickinson __

[issue44606] Discrepancy between isinstance() and issubclass() for union types

2021-07-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 3. There is also a crash in isinstance(): >>> class BadMeta(type): ... def __instancecheck__(cls, inst): ... 1/0 ... >>> x = int | BadMeta('A', (), {}) >>> isinstance([], x) Fatal Python error: _Py_CheckFunctionResult: a function returned a resu

[issue44606] Discrepancy between isinstance() and issubclass() for union types

2021-07-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +25665 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27120 ___ Python tracker ___

[issue44606] Discrepancy between isinstance() and issubclass() for union types

2021-07-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- type: behavior -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue44606] Discrepancy between isinstance() and issubclass() for union types

2021-07-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 27120 fixes __instancecheck__ and __subclasscheck__. Converting None to type(None) will be done in other PR. -- ___ Python tracker ___

[issue44606] Discrepancy between isinstance() and issubclass() for union types

2021-07-13 Thread Ken Jin
Ken Jin added the comment: > 3. There is also a crash in isinstance(): That's unfortunate :(. Serhiy, thanks for catching all these bugs in union. I recently realized you probably made 50% of all bug reports for union and they're very much appreciated :). > Converting None to type(None) wi

[issue43124] [security] smtplib multiple CRLF injection

2021-07-13 Thread Martin Ortner
Martin Ortner added the comment: > This bug report starts with "a malicious user with direct access to > `smtplib.SMTP(..., local_hostname, ..)", which is a senseless supposition. > Anyone with "access to" the SMTP object could just as well be talking > directly to the SMTP server and do an

[issue44626] Incorrect tracing of nested if/if/for/yield

2021-07-13 Thread Ned Batchelder
New submission from Ned Batchelder : In Python 3.10, this code is traced incorrectly. I don't know if there's a simpler format that would show the problem. This code is already simplified from https://github.com/nedbat/coveragepy/issues/1188. -- import linecache, s

[issue44627] Python terminal cmd line recall

2021-07-13 Thread jg
New submission from jg : Command line recall in python terminal treats strings case insensitively. Example: Define a 'dummy' function that takes a string as input. If you run dummy twice with the same input string, but different cases, it only saves one. >>> dummy("This is a test") # run this

[issue44628] Remove the broken link for issue #445902 in unixcompiler.py (distutils)

2021-07-13 Thread Leonardo Freua
New submission from Leonardo Freua : There is a broken link in the docstring of the runtime_library_dir_option() method of the UnixCCompiler class. See the broken link below: http://sourceforge.net/tracker/index.php?func=detail&aid=445902&group_id=5470&atid=105470 And the link that is working

[issue44604] [Enhancement] Asyncio task decorator to provide interface to define async DAGs (similar to dask's delayed interface)

2021-07-13 Thread Art
Art added the comment: I understand the hesitation to add this to the library, however I'd like to make a case for why I believe that it fits. To start this is my understanding of the scope of asyncio (or at least part of the scope, taken from the asyncio docs): asyncio provides a set of hi

[issue44628] Remove the broken link for issue #445902 in unixcompiler.py (distutils)

2021-07-13 Thread Leonardo Freua
Change by Leonardo Freua : -- keywords: +patch pull_requests: +25666 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27121 ___ Python tracker ___ _

[issue44604] [Enhancement] Asyncio task decorator to provide interface to define async DAGs (similar to dask's delayed interface)

2021-07-13 Thread Art
Art added the comment: Note: regarding my inclusion of "airflow" in point #4 above. I in no way believe that airflow is a viable alternative to this proposal. I included it because one of those posts I linked explicitly mentioned that they looked into it as an alternative. -- _

[issue44626] Incorrect tracing of nested if/if/for/yield

2021-07-13 Thread Sergey B Kirpichev
Change by Sergey B Kirpichev : -- nosy: +Sergey.Kirpichev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue44572] Calls to platform._syscmd_ver() dependent functions consume STDIN

2021-07-13 Thread Steve Dower
Steve Dower added the comment: New changeset 0ee0a740e12ec8568aafa033aa6bb08b265afe26 by Konstantin-Glukhov in branch 'main': bpo-44572: On Windows, disconnect STDIN in platform._syscmd_ver() to prevent erroneous STDIN consumption (GH-27092) https://github.com/python/cpython/commit/0ee0a740e

[issue12178] csv writer doesn't escape escapechar

2021-07-13 Thread Sebastian Bank
Sebastian Bank added the comment: Thanks Tal. AFAICT there was an undocumented change in behaviour related to this fix. Python 3.9 quotes values with escapechar: ``` import csv import io kwargs = {'escapechar': '\\'} value = 'spam\\eggs' print(value) with io.StringIO() as buf: writer

[issue44572] Calls to platform._syscmd_ver() dependent functions consume STDIN

2021-07-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +25667 pull_request: https://github.com/python/cpython/pull/27124 ___ Python tracker _

[issue44572] Calls to platform._syscmd_ver() dependent functions consume STDIN

2021-07-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +25668 pull_request: https://github.com/python/cpython/pull/27125 ___ Python tracker ___ __

[issue44629] Some files from distutils module are importing all exceptions unnecessarily

2021-07-13 Thread Leonardo Freua
New submission from Leonardo Freua : Some files from the distutils module are importing all the exceptions from the errors.py file unnecessarily, when in fact only a few of the Exception classes are used. Could I open a PR by fixing the files that are making these unnecessary imports? Or is

[issue43948] sysconfig's osx_framework_user puts headers in different locations from distutils

2021-07-13 Thread Tzu-ping Chung
Tzu-ping Chung added the comment: Personally I am not very surprised. The scenario (installing a package to the user scheme of a macOS Framework build) is quite obscure on its own, and AFAIK no third-party package installers is currently using sysconfig. Both pip and setuptools use distutils

[issue33125] Windows 10 ARM64 platform support

2021-07-13 Thread Jay Swanson
Jay Swanson added the comment: I know this is closed, but is it possible that the ARM64EC support coming in Windows 11 that allows mixed native/emulated code is something that would help this along? That along with the sunsetting of 32-bit systems. -- nosy: +jay.swanson

[issue44572] Calls to platform._syscmd_ver() dependent functions consume STDIN

2021-07-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 425756abdc03263ab3a52b068befd1ddb16c2dd2 by Miss Islington (bot) in branch '3.10': bpo-44572: On Windows, disconnect STDIN in platform._syscmd_ver() to prevent erroneous STDIN consumption (GH-27092) (GH-27124) https://github.com/python/c

[issue34292] test_compile hangs in AMD Ubuntu buildbots

2021-07-13 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue37271] Make multiple passes of the peephole optimizer until bytecode cannot be optimized further

2021-07-13 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue38842] test_multiprocessing_spawn altered the execution environment in AMD64 FreeBSD Non-Debug 3.x

2021-07-13 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue34388] collect_gdb fails for test.pythoninfo in several AMD64 FreeBSD buildbots

2021-07-13 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue43950] Include column offsets for bytecode instructions

2021-07-13 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +25669 pull_request: https://github.com/python/cpython/pull/27126 ___ Python tracker ___ _

[issue33346] Syntax error with async generator inside dictionary comprehension

2021-07-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 054e9c84ac7c394941bba3ea1829d14dce1243fc by Serhiy Storchaka in branch 'main': bpo-33346: Allow async comprehensions inside implicit async comprehensions (GH-6766) https://github.com/python/cpython/commit/054e9c84ac7c394941bba3ea1829d14d

[issue44630] Assertion failure in csv module

2021-07-13 Thread Thomas Wouters
New submission from Thomas Wouters : The csv module has some incorrect exception handling when dealing with dialect objects that are not csv.Dialect subclasses (or that otherwise raise errors when accessing the dialect attributes): >>> csv.reader([], dialect=None) python: ../../cpython/Object

[issue44627] Python terminal cmd line recall

2021-07-13 Thread Eryk Sun
Eryk Sun added the comment: By default, reading input from the console uses the console's built-in command-line editor. You can clear the console input history with Alt+F7; display the history list with F7; navigate in the history list with the up and down arrow keys, even when the list isn'

[issue44630] Assertion failure in csv module

2021-07-13 Thread Thomas Wouters
Change by Thomas Wouters : -- keywords: +patch pull_requests: +25670 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27127 ___ Python tracker ___ _

[issue44631] Refactoring the repr() of the _Environ class (os module)

2021-07-13 Thread Leonardo Freua
New submission from Leonardo Freua : Currently, the repr() code of the _Environ class does many things in a bunched way, making it difficult to read and difficult to determine the result returned by the method. Therefore, I propose an adjustment in the code to make it more readable, as well

[issue44631] Refactoring the repr() of the _Environ class (os module)

2021-07-13 Thread Leonardo Freua
Change by Leonardo Freua : -- keywords: +patch pull_requests: +25671 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27128 ___ Python tracker ___ _

[issue44604] [Enhancement] Asyncio task decorator to provide interface to define async DAGs (similar to dask's delayed interface)

2021-07-13 Thread Yury Selivanov
Yury Selivanov added the comment: Yeah, I'm also not convinced this has to be part of asyncio, especially since we'll likely have task groups in 3.11. -- ___ Python tracker _

[issue44630] Assertion failure in csv module

2021-07-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 0093876328afa330224c9d887c18dee0b3117852 by T. Wouters in branch 'main': bpo-44630: Fix assertion errors in csv module (GH-27127) https://github.com/python/cpython/commit/0093876328afa330224c9d887c18dee0b3117852 -- _

[issue38278] Need a more efficient way to perform dict.get(key, default)

2021-07-13 Thread Irit Katriel
Irit Katriel added the comment: > Was LOAD_METHOD optimized for builtin methods? Maybe this can be done with specialization. -- nosy: +Mark.Shannon, gvanrossum, iritkatriel ___ Python tracker _

[issue44630] Assertion failure in csv module

2021-07-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +25672 pull_request: https://github.com/python/cpython/pull/27129 ___ Python tracker _

[issue44630] Assertion failure in csv module

2021-07-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +25673 pull_request: https://github.com/python/cpython/pull/27130 ___ Python tracker ___ __

  1   2   >