[issue40897] Inheriting from class that defines __new__ causes inspect.signature to always return (*args, **kwargs) for constructor

2021-07-13 Thread Mauricio Villegas
Mauricio Villegas added the comment: I created another issue since the problem appears to be a bit different: https://bugs.python.org/issue44618 -- ___ Python tracker ___ ___

[issue44608] Memory use increase in function _tkinter._flatten

2021-07-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44608] Memory use increase in function _tkinter._flatten

2021-07-13 Thread miss-islington
miss-islington added the comment: New changeset 94adfe6e2cdc9ba715b6d7068d8bd521ba6bf30b by Miss Islington (bot) in branch '3.9': bpo-44608: Fix memory leak in _tkinter._flatten() (GH-27107) https://github.com/python/cpython/commit/94adfe6e2cdc9ba715b6d7068d8bd521ba6bf30b -- __

[issue44633] Indexing the union type can return NotImplemented

2021-07-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : >>> import typing >>> (int | typing.T)[1] NotImplemented It is related to issue44632. -- components: Interpreter Core messages: 397468 nosy: gvanrossum, kj, serhiy.storchaka priority: normal severity: normal status: open title: Indexing the union

[issue44608] Memory use increase in function _tkinter._flatten

2021-07-13 Thread miss-islington
miss-islington added the comment: New changeset 7e1d6308a3fc536719adcf1df0aa4e9953c12f8b by Miss Islington (bot) in branch '3.10': bpo-44608: Fix memory leak in _tkinter._flatten() (GH-27107) https://github.com/python/cpython/commit/7e1d6308a3fc536719adcf1df0aa4e9953c12f8b -- _

[issue44632] Union with TypeVar does not work as intended

2021-07-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : >>> import typing >>> int | typing.T int | ~T >>> typing.T | int typing.Union[~T, int] >>> T2 = TypeVar('T2') >>> int | T2 typing.Union[int, ~T2] >>> T2 | int typing.Union[~T2, int] There is a support of TypeVar in type.__or__, but it does not work with us

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

2021-07-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44608] Memory use increase in function _tkinter._flatten

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

[issue44608] Memory use increase in function _tkinter._flatten

2021-07-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f572cbf1faab33d9afbbe3e95738ed6fbe6e48e6 by Serhiy Storchaka in branch 'main': bpo-44608: Fix memory leak in _tkinter._flatten() (GH-27107) https://github.com/python/cpython/commit/f572cbf1faab33d9afbbe3e95738ed6fbe6e48e6 -- ___

[issue44608] Memory use increase in function _tkinter._flatten

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

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

2021-07-13 Thread miss-islington
miss-islington added the comment: New changeset b42eee78e7651693aa38c390f577e5d499dcf55d by Miss Islington (bot) in branch '3.10': bpo-44606: Fix __instancecheck__ and __subclasscheck__ for the union type. (GH-27120) https://github.com/python/cpython/commit/b42eee78e7651693aa38c390f577e5d499

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

2021-07-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 81989058de381108dfd0a4255b93d4fb34417002 by Serhiy Storchaka in branch 'main': bpo-44606: Fix __instancecheck__ and __subclasscheck__ for the union type. (GH-27120) https://github.com/python/cpython/commit/81989058de381108dfd0a4255b93d4fb3441

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

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

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

2021-07-13 Thread Jack DeVries
Jack DeVries added the comment: I wonder if the middle ground here is to let it be a teachable moment, and to inform the user by having the string returned by __repr__ be a bit more descriptive. Currently, it is: > Use exit() or Ctrl-Z plus Return to exit I propose: > exit is the function

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

2021-07-13 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Tue, Jul 13, 2021 at 01:58:30AM +, Taylor Alexander wrote: > I would push back against the idea that this is about laziness. It > sounds like this is about reducing user confusion. Users aren't *confused* by the instructions, which are clear and simp

