[issue41730] Show deprecation warnings for tkinter.tix

2020-09-12 Thread wyz23x2
wyz23x2 added the comment: Ping... -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue41758] turtledemo.colormixer crashes with a stack overflow

2020-09-12 Thread Tushar Sadhwani
Tushar Sadhwani added the comment: Also, forgot to add The app crashes pretty quickly for me, to reproduce the error all I have to do is run the colormixer demo and move any of the bars up and down a couple of times. -- ___ Python tracker

[issue41758] turtledemo.colormixer crashes with a stack overflow

2020-09-12 Thread Tushar Sadhwani
Tushar Sadhwani added the comment: pyenv is a python version management tool. But this issue has nothing to do with it. I ran the same thing on python 3.8.5 (both 32 and 64bit) and the same error occured C:\Users\tusha\AppData\Local\Programs\Python\Python38-32>python.exe Python 3.8.5 (tags/v

[issue41745] BoundArguments.arguments used in the recommended way to call a callable silently succeeds for nonexistent arguments

2020-09-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you want to pursue, you might try python-list to find other users. I am not sure if this change really qualifies for python-ideas. -- ___ Python tracker ___

[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sreedevi: the Windows tag is meant for issues that involve Windows behavior that is different from other OSes; the IDLE tag is meant for issues that involve the behavior of IDLE, as distinct from other ways of running Python code. They should not be used ju

[issue41773] Clarify handling of infinity and nan in random.choices

2020-09-12 Thread Ram Rachum
Ram Rachum added the comment: I disagree, especially the bit about slowing down the function, since you're checking the total, not every element. Like the check for negative numbers that you do on line 493. But it's your call. -- ___ Python tracke

[issue41765] tkinter: XFCE task switcher shows 'Tk' instead of Window title

2020-09-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: The Xfce task switcher appears to be showing the tk widget '_class' option. When tkinter create a tk widget, it by default sets the 'class' option to the tkinter class name. This is 'Tk' and 'Toplevel' respectively for the visible windows in the example co

[issue41775] IDLE: change Shell window title

2020-09-12 Thread Terry J. Reedy
New submission from Terry J. Reedy : The IDLE Shell window title is set with pyshell line 836 shell_title = "Python " + python_version() + " Shell" The python_version() part was added in March 2013 by the first patch for issue 17390: https://hg.python.org/cpython/rev/74d9a9507019. In issue

[issue39232] asyncio crashes when tearing down the proactor event loop

2020-09-12 Thread Caleb Hattingh
Change by Caleb Hattingh : -- nosy: +cjrh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue41746] Add optional type information to asdl_seq objects

2020-09-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +21278 stage: -> patch review pull_request: https://github.com/python/cpython/pull/3 ___ Python tracker __

[issue41770] Import module doesn't updated

2020-09-12 Thread chen-y0y0
chen-y0y0 added the comment: --REOPEN-- >>> # I try: >>> import xxx >>> del sys.modules['xxx'] >>> # But: Traceback (most recent call last): File "", line 1, in del sys.modules['xxx'] NameError: name 'sys' is not found >>> # I try to import sys. >>> import sys >>> del sys.modules['xxx']

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-12 Thread Bug Reporter
Bug Reporter added the comment: Can test_ssl script determine which TLS versions are enabled in a particular Linux distribution and run tests only for enabled versions? -- ___ Python tracker ___

[issue41773] Clarify handling of infinity and nan in random.choices

2020-09-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: In general NaNs wreak havoc on any function that uses comparisons: >>> max(10, nan) 10 >>> max(nan, 10) nan It isn't the responsibility of the functions to test for NaNs. Likewise, it would not make sense to document the NaN behavior in e

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-09-12 Thread mohamed koubaa
Change by mohamed koubaa : -- pull_requests: +21277 pull_request: https://github.com/python/cpython/pull/2 ___ Python tracker ___

[issue31369] re.RegexFlag is not included in __all__, makes type inference less useful

2020-09-12 Thread Ethan Furman
Ethan Furman added the comment: Guido, do you have an opinion on adding `RegexFlag` to the `re` module's `__all__` and documenting it? There is also some discussion on making these types of int-to-Enum conversions use a `module.name` repr instead of `class.name`: used to be: >>> re.I

[issue34750] locals().update doesn't work in Enum body, even though direct assignment to locals() does

2020-09-12 Thread Ethan Furman
Ethan Furman added the comment: Antony, My apologies for the delay. What I would like to see is a real example of how you would use this new feature if it were implemented. I'm guessing it would look something like: class MyEnum(Enum): locals.update(*some magic here*)

[issue32218] add __iter__ to enum.Flag members

2020-09-12 Thread Ethan Furman
Change by Ethan Furman : -- keywords: +patch pull_requests: +21276 stage: -> patch review pull_request: https://github.com/python/cpython/pull/1 ___ Python tracker ___ ___

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-09-12 Thread mohamed koubaa
Change by mohamed koubaa : -- pull_requests: +21275 pull_request: https://github.com/python/cpython/pull/0 ___ Python tracker ___

[issue41772] Zipfile.testzip considers wrong password as correct

2020-09-12 Thread Eric V. Smith
Eric V. Smith added the comment: I believe what testzip is doing is validating the structural integrity of the file, which appears can be tested without decrypting the contents. Although it is odd that if you don't call setpassword, even with the wrong password, testzip will raise a RuntimeE

[issue41773] Clarify handling of infinity and nan in random.choices

2020-09-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, I don't see the point in cluttering the documentation or over-specifying the function for these non-sensensical toy experiments. AFAICT, no actual problem exists in practice. Also, we don't want to slow down the function by running scans for inf

[issue8704] cgitb sends a bogus HTTP header if the app crashes before finishing headers

2020-09-12 Thread igs
igs added the comment: As mentioned above standard Apache does not accept the extra characters anymore and produces '500 internal error'. So the normal behaviour of this module makes things worse in most cases instead of being helpful. -- nosy: +igs _

[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-12 Thread Paul Moore
Paul Moore added the comment: Yeah, apologies - I saw the email notification, but Eric removed me from the nosy list (quite reasonably) and I didn't notice there had been extra discussion :-( If someone wants to re-open the issue, feel free. -- _

[issue41745] BoundArguments.arguments used in the recommended way to call a callable silently succeeds for nonexistent arguments

2020-09-12 Thread Julian Berman
Julian Berman added the comment: Totally fair! Sorry, was just making sure the label change wasn't intended to say it *wasn't* enough to warrant a design change :) (which I agree should be discussed with folks who do use that functionality, of which I only recently had to). --

[issue39337] codecs.lookup() ignores non-ASCII characters, whereas encodings.normalize_encoding() copies them

2020-09-12 Thread hai shi
Change by hai shi : -- pull_requests: +21274 pull_request: https://github.com/python/cpython/pull/22219 ___ Python tracker ___ ___ P

[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: I think Eric left the issue open because he was hoping to update the FAQs and/or docs with information about this issue. I will leave it to someone else to decide whether or not to reopen it. -- ___ Python tracke

[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-12 Thread Paul Moore
Paul Moore added the comment: There is a bug in your program. You should not mutate the list while looping over it. -- nosy: +paul.moore ___ Python tracker ___ __

[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-12 Thread Paul Moore
Change by Paul Moore : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: You say: "output should be empty list" but that's not actually correct. You intend the output to be the empty list, but if you think carefully about what happens during iteration, you should see that the behaviour is correct. To make it easier to see what

[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-12 Thread Eric V. Smith
Eric V. Smith added the comment: Removing Windows and IDLE devs from nosy list, since this isn't related to either of those areas. -- nosy: -paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware ___ Python tracker

[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-12 Thread Eric V. Smith
Change by Eric V. Smith : -- components: +Documentation -IDLE, Windows ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-12 Thread Eric V. Smith
Eric V. Smith added the comment: You should not mutate a list while iterating over it. See, for example https://stackoverflow.com/questions/6260089/strange-result-when-removing-item-from-a-list I couldn't find a place where this is mentioned in the python list docs. If it's not there, we sh

[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-12 Thread Sreedevi
New submission from Sreedevi : Define a list which has all same elements. While removing the same element from list using for loop and by using remove() method, output should be empty list, but the output we get is one element is unremoved -- assignee: terry.reedy components: IDLE, Wi

[issue41773] Clarify handling of infinity and nan in random.choices

2020-09-12 Thread Ram Rachum
New submission from Ram Rachum : I was recently tripped up by a bug caused by passing infinite weights to random.choices. I toyed around with that function, and it seemed that when it's given weights that include infinity or NaN, it selects a specific element, always without being random. Tha

[issue41773] Clarify handling of infinity and nan in random.choices

2020-09-12 Thread Ram Rachum
Change by Ram Rachum : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue41765] tkinter: XFCE task switcher shows 'Tk' instead of Window title

2020-09-12 Thread E. Paine
E. Paine added the comment: Thank you for reporting this issue. I wanted to start by pointing out a finer detail: the XFCE program title on the task switcher (the thing you're reporting and I don't have a clue how to describe) is not the same as the default window title (the program title is

[issue41672] imaplib: wrong return type documented

2020-09-12 Thread Dong-hee Na
Dong-hee Na added the comment: Thanks Norbert for the contribution! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41672] imaplib: wrong return type documented

2020-09-12 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 3a150c77c31da240f1b92cab9ec74f1fa701b869 by Miss Islington (bot) in branch '3.8': bpo-41672: Fix type mismatches in imaplib docs (GH-22207) (#22218) https://github.com/python/cpython/commit/3a150c77c31da240f1b92cab9ec74f1fa701b869 -- ___

[issue41744] NuGet python.props only works in python nuget, not other variants

2020-09-12 Thread Vaclav Slavik
Vaclav Slavik added the comment: Sorry for the omission (fixed now), and thanks for your patience! -- ___ Python tracker ___ ___ Py

[issue41731] test_cmd_line_script fails with verbosity level more than 1

2020-09-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Terry. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41766] Python3.10 (x64) crashes after flake8/pyflakes on Windows

2020-09-12 Thread neonene
neonene added the comment: I applied PR 21961 to master and comfirmed no crash. I'll close this issue. Thanks for your quick reply. -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue41731] test_cmd_line_script fails with verbosity level more than 1

2020-09-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue23706] pathlib.Path.write_text should include a newline argument

2020-09-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +easy stage: -> needs patch versions: +Python 3.10 -Python 3.5 ___ Python tracker ___ ___

[issue41765] XFCE task switcher shows 'Tk' insteadl of Window title

2020-09-12 Thread Mark Summerfield
Mark Summerfield added the comment: Same applied to IDLE for Python 3.8 -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41765] XFCE task switcher shows 'Tk' insteadl of Window title

2020-09-12 Thread Mark Summerfield
Mark Summerfield added the comment: I just ran IDLE and it seems to have the same problem. Although the taskbar entry is 'Python 3.6.9 Shell' (ought really to be 'IDLE'), when context switching the switcher shows the correct icon but the title 'Toplevel'. --

[issue41672] imaplib: wrong return type documented

2020-09-12 Thread miss-islington
miss-islington added the comment: New changeset 98f6e67a3d6e57727177ec2fb5cb68ef9a468aca by Miss Islington (bot) in branch '3.9': bpo-41672: Fix type mismatches in imaplib docs (GH-22207) https://github.com/python/cpython/commit/98f6e67a3d6e57727177ec2fb5cb68ef9a468aca -- _

[issue41672] imaplib: wrong return type documented

2020-09-12 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue41672] imaplib: wrong return type documented

2020-09-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +21273 pull_request: https://github.com/python/cpython/pull/22218 ___ Python tracker ___ __

[issue41672] imaplib: wrong return type documented

2020-09-12 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +21272 pull_request: https://github.com/python/cpython/pull/22217 ___ Python tracker _

[issue41672] imaplib: wrong return type documented

2020-09-12 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset c75330605d4795850ec74fdc4d69aa5d92f76c00 by Norbert Cyran in branch 'master': bpo-41672: Fix type mismatches in imaplib docs (GH-22207) https://github.com/python/cpython/commit/c75330605d4795850ec74fdc4d69aa5d92f76c00 --

[issue39651] Exceptions raised by EventLoop.call_soon_threadsafe

2020-09-12 Thread miss-islington
miss-islington added the comment: New changeset 7dfcc8e0795cce6a8cb42ae2a7f159a38da6b38a by Miss Islington (bot) in branch '3.9': bpo-39651: Fix asyncio proactor _write_to_self() (GH-22197) https://github.com/python/cpython/commit/7dfcc8e0795cce6a8cb42ae2a7f159a38da6b38a -- ___

[issue39651] Exceptions raised by EventLoop.call_soon_threadsafe

2020-09-12 Thread miss-islington
miss-islington added the comment: New changeset 530d1105ed7b0aa5ef76e3116918fe39bc6a4823 by Miss Islington (bot) in branch '3.8': bpo-39651: Fix asyncio proactor _write_to_self() (GH-22197) https://github.com/python/cpython/commit/530d1105ed7b0aa5ef76e3116918fe39bc6a4823 -- ___

[issue41766] Python3.10 (x64) crashes after flake8/pyflakes on Windows

2020-09-12 Thread STINNER Victor
STINNER Victor added the comment: If it's another _ast regression, see bpo-41631: I proposed PR 21961 to fix it. I failed to reproduce the issue on Linux with a debug build, on the development master branch: ./python -m venv env env/bin/python -m pip install pyflakes flake8 env/bin/python -m

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-12 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p