[issue40726] ast.Call end_lineno is defined and returns None

2020-05-22 Thread David Strobach
David Strobach added the comment: > Actually, Xonsh tests show that keyword AST nodes are missing 'lineno' > attribute, but that could be our fault. Yes, our fault. Sorry for the noise. -- ___ Python tracker _

[issue9216] FIPS support for hashlib

2020-05-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +19589 pull_request: https://github.com/python/cpython/pull/20320 ___ Python tracker ___ ___

[issue9216] FIPS support for hashlib

2020-05-22 Thread miss-islington
miss-islington added the comment: New changeset 909b5714e1303357868bc5e281c1cf508d5d5a17 by Christian Heimes in branch 'master': bpo-9216: hashlib usedforsecurity fixes (GH-20258) https://github.com/python/cpython/commit/909b5714e1303357868bc5e281c1cf508d5d5a17 -- _

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-05-22 Thread Burak Yiğit Kaya
Change by Burak Yiğit Kaya : -- nosy: +Burak Yiğit Kaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue40726] ast.Call end_lineno is defined and returns None

2020-05-22 Thread David Strobach
David Strobach added the comment: Actually, Xonsh (http://github.com/xonsh/xonsh) tests show that keyword AST nodes are missing 'lineno' attribute, but that could be our fault. -- ___ Python tracker ___

[issue40568] Modify -c command-line option to accept multiple inputs

2020-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be breaking change. In addition to multiline strings you can use \n with $' on Posix: python -c $'with open("somefile.txt") as f:\n s = f.read()\n print(len(s))' Maybe there is similar feature on Windows, but in any case the command line interf

[issue40726] ast.Call end_lineno is defined and returns None

2020-05-22 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > setting them to None is going to break a lot of those, if possible I'd > suggest going back to when they were missing 'lineno' and 'col_offset' will never be none, since both are declared as normal integers. But on the other hand, 'end_lineno' and 'end_co

[issue40731] CWI url's protocol on LICENSE file from http to https

2020-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The text of the license cannot be changed without consulting with lawyers. -- nosy: +gvanrossum, serhiy.storchaka ___ Python tracker ___ __

[issue40654] shutil.copyfile mutates symlink for absolute path

2020-05-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: > Unless you're specifically testing single steps through symlink chains, you > probably want to just use realpath anyway. I do see now the references to `realpath` in the docs... and I think that satisfies the need I described above. It doesn't supply the

[issue40654] shutil.copyfile mutates symlink for absolute path

2020-05-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: > Changing readlink to always return the correct path was deliberate. Understood. However, this statement assumes the "correct path" is the most precise path to resolve the target. If you instead define "correct path" as the one that would be most friendly

[issue40726] ast.Call end_lineno is defined and returns None

2020-05-22 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40705] use-after-free in _zoneinfo.c's module_free function

2020-05-22 Thread Paul Ganssle
Paul Ganssle added the comment: New changeset 06a1b8915d6674e40f0dccc422ca2c06212392d8 by Ammar Askar in branch 'master': bpo-40705: Fix use-after-free in _zoneinfo's module_free (GH-20280) https://github.com/python/cpython/commit/06a1b8915d6674e40f0dccc422ca2c06212392d8 -- ___

[issue40705] use-after-free in _zoneinfo.c's module_free function

2020-05-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +19588 pull_request: https://github.com/python/cpython/pull/20319 ___ Python tracker _

[issue40726] ast.Call end_lineno is defined and returns None

2020-05-22 Thread Anthony Sottile
Anthony Sottile added the comment: There's current expectation in a lot of linters / code formatters that the *lineno and *col_offset attributes will be missing if they are not attached to the node setting them to None is going to break a lot of those, if possible I'd suggest going back to

[issue40730] Odd sentence in 3.9 What's New

2020-05-22 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 983b17ca1319adf9f06d5f2779a44450241eba54 by Miss Islington (bot) in branch '3.9': bpo-40730: Remove redundant 'to' (GH-20316) (GH-20318) https://github.com/python/cpython/commit/983b17ca1319adf9f06d5f2779a44450241eba54 -- _

[issue40730] Odd sentence in 3.9 What's New