[issue44589] Pattern Matching - duplicate keys in mapping patterns

2021-07-13 Thread Jack DeVries
Jack DeVries added the comment: @brandtbucher, I think that my PR implements the solution you've described here. What do you think? -- ___ Python tracker ___

[issue44589] Pattern Matching - duplicate keys in mapping patterns

2021-07-13 Thread Jack DeVries
Change by Jack DeVries : -- keywords: +patch nosy: +jack__d nosy_count: 3.0 -> 4.0 pull_requests: +25674 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27131 ___ Python tracker _

[issue44617] Undesired Behavior on `match` using Singleton object

2021-07-13 Thread Dennis Sweeney
Dennis Sweeney added the comment: >From https://www.python.org/dev/peps/pep-0635/#value-patterns : """We therefore only adopted the rule that any dotted name (i.e., attribute access) is to be interpreted as a value pattern, for example HttpStatus.OK above. This precludes, in particular, loca

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

2021-07-13 Thread Gregory P. Smith
Change by Gregory P. Smith : -- stage: -> patch review type: behavior -> enhancement ___ Python tracker ___ ___ Python-bugs-list ma

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

2021-07-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: Agreed with Paul, this is a good idea UX wise for interactive interpreters. IPython proved that well over a decade ago. Thanks for the historical links! -- nosy: +gregory.p.smith ___ Python tracker

[issue44617] Undesired Behavior on `match` using Singleton object

2021-07-13 Thread Pablo Aguilar
Pablo Aguilar added the comment: In fact, I'm worried about how to explain some behaviors. Look here: ```python # `Maybe` here is the same class described in the first message Nothing = Maybe() Maybe.empty = Nothing if __name__ == '__main__': my_maybe = Maybe() match my_maybe:

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

2021-07-13 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +methane ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue44617] Undesired Behavior on `match` using Singleton object

2021-07-13 Thread Pablo Aguilar
Pablo Aguilar added the comment: But, `Maybe.empty` works like a `Literal Pattern` or `Constant Pattern`? -- ___ 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: Hi Yury, could you by any chance point me to some material on the inclusion of task groups in 3.11? I've found these "task group" docs from a library called AnyIO: https://anyio.readthedocs.io/en/stable/tasks.html. If the asyncio task group feature is similar to this,

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

2021-07-13 Thread Éric Araujo
Change by Éric Araujo : -- components: +Library (Lib) -Demos and Tools nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list

[issue44630] Assertion failure in csv module

2021-07-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks! Things like this both internal to CPython and in CPython API misuse in all sorts of third party extension modules are why i think we as a project really should to encourage more CI systems to have -UNDEBUG builds of CPython available and in use by

[issue44630] Assertion failure in csv module

2021-07-13 Thread miss-islington
miss-islington added the comment: New changeset fe73509c5ba3844b45a2253967522531ab80c849 by Miss Islington (bot) in branch '3.9': bpo-44630: Fix assertion errors in csv module (GH-27127) https://github.com/python/cpython/commit/fe73509c5ba3844b45a2253967522531ab80c849 -- __

[issue44630] Assertion failure in csv module

2021-07-13 Thread miss-islington
miss-islington added the comment: New changeset bb260c2a212aee2a7d7a32bf5208fd554bf72713 by Miss Islington (bot) in branch '3.10': [3.10] bpo-44630: Fix assertion errors in csv module (GH-27127) (GH-27129) https://github.com/python/cpython/commit/bb260c2a212aee2a7d7a32bf5208fd554bf72713 ---

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

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

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

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

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

[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

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

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

[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

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

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

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

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

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

[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

[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

[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

[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

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

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

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

[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

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

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

[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

[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

[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

[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

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

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

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

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

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

[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

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

[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

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

[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

[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

[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

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

[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

[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

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

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

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

[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

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

[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

[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

[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

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

[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

[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: 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
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

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

[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

[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

[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

  1   2   >