[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

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

[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

[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

[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

[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

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

why is requests 2.24 behaving differently on different Win10Pro PCs?

2020-07-29 Thread nhpython
python 3.6+ requests 2.24 2- windows 10 Pro version 2004, build 19041.388 1- kubuntu 18.04 1-suse leap 15.2 Questions 1. how do I begin to diagnose the source of the problem? 2. Has anyone experienced this behavior? I have 4 PCs running the same code. On 3 they work, but 1 fails. I have 2

Re: Winreg

2020-07-29 Thread Barry
> On 29 Jul 2020, at 19:50, R Pasco wrote: > > I'm running python 3.8 on Windows 8.1 x64. Running the following code > produces no errors but does not add a key, name or value. I had no problems > doing this using _wirreg under python 2.7. Any insight will be helpful. How do you check that

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

[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

[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

[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

Re: How to diagnose import error when importing from .so file?

2020-07-29 Thread Chris Green
Christian Heimes wrote: > On 29/07/2020 15.34, Chris Green wrote: > > I have some Python Gtk 2 code I'm trying to convert to Python > > pygobject GTK 3. > > > > However I'm stuck on an import statement that fails:- > > > > import pyscand > > > > > > The error message is:- > > > >

Re: How to diagnose import error when importing from .so file?

2020-07-29 Thread Christian Heimes
On 29/07/2020 15.34, Chris Green wrote: > I have some Python Gtk 2 code I'm trying to convert to Python > pygobject GTK 3. > > However I'm stuck on an import statement that fails:- > > import pyscand > > > The error message is:- > > File "/usr/libexec/okimfputl.new/guicom.py", line

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

Re: Windows and Subclassing - 'OverflowError': int too long to convert

2020-07-29 Thread Eko palypse
Hello Eryk, thank you for your interest in my problem and you've nailed it, the problem was solved by putting all Windows API definitions in a separate module and making sure that I only use WinDLL. I would never have thought of that, because I only used WinDLL in this module. But a PostMessage in

Winreg

2020-07-29 Thread R Pasco
I'm running python 3.8 on Windows 8.1 x64. Running the following code produces no errors but does not add a key, name or value. I had no problems doing this using _wirreg under python 2.7. Any insight will be helpful. Code: === import winreg hive = winreg.HKEY_LOCAL_MACHINE

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

[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

Re: How to diagnose import error when importing from .so file?

2020-07-29 Thread David Lowry-Duda
> pyscand is a .so file so I fear I may be a bit stuffed unless I can > find the source code for it. > ... > In fact looking for this error it seems that is is a Python version > mismatch error and I need to recompile pyscand.so against Python 3. Is > there no way to sort of convert it to Python 3

[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

[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

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

[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

[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

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

RE: Local access to a file, How To ?

2020-07-29 Thread Steve
I guess that some things are just too simple to document. I searched man-a-site to find this but failed. open( "file.in" ) Works exactly as I want. Thanks. === Footnote: "What rhymes with orange?" "No it doesn't.." -Original Message- From:

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

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

Re: Windows and Subclassing - 'OverflowError': int too long to convert

2020-07-29 Thread Eryk Sun
On 7/28/20, Eko palypse wrote: > > Now when I get this error the message I receive in this situation is always > like this. > > hWnd=197364, msg=20, wParam=*18446744072652653190*, lParam=0 > > Traceback (most recent call last): > File "_ctypes/callbacks.c", line 237, in 'calling callback

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

How to diagnose import error when importing from .so file?

2020-07-29 Thread Chris Green
I have some Python Gtk 2 code I'm trying to convert to Python pygobject GTK 3. However I'm stuck on an import statement that fails:- import pyscand The error message is:- File "/usr/libexec/okimfputl.new/guicom.py", line 66, in import pyscand ImportError:

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

[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

[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

Re: Non IDE development strategy - what do others do that's fairly simple?

2020-07-29 Thread 2QdxY4RzWzUUiLuE
On 2020-07-29 at 11:20:42 +0100, Chris Green wrote: > I have a few python programs that I have written which I need to do > some fairly extensive changes to (to get from gtk to gobject and to > move to Python 3). This is on a Linux (xubuntu 20.04) system. I use > the command line to do just

Confused by python gtk, gobject, gi, etc. (Ubuntu repositories)

2020-07-29 Thread Chris Green
I am trying to move some code from Python 2, gtk 2 (I think!) to Python 3. I am very confused as to what Ubuntu repository packages I need to install to provide the Python 3 modules I need. Searching in the repositories (and descriptions) for pygobject what I find is:- python-gi-dev/focal

[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

Re: The speed of glob()

2020-07-29 Thread Chris Angelico
On Wed, Jul 29, 2020 at 8:25 PM Gisle Vanem wrote: > > Chris Angelico wrote: > > > BTW, I just noticed something. The path you're using for testing > > purposes is "e:/net". Is that network-attached or local? If it's a > > remote mount of some sort, then that will make a HUGE difference > > No.

Non IDE development strategy - what do others do that's fairly simple?

2020-07-29 Thread Chris Green
I have a few python programs that I have written which I need to do some fairly extensive changes to (to get from gtk to gobject and to move to Python 3). This is on a Linux (xubuntu 20.04) system. I use the command line to do just about everything (even though the program is GUI!) and so I tend

Re: The speed of glob()

2020-07-29 Thread Gisle Vanem
Chris Angelico wrote: BTW, I just noticed something. The path you're using for testing purposes is "e:/net". Is that network-attached or local? If it's a remote mount of some sort, then that will make a HUGE difference No. Did the word 'net' make you think that :-) It's a local FAT32

Re: The speed of glob()

2020-07-29 Thread Christian Heimes
On 29/07/2020 11.43, Gisle Vanem wrote: > Chris Angelico wrote: > >>> Has anybody noticed the speed of 'glob()' has >>> decreased somewhere between v3.6 and v3.10. >>> >>> I got these results: >>>     Python 3.6.5: >>>   1st run: 0.14694 >>>   2nd run: 0.09506   <- *always* the fastest

Re: The speed of glob()

2020-07-29 Thread Chris Angelico
On Wed, Jul 29, 2020 at 7:44 PM Gisle Vanem wrote: > > Chris Angelico wrote: > > >> Has anybody noticed the speed of 'glob()' has > >> decreased somewhere between v3.6 and v3.10. > >> > >> I got these results: > >> Python 3.6.5: > >> 1st run: 0.14694 > >> 2nd run: 0.09506 <-

Re: The speed of glob()

2020-07-29 Thread Gisle Vanem
Chris Angelico wrote: Has anybody noticed the speed of 'glob()' has decreased somewhere between v3.6 and v3.10. I got these results: Python 3.6.5: 1st run: 0.14694 2nd run: 0.09506 <- *always* the fastest Python 3.7.7:<- from Nuget 1st run: 0.12440 2nd

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

[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

[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

[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

Re: The speed of glob()

2020-07-29 Thread Chris Angelico
On Wed, Jul 29, 2020 at 6:27 PM Gisle Vanem wrote: > > Has anybody noticed the speed of 'glob()' has > decreased somewhere between v3.6 and v3.10. > > I got these results: >Python 3.6.5: > 1st run: 0.14694 > 2nd run: 0.09506 <- *always* the fastest >Python 3.7.7:<-

[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

The speed of glob()

2020-07-29 Thread Gisle Vanem
Has anybody noticed the speed of 'glob()' has decreased somewhere between v3.6 and v3.10. With this little test: import os, sys, timeit, glob # change to suite globPath = u'e:/net/*/*/*/*' def _glob(): glob.glob (globPath) # I used this

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

How to pass options to "make test"?

2020-07-29 Thread Marco Sulla
After building CPython from source, I run the regression test suite, using make test (I'm on Linux). Now I would run only some tests, and pass a custom option (-R :) I tried TESTOPTS="test_pickle" make test without success. I had to do: ./python -u -bb -E -Wd -m test -r --fail-env-changed -w -j 0

[issue41434] IDLE: Option to warn user on "Run Module" if file is not .py/.pyw

2020-07-29 Thread wyz23x2
Change by wyz23x2 : -- title: IDLE: Warn user on "Run Module" if file is not .py/.pyw -> IDLE: Option to warn user on "Run Module" if file is not .py/.pyw ___ Python tracker

[issue41434] IDLE: Warn user on "Run Module" if file is not .py/.pyw

2020-07-29 Thread wyz23x2
wyz23x2 added the comment: It should be able to turn on/off this feature. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41434] IDLE: Warn user on "Run Module" if file is not .py/.pyw

2020-07-29 Thread wyz23x2
New submission from wyz23x2 : It would be great if IDLE shows a note when a non-Python file is attempted to run. -- assignee: terry.reedy components: IDLE messages: 374561 nosy: terry.reedy, wyz23x2 priority: normal severity: normal status: open title: IDLE: Warn user on "Run Module"

[issue41282] Deprecate and remove distutils

2020-07-29 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- nosy: +hugovk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41433] Logging libraries BufferingHandler flushed twice at shutdown

2020-07-29 Thread Tatsunosuke Shimada
Tatsunosuke Shimada added the comment: Found related issue. https://bugs.python.org/issue901330 -- ___ Python tracker ___ ___