2020-05-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +19587 pull_request: https://github.com/python/cpython/pull/20318 ___ Python tracker ___ __

[issue40728] UnboundLocalError as a result of except statement variable re-assignment

2020-05-22 Thread Mark Shannon
Mark Shannon added the comment: Oleksandr, Are you saying that the current behaviour is incorrect, in the sense that it disagrees with the documentation? Or are you saying that the current behaviour is undesirable? -- ___ Python tracker

[issue40730] Odd sentence in 3.9 What's New

2020-05-22 Thread miss-islington
miss-islington added the comment: New changeset 30d5a7364db9e65ccabbdce2c20b84fe2fb233fb by Florian Dahlitz in branch 'master': bpo-40730: Remove redundant 'to' (GH-20316) https://github.com/python/cpython/commit/30d5a7364db9e65ccabbdce2c20b84fe2fb233fb -- nosy: +miss-islington ___

[issue40731] CWI url's protocol on LICENSE file from http to https

2020-05-22 Thread Vinicius Henrique Silva Bastos
Change by Vinicius Henrique Silva Bastos : -- keywords: +patch pull_requests: +19586 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20317 ___ Python tracker _

[issue40731] CWI url's protocol on LICENSE file from http to https

2020-05-22 Thread Vinicius Henrique Silva Bastos
New submission from Vinicius Henrique Silva Bastos : CWI url's protocol on LICENSE file from http to https from: http://www.cwi.nl to: https://www.cwi.nl Obs.: Learning about pull requests and how it works. -- assignee: docs@python components: Documentation files: LICENSE hgrepos: 388

[issue40730] Odd sentence in 3.9 What's New

2020-05-22 Thread Florian Dahlitz
Change by Florian Dahlitz : -- keywords: +patch pull_requests: +19585 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20316 ___ Python tracker ___

[issue40730] Odd sentence in 3.9 What's New

2020-05-22 Thread Eric V. Smith
Eric V. Smith added the comment: Yes, please go ahead. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue40730] Odd sentence in 3.9 What's New

2020-05-22 Thread Florian Dahlitz
Florian Dahlitz added the comment: Hi @eric.smith. I'm sure the first "to" can be removed. It sounds better this way. Am I free to open a PR? -- nosy: +DahlitzFlorian ___ Python tracker

[issue40730] Odd sentence in 3.9 What's New

2020-05-22 Thread Eric V. Smith
New submission from Eric V. Smith : https://docs.python.org/3.9/whatsnew/3.9.html#optimizations has this sentence: "Unlike to the := operator this idiom does not leak a variable to the outer scope.". I'm not exactly sure what it should be. Probably the first "to" should be deleted? -

[issue40725] Documentation: Benchmark table in "What's new in Python 3.9" has weird values

2020-05-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the report. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40630] tracemalloc: allow resetting peak memory metric without touching other traces

2020-05-22 Thread STINNER Victor
STINNER Victor added the comment: Thanks Huon Wilson! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 -Python 3.9 ___ Python tracker ___

[issue40630] tracemalloc: allow resetting peak memory metric without touching other traces

2020-05-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8b62644831443e400215eeb822c921f4f06c8977 by Huon Wilson in branch 'master': bpo-40630: Add tracemalloc.reset_peak (GH-20102) https://github.com/python/cpython/commit/8b62644831443e400215eeb822c921f4f06c8977 --

[issue36395] Add deferred single-threaded/fake executor to concurrent.futures

2020-05-22 Thread Leonardo Santagada
Leonardo Santagada added the comment: I have a single example: Profiling. As most python profilers don't support threads or processes, it would be very convenient to have a in process executor in those cases. -- nosy: +santagada ___ Python tracker

[issue40725] Documentation: Benchmark table in "What's new in Python 3.9" has weird values

2020-05-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 5c01ed6f9366bc6fd880c18e5a2929de72bc1be6 by Miss Islington (bot) in branch '3.9': bpo-40725: Restore missing column of digits (GH-20313) (GH-20315) https://github.com/python/cpython/commit/5c01ed6f9366bc6fd880c18e5a2929de72bc1be6 --

[issue40725] Documentation: Benchmark table in "What's new in Python 3.9" has weird values

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

[issue40729] Update the list of auto-generated files in .gitattributes

