[issue41439] some test cases in test_uuid.py and test_ssl.py fail on some operating systems because of no os.fork support

2020-07-29 Thread Peixing Xin
Change by Peixing Xin : -- keywords: +patch pull_requests: +20827 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21684 ___ Python tracker ___

[issue40045] Make "dunder" method documentation easier to locate

2020-07-29 Thread Hilit Oreny
Hilit Oreny added the comment: This issue has been resolved (thanks to @javadmokhtari and @nanjekyejoannah), but its Status is still "open" and the Resolution is blank... Members of Python triage team, please change the Status to "closed" and the Resolution to "fixed". Thank you! --

[issue41439] some test cases in test_uuid.py and test_ssl.py fail on some operating systems because of no os.fork support

2020-07-29 Thread Peixing Xin
New submission from Peixing Xin : Some operating systems, for example VxWorks RTOS, don't support fork(). Some test cases that depend on os.fork() will fail. test_ssl.BasicSocketTests.test_random_fork and test_uuid.TestUUIDWithExtModule.testIssue8621 fail are this case. -- components

[issue41401] Using non-ascii that require UTF-8 breaks AIX testing

2020-07-29 Thread Michael Felt
Michael Felt added the comment: The 'master' branch bot is working again, the 3.9 branch is still broken, and the 3.8 branch seems, as yet, unaffected. -- ___ Python tracker

[issue41411] Improve and consolidate f-strings docs

2020-07-29 Thread Ama Aje My Fren
Ama Aje My Fren added the comment: Hi, Thanks Ezio for the detailed response. > In the list of proposed solutions in my first message, 1-3 should be quite > easy to implement. This leaves us with 4-5. To the best of my seeing there are only two places in the documentation that have inform

[issue6143] IDLE - clear and restart the shell window

2020-07-29 Thread Zackery Spytz
Zackery Spytz added the comment: I have created PR 21682 to add a "Clear and Restart" item to the "Shell" menu. -- ___ Python tracker ___ __

[issue6143] IDLE - clear and restart the shell window

2020-07-29 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz nosy_count: 7.0 -> 8.0 pull_requests: +20826 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/21682 ___ Python tracker __

[issue41436] BUG a simple "and" and "or"

2020-07-29 Thread Samran
Samran added the comment: Thanks a lot. I am beginner and will try stack overflow next time. Depending on the error type. Thank you again I learned a lot. Sent from Mail for Windows 10 From: Karthikeyan Singaravelan Sent: Wednesday, July 29, 2020 9:57 PM To: iamsamra...@gmail.com Subject: [is

[issue41436] BUG a simple "and" and "or"

2020-07-29 Thread Samran
Samran added the comment: Thanks a lot. I am beginner and will try stack overflow next time. Depending on the error type. Thank you again I learned a lot. Sent from Mail for Windows 10 From: James Corbett Sent: Wednesday, July 29, 2020 9:57 PM To: iamsamra...@gmail.com Subject: [issue41436]

[issue41411] Improve and consolidate f-strings docs

2020-07-29 Thread Ama Aje My Fren
Change by Ama Aje My Fren : -- pull_requests: +20825 pull_request: https://github.com/python/cpython/pull/21681 ___ Python tracker ___ _

[issue9625] argparse: Problem with defaults for variable nargs when using choices

2020-07-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Paul, what is your current thinking on this? -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue40841] Provide mimetypes.sniff API as stdlib

2020-07-29 Thread YoSTEALTH
YoSTEALTH added the comment: Start and end position of the signature must be accounted for, not all file signature start at ``0`` or ``< 512`` bytes Rather then writing all the signatures manually might be a good idea to use already collected resource like https://www.garykessler.net/librar

[issue41438] TimeoutError behavior changes on async.wait_for from python3.7

2020-07-29 Thread Yury Selivanov
Yury Selivanov added the comment: > In python 3.8.4 running this script will print: > asyncio.TimeoutError happened This is the expected behavior in 3.8. > This is a breaking change which I didn't see announced in the changelog. Yeah, looks like this wasn't mentioned in what's new or elsewh

[issue41437] SIGINT blocked by socket operations like recv on Windows

2020-07-29 Thread Eryk Sun
Eryk Sun added the comment: Winsock is inherently asynchronous. It implements synchronous functions by using an alertable wait for the completion of an asynchronous I/O request. Python doesn't implement anything for a console Ctrl+C event to alert the main thread when it's blocked in an alte

[issue41438] TimeoutError behavior changes on async.wait_for from python3.7

