[issue40620] Range tutorial shorthand could be made clearer

2020-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: This block is the same in 3.9 and 3.8. My first though is this block is a holdover from 2.7, where range returned list. But looking at what is written previously, I think your interpretation is correct -- and agree that something other that code and corresp

[issue40583] Runtime type annotation mutation leads to inconsistent behavior

2020-05-15 Thread Saumitro Dasgupta
Change by Saumitro Dasgupta : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue40622] Tests fail with python3.6 built with VS2019

2020-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Runtest itself ran to completion but the 4 tests listed failed. I suspect that this should be closed as "won't fix" because A. 3.6 only gets security fixes since Dec 2018. B. Locally built Windows binaries often fail a few tests, either occasionally or depen

[issue40586] Pydoc should support https for hyperlinks.

2020-05-15 Thread Shantanu
Shantanu added the comment: This looks like a duplicate of https://bugs.python.org/issue38786, which was fixed in https://github.com/python/cpython/pull/17143 That PR wasn't backported, but maybe it should be. -- nosy: +hauntsaninja ___ Python trac

[issue40590] test_subprocess stuck on Windows, x64

2020-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: python -m test.testsubprocessing on my Win 10-64 with repository 3.9.0a6+, without your patch, produces minkernel\crts\ucrt\src\appcrt\lowio\write.cpp(49) : Assertion failed: (_osfile(fh) & FOPEN) minkernel\crts\ucrt\src\appcrt\lowio\close.cpp(49) : Assertio

[issue40452] IDLE: preserve clipboard on closure on Windows

2020-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please write out a manual test example (steps 1, 2, ..., N) that fails now and passes with the patch. -- title: IDLE preserve clipboard on closure (Windows) -> IDLE: preserve clipboard on closure on Windows versions: +Python 3.7, Python 3.8 ___

[issue40590] test_subprocess stuck on Windows, x64

2020-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: CI now passes. -- resolution: -> not a bug stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker ___

[issue40060] socket.TCP_NOTSENT_LOWAT is missing in official macOS builds

2020-05-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +macOS ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue13601] sys.stderr should be line-buffered when stderr is not a TTY

2020-05-15 Thread Shantanu
Shantanu added the comment: I'm wondering if this should be mentioned in Python 3.9's What's New, potentially at https://docs.python.org/3.9/whatsnew/3.9.html#sys ? This change broke one of mypy's tests on 3.9 and it was a little tricky to find what had changed. -- nosy: +hauntsanin

[issue40633] json.dumps() should encode float number NaN to null

2020-05-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: [Eric] > this is documented behavior [Mark] > I definitely wouldn't want to see nans translated to > "null" by default. I concur with both of these statements. I would support adding an option (off by default) to convert NaNs to None. While NaNs were o

[issue40633] json.dumps() should encode float number NaN to null

2020-05-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: One other issue just came to mind. While we could convert NaN to null during encoding, there isn't a reasonable way to reverse the process (a null could either be a NaN or a legitimate None). That would limit the utility of a new optional conversion. -

[issue40477] Python Launcher app on macOS 10.15 Catalina fails to run scripts

2020-05-15 Thread Ned Deily
Ned Deily added the comment: > After your final fix, if I understood you correctly, we will no longer have > to open Terminal? That's correct. That's the way the Launcher works on previous version on macOS. > will it ever be possible to not have the terminal run in the future? That's the wa

[issue40639] Strange behavior in changing nested dictionaries

2020-05-15 Thread Jacob Underwood
New submission from Jacob Underwood : I was experimenting with nested dictionaries when I came across strange behavior that I can not figure out at all. The following function, at least for me, has some weird behavior. Originally, it was a bit longer, but somehow it achieved its intended purp

[issue40477] Python Launcher app on macOS 10.15 Catalina fails to run scripts

2020-05-15 Thread Werner
Werner added the comment: I believe, I found a simple way to get what you are looking for: Open Automator and create an app. Select »execute Shell script« put in the editor: python3 $1 Save this as MyPythonLauncher or what you want. Test it: Drop a Python script on the app. It should execute

[issue40622] Tests fail with python3.6 built with VS2019

2020-05-15 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. Unfortunately, you are not actually building Python 3.6 here. Revision f3a5b7a is on the master branch, not 3.6. The fact that you are seeing a failure of test_peg_generator confirms that you are building from master (i.e. a pre-release o

[issue40622] Tests fail with python3.6 built with VS2019

2020-05-15 Thread Ned Deily
Ned Deily added the comment: P.S. If you *do* want to build the current HEAD of the 3.6 branch including as yet unreleased fixes: git checkout 3.6 If you want to build a specific release, use the v^ tags provided for each release: git checkout v3.6.8 -- __

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

2020-05-15 Thread Dennis Sweeney
Dennis Sweeney added the comment: The attached recursive_merge.py should be much less ugly and still somewhat performant. It should be the same algorithm as that PR, just written recursively rather than iteratively. I got some text files from http://www.gwicks.net/dictionaries.htm and tried

[issue40639] Strange behavior in changing nested dictionaries

2020-05-15 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi Jacob, and welcome. You said: "I was experimenting with nested dictionaries when I came across strange behavior that I can not figure out at all." This is a bug tracker, for reporting bugs, not a help desk for asking how to figure out Python's behaviour

[issue40640] Tutorial for Continue missing ... line

2020-05-15 Thread Chas Belov
New submission from Chas Belov : The tutorial code for Continue at https://docs.python.org/3.7/tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loops is missing a ... null statement. Actual code/result: >>> for num in range(2, 10): ... if num % 2 == 0: ...

[issue33797] json int encoding incorrect for dbus.Byte

2020-05-15 Thread Zackery Spytz
Zackery Spytz added the comment: Python 2 is EOL, so I think this issue should be closed. -- nosy: +ZackerySpytz ___ Python tracker ___ ___

[issue40639] Strange behavior in changing nested dictionaries

2020-05-15 Thread Jacob Underwood
Jacob Underwood added the comment: I know this post is closed, but I just wanted to say thank you for the reply and the help, and being so understanding of my many mistakes Have a good day/night!! -- ___ Python tracker

[issue40641] Reserved word pair used in lambda tutorial without being noted as a reserved word

2020-05-15 Thread Chas Belov
New submission from Chas Belov : In the tutorial for lambda expressions at https://docs.python.org/3.7/tutorial/controlflow.html#lambda-expressions the reserved word pair is introduced without noting that it is a reserved word. In the example given, I wasn't sure whether pair was a reserved w

<    1   2