2020-05-22 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +19583 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20314 ___ Python tracker ___

[issue40729] Update the list of auto-generated files in .gitattributes

2020-05-22 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: BTaskaya priority: normal severity: normal status: open title: Update the list of auto-generated files in .gitattributes ___ Python tracker ___

[issue40725] Documentation: Benchmark table in "What's new in Python 3.9" has weird values

2020-05-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +19582 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20313 ___ Python tracker __

[issue40725] Documentation: Benchmark table in "What's new in Python 3.9" has weird values

2020-05-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue40579] Second argument to iterator.next not described

2020-05-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyt

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2020-05-22 Thread E. Paine
E. Paine added the comment: Unfortunately, after lots of testing/experimenting, I cannot find a way to make the correct call/s at the correct time. The methods that call the exit handlers directly or through InvokeExitHandlers are Tcl_Exit, Tcl_Finalize & FinalizeThread (Tcl_FinalizeThread) –

[issue40028] Math module method to find prime factors for non-negative int n

2020-05-22 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Fri, May 22, 2020 at 10:23:06AM +, Rémi Lapeyre wrote: > As you said the PEP would have to explain why not just use sympy and > honestly I don't have a very good argument there for now. Because sympy is a beast. It's an excellent beast, but its an abso

[issue40217] The garbage collector doesn't take in account that objects of heap allocated types hold a strong reference to their type

2020-05-22 Thread Petr Viktorin
Petr Viktorin added the comment: Indeed, it seems my initial analysis was incorrect. I can't reproduce this outside of PySide. I'll close this bug and invesatigate more. Sorry for the noise. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue40728] UnboundLocalError as a result of except statement variable re-assignment

2020-05-22 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40280] Consider supporting emscripten/webassembly as a build target

2020-05-22 Thread Beuc
Beuc added the comment: I've been maintaining a Python Emscripten build for the Ren'Py (game engine) web port: https://github.com/python-emscripten/python https://renpy.beuc.net/ I recently tackled Python3 with a minimal/embeddable approach and checking the other ports already pointed in the

[issue40728] UnboundLocalError as a result of except statement variable re-assignment

2020-05-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > but if exc variable is only available in except block why then it shadows the function variable name? Because the except block does not create a new scope and therefore when you do 'except as x' it does an assignment to x in the same scope as the fun

[issue40728] UnboundLocalError as a result of except statement variable re-assignment

2020-05-22 Thread Oleksandr Suvorov
Oleksandr Suvorov added the comment: What I mean is why would it need to shadow function variable name if after except block it's always unbound, what is the reason and why this is expected? On Fri, May 22, 2020 at 1:19 PM Oleksandr Suvorov wrote: > > Oleksandr Suvorov added the comment: >

[issue40728] UnboundLocalError as a result of except statement variable re-assignment

2020-05-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > as it's either the variable should exist and have a value or it should be unknown and result in NameError at this point. One thing is the symbol and another thing is its value. The function is always aware of the existence of the symbol. For instance

[issue40728] UnboundLocalError as a result of except statement variable re-assignment

2020-05-22 Thread Oleksandr Suvorov
Oleksandr Suvorov added the comment: but if exc variable is only available in except block why then it shadows the function variable name? On Fri, May 22, 2020 at 1:15 PM Christian Heimes wrote: > > Christian Heimes added the comment: > > UnboundLocalError is a subclass of NameError. You ar

[issue40728] UnboundLocalError as a result of except statement variable re-assignment

2020-05-22 Thread Christian Heimes
Christian Heimes added the comment: UnboundLocalError is a subclass of NameError. You are getting a more specific error here. >>> UnboundLocalError.__mro__ (, , , , ) -- nosy: +christian.heimes ___ Python tracker

[issue40728] UnboundLocalError as a result of except statement variable re-assignment

2020-05-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: >But then why I still can access this variable? Shouldn't it then be resulting in NameError as it's undefined variable at this point of time? I don't think so, this is the same as if you do: def f(exc): del exc return exc >>> f(3) Traceback (mos

[issue40728] UnboundLocalError as a result of except statement variable re-assignment