2020-07-29 Thread Yerken Tussupbekov
New submission from Yerken Tussupbekov : ``` import asyncio from concurrent import futures logging.basicConfig( level=logging.DEBUG, format="[%(asctime)s %(name)s %(levelname)s]: %(message)s", datefmt="%H:%M:%S %d-%m-%y", ) logger: logging.Logger = logging.getLogger("ideahitme")

[issue40395] Scripts folder is Empty in python 3.8.2 for Windows 7.

2020-07-29 Thread Steve Dower
Change by Steve Dower : -- components: +Installation ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue40395] Scripts folder is Empty in python 3.8.2 for Windows 7.

2020-07-29 Thread Steve Dower
Steve Dower added the comment: It might help, but it will leave your install broken in a number of other ways. For other people finding this issue, please share your install logs (look in %TEMP% for the most recently created set of "python*.log" files). Also share your PATH, PYTHONPATH and P

[issue40075] _tkinter PythonCmd fails to acquire GIL

2020-07-29 Thread Steve Dower
Steve Dower added the comment: At a glance, it looks like ENTER_PYTHON will *restore* the GIL on the current thread, but it may be coming in on a thread that's never seen the GIL before. "The GIL" is actually the Python thread state, which is actually a per-thread data structure that's eithe

[issue41355] os.link(..., follow_symlinks=False) without linkat(3)

2020-07-29 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks for the analysis Eryk! I think you are right, changing the default to match the behavior that people have actually been experiencing on `os.link(src, dst)` makes sense. Possible suggestion: We can go one step further if anyone believes it is likel

[issue37586] macOS: posix_spawn(..., setsid=True)

2020-07-29 Thread Steve Dower
Steve Dower added the comment: I just started running into a failure that looks like this on some private builds (Xcode_11.3.1 on macOS-10.14.6-x86_64-i386-64bit): == FAIL: test_setsid (test.test_posix.TestPosixSpawnP) --

[issue41426] [curses] Grammar mistake in curses.getmouse() docs

2020-07-29 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41426] [curses] Grammar mistake in curses.getmouse() docs

2020-07-29 Thread miss-islington
miss-islington added the comment: New changeset 038827d0f59076f52e9797018ead12b1295cddc2 by Miss Islington (bot) in branch '3.8': bpo-41426 Fix grammar in curses.getmouse() documentation (GH-21677) https://github.com/python/cpython/commit/038827d0f59076f52e9797018ead12b1295cddc2 --

[issue41426] [curses] Grammar mistake in curses.getmouse() docs

2020-07-29 Thread miss-islington
miss-islington added the comment: New changeset 607ba9deffacc57983978a28c74282dfabcb455d by Miss Islington (bot) in branch '3.9': bpo-41426 Fix grammar in curses.getmouse() documentation (GH-21677) https://github.com/python/cpython/commit/607ba9deffacc57983978a28c74282dfabcb455d --

[issue41426] [curses] Grammar mistake in curses.getmouse() docs

2020-07-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +20824 pull_request: https://github.com/python/cpython/pull/21679 ___ Python tracker ___ __

[issue41426] [curses] Grammar mistake in curses.getmouse() docs

2020-07-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +20823 pull_request: https://github.com/python/cpython/pull/21678 ___ Python tracker ___ __

[issue41426] [curses] Grammar mistake in curses.getmouse() docs

2020-07-29 Thread miss-islington
miss-islington added the comment: New changeset ba18c0b13ba3c08077ea3db6658328523823a33f by Sebastien Williams-Wynn in branch 'master': bpo-41426 Fix grammar in curses.getmouse() documentation (GH-21677) https://github.com/python/cpython/commit/ba18c0b13ba3c08077ea3db6658328523823a33f -

[issue41426] [curses] Grammar mistake in curses.getmouse() docs

2020-07-29 Thread Sebastien Williams-Wynn
Change by Sebastien Williams-Wynn : -- keywords: +patch nosy: +Sebastien Williams-Wynn nosy_count: 2.0 -> 3.0 pull_requests: +20822 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21677 ___ Python tracker

[issue9625] argparse: Problem with defaults for variable nargs when using choices

2020-07-29 Thread James Corbett
James Corbett added the comment: I would love to get this issue resolved; it seems like everyone agrees that it's a bug. It came up for me recently: https://bugs.python.org/issue41047. Judging from the comments above, the consensus is that the relevant line, `self._check_value(action, value)

[issue41437] SIGINT blocked by socket operations like recv on Windows

2020-07-29 Thread Zhiming Wang
New submission from Zhiming Wang : I noticed that on Windows, socket operations like recv appear to always block SIGINT until it's done, so if a recv hangs, Ctrl+C cannot interrupt the program. (I'm a *nix developer investigating a behavioral problem of my program on Windows, so please excuse

[issue40395] Scripts folder is Empty in python 3.8.2 for Windows 7.

2020-07-29 Thread Why Me
Why Me added the comment: I had the same issue (win 10, py 3.8.5, executable installer). The solution i've found is to install python to non-standard catalog (D:/ instead of windows user folder which is under access protection). In this case, the file "easy_install.exe" will be created in th

[issue41395] pickle and pickletools cli interface doesn't close input and output file.

2020-07-29 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 4.0 -> 5.0 pull_requests: +20821 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21676 ___ Python tracker _

[issue41436] BUG a simple "and" and "or"

2020-07-29 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue41436] BUG a simple "and" and "or"

2020-07-29 Thread James Corbett
James Corbett added the comment: I think this would have been a better fit for a StackOverflow issue: https://stackoverflow.com/questions/tagged/python. Also, it's not a compilation error and it doesn't have anything to do with CPython's testing framework. Anyway, I don't think this is a bu

[issue41436] BUG a simple "and" and "or"