2020-05-22 Thread Oleksandr Suvorov
Oleksandr Suvorov added the comment: But then why I still can access this variable? Shouldn't it then be resulting in NameError as it's undefined variable at this point of time? I think UnboundError creates more confusing here, as it's either the variable should exist and have a value or it sho

[issue40728] UnboundLocalError as a result of except statement variable re-assignment

2020-05-22 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +Mark.Shannon resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40728] UnboundLocalError as a result of except statement variable re-assignment

2020-05-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This is the equivalent construct that we compile it to: https://github.com/python/cpython/blob/master/Python/compile.c#L3102-L3110 -- ___ Python tracker

[issue40728] UnboundLocalError as a result of except statement variable re-assignment

2020-05-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This is expected behaviour and happens because we need to clean the exception variable outside the `except` block to avoid reference cycles. If you need the variable later, you need to do an assignment: try: 1/0 except Exception as exc:

[issue40728] UnboundLocalError as a result of except statement variable re-assignment

2020-05-22 Thread Oleksandr Suvorov
New submission from Oleksandr Suvorov : def foo(exc): try: 1/0 except Exception as exc: ... finally: return exc foo(1) Executing the following code results in UnboundLocalError, while exc has been defined and passed to a function explicitly. I think this is some

[issue40723] IDLE: make autocomplete test run without __main__.__file__

2020-05-22 Thread Florian Dahlitz
Florian Dahlitz added the comment: I added a news entry to idlelib/NEWS.txt but don't know, where to add an additional note. The documentation of IDLE doesn't seem to be the right place. Should a note be added to Misc/NEWS.d/next or would it be redundant, because it is already added to idlel

[issue40727] SSLContext.load_verify_locations leaks memory on Linux in async code

2020-05-22 Thread Recursing
Recursing added the comment: > Without asyncio memory consumption stays low and stable for me Same for me > RSS jumps from 20 MB to about 1,600 MB. That is the memory consumption I observe as well, the issue is that it doesn't get freed on Linux > There is almost no increase when I run the

[issue40028] Math module method to find prime factors for non-negative int n

2020-05-22 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Mark Dickinson, I was waiting for everyone to have a chance to comment on this issue and read their reply before answering. It seems to me that there some core developers are mildly in favor of a new imath module and it's has been proposed on the bug tracker

[issue40727] SSLContext.load_verify_locations leaks memory on Linux in async code

2020-05-22 Thread Christian Heimes
Christian Heimes added the comment: When I run your example, RSS jumps from 20 MB to about 1,600 MB. There is almost no increase when I run the look several more times. >>> p.memory_info() pmem(rss=19902464, vms=240513024, shared=10014720, text=2125824, lib=0, data=9887744, dirty=0) >>> asyn

[issue40727] SSLContext.load_verify_locations leaks memory on Linux in async code

2020-05-22 Thread Christian Heimes
Christian Heimes added the comment: Without asyncio memory consumption stays low and stable for me: $ ./python -m venv venv $ ./venv/bin/pip install psutil $ ./venv/bin/python >>> ssl.OPENSSL_VERSION 'OpenSSL 1.1.1g FIPS 21 Apr 2020' >>> import psutil, ssl, os >>> p = psutil.Process(os.getpid

[issue40568] Modify -c command-line option to accept multiple inputs

2020-05-22 Thread Florian Dahlitz
Change by Florian Dahlitz : -- nosy: +DahlitzFlorian ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue40727] SSLContext.load_verify_locations leaks memory on Linux in async code

2020-05-22 Thread Recursing
Recursing added the comment: Removing the `await asyncio.sleep(1)` removes the leak, while changing it to `await asyncio.sleep(0)` seems to keep it -- ___ Python tracker ___

[issue40726] ast.Call end_lineno is defined and returns None

2020-05-22 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > If nobody works on this I will send a PR to update the rest of AST later > today. :/ I'm terribly sorry for that, I just sent a PR without refreshing the tab. -- ___ Python tracker

[issue40640] Tutorial for Continue missing ... line

2020-05-22 Thread Florian Dahlitz
Florian Dahlitz added the comment: @docor...@sonic.net are you going to submit a PR for it or am I free to do it? -- nosy: +DahlitzFlorian ___ Python tracker ___ _