2020-07-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Below is the formatted program for easier reading. In the while clause you ask for the user to enter n to exit but you check (ch != n or ch != N) so on entering "n" the first condition is false but second clause is true. For "N" it's vice-versa. You

[issue41436] BUG a simple "and" and "or"

2020-07-29 Thread Samran
New submission from Samran : #this is the code from random import randint num = randint(1,10) print(type(num)) print(num) ch = None #tried changing this tried converting types guess = 0 print(type(gu

[issue41435] Allow to retrieve ongoing exception handled by every threads

2020-07-29 Thread Julien Danjou
New submission from Julien Danjou : In order to do statistical profiling on raised exception, having the ability to poll all the running threads for their currently handled exception would be fantastic. There is an exposed function named `sys._current_frames()` that allows to list the curren

[issue7291] urllib2 cannot handle https with proxy requiring auth

2020-07-29 Thread Jessica Ridgley
Change by Jessica Ridgley : -- nosy: +Jessica Ridgley versions: +Python 3.10, Python 3.8, Python 3.9 ___ Python tracker ___ ___ Pytho

[issue7291] urllib2 cannot handle https with proxy requiring auth

2020-07-29 Thread Alexey Namyotkin
Change by Alexey Namyotkin : -- nosy: +alexey.namyotkin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-07-29 Thread Guido van Rossum
Guido van Rossum added the comment: Okay, so if you know what to do please do it. ;-) -- ___ Python tracker ___ ___ Python-bugs-lis

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-07-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I was referring to PR https://github.com/python/cpython/pull/19663 (commit-503de7149d03bdcc671dcbbb5b64f761bb192b4d) that was merged as part of this issue. It started emitting PendingDeprecationWarning but was not silenced in the test. --

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-07-29 Thread Guido van Rossum
Guido van Rossum added the comment: Which patch are you referring to? Is it already merged? -- ___ Python tracker ___ ___ Python-bu

[issue41434] IDLE: Option to warn user on "Run Module" if file is not Python source

2020-07-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I disagree. IDLE already shows a note -- in the editor window -- with the first noted divergence from python code marked. We are trying to keep IDLE relatively simple and not clutter it with trivial options. ispythonsource is just a guess. The decision is

[issue41134] distutils.dir_util.copy_tree FileExistsError when updating symlinks

2020-07-29 Thread Terry J. Reedy
Change by Terry J. Reedy : -- dependencies: +Add race-free os.link and os.symlink wrapper / helper versions: +Python 3.10 ___ Python tracker ___ ___

[issue40072] Win7/Python3.8/asyncio IPv6 UDP Server raise OSError when recved any packet

2020-07-29 Thread Alex Grönholm
Alex Grönholm added the comment: My repro script also demonstrates that when binding to an interface, the bug is not triggered. -- ___ Python tracker ___ _

[issue40072] Win7/Python3.8/asyncio IPv6 UDP Server raise OSError when recved any packet

2020-07-29 Thread Alex Grönholm
Alex Grönholm added the comment: I just got hit by this bug too. Attached is the repro script I came up with before finding this report. -- nosy: +alex.gronholm Added file: https://bugs.python.org/file49346/udptest.py ___ Python tracker

[issue41434] IDLE: Option to warn user on "Run Module" if file is not Python source

2020-07-29 Thread E. Paine
E. Paine added the comment: I think this sounds like a very good idea. I would recommend using the `ispythonsource` method (in the editor class) as it already has all the logic you need while also checking for a start line like "#!/usr/bin/env python" (rather than relying solely on the exten

[issue24964] Add tunnel CONNECT response headers to httplib / http.client

2020-07-29 Thread Alexey
Change by Alexey : -- nosy: +Namyotkin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue40075] _tkinter PythonCmd fails to acquire GIL

2020-07-29 Thread E. Paine
E. Paine added the comment: Sorry for taking so long to do something with this issue. Can you please explain *why* (mostly because I don't really have a clue) acquiring the GIL fixes this crash (I am not disputing that it does - I have compared the current 3.9 branch against yours and confir

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-07-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: After this patch test_lib2to3 generates a PendingDeprecationWarning. It can be silenced as it's intentional to avoid test failures while running tests with -Werror. ./python.exe -Wall -m test test_lib2to3 0:00:00 load avg: 2.31 Run tests sequential

[issue41421] Random.paretovariate sometimes raises ZeroDivisionError for small alpha

2020-07-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: +1 for "u ** (-1.0 / alpha)"! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue41421] Random.paretovariate sometimes raises ZeroDivisionError for small alpha

2020-07-29 Thread David MacIver
David MacIver added the comment: I should say, I don't actually care about this bug at all: I only ran into it because of trying to recreate the random API and testing that my recreation worked sensibly. I thought I'd do the good citizen thing and report it, but I'm totally fine with any res

[issue41418] GH-21658: Add snake game to tools/demo!

2020-07-29 Thread Ehsonjon Gadoev
Ehsonjon Gadoev added the comment: I knew, but its not support for turtledemo cause, canvas is so small for this example! Mr @terry.reedy!! -- ___ Python tracker ___