[issue40726] ast.Call end_lineno is defined and returns None

2020-05-22 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch nosy: +BTaskaya nosy_count: 5.0 -> 6.0 pull_requests: +19581 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20312 ___ Python tracker _

[issue40028] Math module method to find prime factors for non-negative int n

2020-05-22 Thread Mark Dickinson
Mark Dickinson added the comment: It seems we don't have a champion (someone willing to write a PEP) for this issue. I'm going to close. And if or when we do have such a champion, it probably makes more sense to re-open #37132, which is specifically about adding `imath`, or make a new issue

[issue40726] ast.Call end_lineno is defined and returns None

2020-05-22 Thread Florian Dahlitz
Change by Florian Dahlitz : -- nosy: +DahlitzFlorian ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue40727] SSLContext.load_verify_locations leaks memory on Linux in async code

2020-05-22 Thread Christian Heimes
Christian Heimes added the comment: Does it also leak without asyncio? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40726] ast.Call end_lineno is defined and returns None

2020-05-22 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: This was done in b7e9525f9c7ef02a1d2ad8253afdeb733b0951d4 for issue 36287, all attribute should now be defined, even when they are not set. It looks like some parts of the ast module where not updated. If nobody works on this I will send a PR to update the rest

[issue40723] IDLE: make autocomplete test run without __main__.__file__

2020-05-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Go ahead. Since the failure was user visible, there should be a note. For IDLE issues, idlelib/NEWS.txt also needs an addition, but not until ready to merge. So add a trial blurb or not as you wish. In any case, I need to fix the 3.8 version and perhaps t

[issue40690] unittest: if FunctionTestCase is imported, the loader loads "tests" from it

2020-05-22 Thread Vitalii
Vitalii added the comment: I don't think anyone is using FunctionTestCase -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue40726] ast.Call end_lineno is defined and returns None

2020-05-22 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue40726] ast.Call end_lineno is defined and returns None

2020-05-22 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: See here for the complete spec: https://docs.python.org/3.9/library/ast.html#abstract-grammar -- ___ Python tracker ___ ___

[issue40727] SSLContext.load_verify_locations leaks memory on Linux in async code

2020-05-22 Thread Recursing
New submission from Recursing : Minimal code to reproduce: ``` import ssl import certifi import gc import asyncio ca_path = certifi.where() async def make_async_context() -> None: context = ssl.SSLContext(ssl.PROTOCOL_TLS) context.load_verify_locations(ca_path) await asyncio.sleep(

[issue40726] ast.Call end_lineno is defined and returns None

2020-05-22 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: This is because the 'end_lineno' and 'end_col_offset' are declared as optional attributes in the ASDL spec. The commit 'b7e9525f9c7ef02a1d2ad8253afdeb733b0951d4' made all optional fields and attributes auto initalized with None. -- ___

[issue40726] ast.Call end_lineno is defined and returns None

2020-05-22 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue40579] Second argument to iterator.next not described

2020-05-22 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue40725] Documentation: Benchmark table in "What's new in Python 3.9" has weird values

2020-05-22 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue40690] unittest: if FunctionTestCase is imported, the loader loads "tests" from it

2020-05-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: > then you will have 1 extra test in that module (the imported one), moreover, > that test will be broken. If this is true, then how is anyone able to be using FunctionTestCase in their tests today? Is the feature broken? -- nosy: +chris.jerdonek _

[issue40640] Tutorial for Continue missing ... line

2020-05-22 Thread Rahul Kumaresan
Rahul Kumaresan added the comment: I think the ommission of secondary prompt(...) at the end of the loop in the code snippet doesn't affect what the example wanted to demonstrate. Even so, if this has to be fixed, this correction is to be done in versions 3.5 through 3.10 -- versions

[issue40726] ast.Call end_lineno is defined and returns None

2020-05-22 Thread David Strobach
David Strobach added the comment: The issue is not limited to ast.Call. Other AST nodes are also affected (e.g. ast.BinOp). It's also not limited to end_lineno attribute. The same applies to end_col_offset. -- ___ Python tracker

[issue40726] ast.Call end_lineno is defined and returns None

2020-05-22 Thread David Strobach
Change by David Strobach : -- nosy: +laloch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue40709] Malfunctioning of '\r'

2020-05-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10 -Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Pyth

[issue40709] Malfunctioning of '\r'

2020-05-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Discussed on #23220. Note that 'sciencecomputer' is a different possible result if \r does not switch the simulated terminal from the normal insert mode to overwrite mode. I am considering terminal simulation as an option, but there is not exactly a standa

[issue40726] ast.Call end_lineno is defined and returns None

2020-05-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue40726] ast.Call end_lineno is defined and returns None

2020-05-22 Thread gaborbernat
New submission from gaborbernat : Reporting an issue from https://github.com/xonsh/xonsh/issues/3581; boils down to, ast.Call used to not define end_lineno in 3.8: py -3.8 -c 'import ast; type(ast.Call().end_lineno)'

[issue40723] IDLE: make autocomplete test run without __main__.__file__

2020-05-22 Thread Florian Dahlitz
Change by Florian Dahlitz : -- keywords: +patch pull_requests: +19580 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20311 ___ Python tracker _

[issue40711] Clearing the screen of IDLE interactive mode in Windows

2020-05-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.5 and 3.6 only get security fixes. #6143 proposes to add special mechanism to clear Shell. It is a low priority for me as I very seldom want to, or if a editor is open, one can close the shell and start over when running the editor file. Clear an editor

[issue40725] Documentation: Benchmark table in "What's new in Python 3.9" has weird values

2020-05-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue40721] PEP0435 (enums) -- there is no standard on enum item letters case

2020-05-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +barry, eli.bendersky, ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailin

[issue40721] PEP0435 (enums) -- there is no standard on enum item letters case

2020-05-22 Thread Florian Dahlitz
Florian Dahlitz added the comment: Should we add a note that there is no preferred way of naming enum members and provide a few examples or define some naming conventions? -- nosy: +DahlitzFlorian ___ Python tracker

[issue40723] IDLE: make autocomplete test run without __main__.__file__

2020-05-22 Thread Florian Dahlitz
Florian Dahlitz added the comment: I was able to reproduce the reported issue and the suggested fix worked fine. Is there anything else missing like documentation note? I would like to submit a PR for this @terry.reedy -- nosy: +DahlitzFlorian ___

[issue40725] Documentation: Benchmark table in "What's new in Python 3.9" has weird values

2020-05-22 Thread Jakub Beránek
New submission from Jakub Beránek : The "What's new in Python 3.9" page displays a table with microbenchmark results between different Python version (https://docs.python.org/3.9/whatsnew/3.9.html#optimizations). The values provided for Python 3.4 are suspicious, as they are several times sma

[issue38946] IDLE on macOS 10.15 Catalina does not open double-clicked files if app already launched

2020-05-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: When I say that I am 99% sure that this is not an IDLE issue at all, I mean that I am 99% sure that a non-IDLE tkinter program registered as a working double-click handler in Mohave will not be properly invoked in Catalina. A counter-example might suggest a

[issue40724] Support buffer protocol with type specs

2020-05-22 Thread Stefan Behnel
New submission from Stefan Behnel : As far as I can see it in typeslots.h [1], the buffer protocol is still not supported when using type specs: /* Disabled, see #10181 */ #undef Py_bf_getbuffer #undef Py_bf_releasebuffer It seems that the discussion in issue 10181 did not lead anywhere at th

[issue40297] test_socket.CANTest is broken at HEAD on master

2020-05-22 Thread Karl Ding
Karl Ding added the comment: Related: I've started a thread on Discourse [0] looking into why the tests don't seem to be run on the Buildbot cluster (and what it would take to enable them). Hopefully it gains some traction. [0] https://discuss.python.org/t/what-would-it-take-to-run-socketca

[issue40670] supplying an empty string to timeit causes an IndentationError

2020-05-22 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: -rahul-kumi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue38938] Possible performance improvement for heaqq.merge()

2020-05-22 Thread Dennis Sweeney
Dennis Sweeney added the comment: key_and_reverse.py employs the same strategy as winners.py, but uses lists as the nodes of the tree rather than using Node instances. It also eliminates the recursion of treeify, and adds (with neither much of a performance hit nor much code duplication) sup

<    1   2