[issue36144] Dictionary union. (PEP 584)

2020-03-28 Thread Guido van Rossum
Guido van Rossum added the comment: I'm guessing this can be closed? -- stage: resolved -> patch review ___ Python tracker ___ ___

Re: How to uninstall Python3.7 in Windows using cmd ?

2020-03-28 Thread Mike Dewhirst
On 29/03/2020 5:06 am, Terry Reedy wrote: On 3/27/2020 8:07 AM, deepalee khare wrote: How to Uninstall Python3.7.3 using cmd ? i tried using cmd: Msiexec /uninstall C:\Python37\python.exe But it gives me below error: enter image description here Python is not currently installed with msi,

[issue40099] modify code format of json library for pep7,8

2020-03-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, we usually don't accept these kinds of changes. Minor pep 7 and 8 updates cause code churn, aren't substantive, and are sometimes upto the judgment of the original implementer (for example, whether to add blank lines or whether to put parentheses

[issue40099] modify code format of json library for pep7,8

2020-03-28 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : PEP 8 changes and cosmetic changes PR are discouraged since they will make git history less useful. -- nosy: +xtreak ___ Python tracker

NEED ASSISTANCE WITH PYTHON CLASS

2020-03-28 Thread gentleman . for . ever . and . ever
Hi, I need help with coding assignments (python to be exact) in school. I am willing to pay for your attention by the hour. Please email me at aifa...@protonmail.com if you’re interested. Please only reach out if you’re not a beginner. Trying to avoid the blind being led by the blind. Thanks!

[issue40018] test_ssl fails with OpenSSL 1.1.1e

2020-03-28 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40099] modify code format of json library for pep7,8

2020-03-28 Thread gaoxinge
Change by gaoxinge : -- components: Library (Lib) nosy: gaoxinge priority: normal pull_requests: 18575 severity: normal status: open title: modify code format of json library for pep7,8 type: enhancement versions: Python 3.9 ___ Python tracker

[issue40077] Convert static types to PyType_FromSpec()

2020-03-28 Thread Dong-hee Na
Dong-hee Na added the comment: > Can you try to measure the _abc._abc_instancecheck() and > _abc._abc_subclasscheck() I 've submitted the benchmark :) -- ___ Python tracker

[issue40077] Convert static types to PyType_FromSpec()

2020-03-28 Thread Dong-hee Na
Change by Dong-hee Na : Added file: https://bugs.python.org/file49008/bench_subclass_check.py ___ Python tracker ___ ___ Python-bugs-list

[issue40077] Convert static types to PyType_FromSpec()

2020-03-28 Thread Dong-hee Na
Change by Dong-hee Na : Added file: https://bugs.python.org/file49007/bench_isinstance_check.py ___ Python tracker ___ ___ Python-bugs-list

[issue40077] Convert static types to PyType_FromSpec()

2020-03-28 Thread Dong-hee Na
Dong-hee Na added the comment: It shown 1% slower for performance. +--+-++ | Benchmark| master-subclass | bpo-40077-subclass |

[issue40088] list.reverse(): slow sublist reverse

2020-03-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the suggestion, but the need isn't common enough to warrant an API expansion. If this were a popular operation, it might be worth optimizing, the need almost never arises. -- resolution: -> rejected stage: -> resolved status: open

[issue39982] FreeBSD: SCTP tests of test_socket fails on AMD64 FreeBSD Shared 3.x

2020-03-28 Thread Kubilay Kocak
Kubilay Kocak added the comment: koobs-freebsd-564d (CURRENT) BB has been updated past https://svnweb.freebsd.org/base?view=revision=359302 test_socket is no longer failing -- resolution: -> fixed stage: -> resolved status: open -> closed ___

[issue39780] Add HTTP Response code 103

2020-03-28 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Python tracker ___

Re: mport pytorch fails on my windows 10 PC

2020-03-28 Thread Souvik Dutta
Yes having two versions of python causes that problem. On Sat, 28 Mar, 2020, 11:53 pm joseph pareti, wrote: > apologies for asking here a presumably off-topic question: > > I have installed pytorch using (miniconda3) the following command: > > *conda install pytorch torchvision cpuonly -c

[issue32692] [3.6] test_threading.test_set_and_clear fails in AppVeyor CI

2020-03-28 Thread Kubilay Kocak
Kubilay Kocak added the comment: Seeing the following on the freebsd CURRENT bb: == FAIL: test_set_and_clear (test.test_threading.EventTests) -- Traceback

[issue40090] The referenced RFC for the json module should be corrected to rfc8259

2020-03-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: The header for 8259 says "Obsoletes: 7159" (December 2017) and the header for 7159 agrees: "Obsoleted by: 8259". But... to the extent that there is any difference, which document better describes the behavior of our json module? Does it need to be updated

[issue40088] list.reverse(): slow sublist reverse

2020-03-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: The previous issue was also about .sort and Raymond's rejection was mostly about .sort. I will let him comment about whether the speedup moves him at all. Yury, please say something about your use case. -- nosy: +terry.reedy

[issue40087] How to Uninstall Python3.7.3 using cmd?

2020-03-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: This tracker is for improving future releases of CPython. Questions about using current python should be directed elsewhere, such as python-list. You already did that and got Windows-specific answers. -- nosy: +terry.reedy resolution: -> not a

[issue40075] _tkinter PythonCmd fails to acquire GIL

2020-03-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

How to cover connection exception errors, and exit

2020-03-28 Thread dcwhatthe
Hi, I've tried urllib, requests, and some other options. But I haven't found a way to trap certain urls that aren't possible to connect from, outside the office. In those cases, I need to just output an error. So, the following code will cover the 404s and similar errors for most of the

[issue40056] more user-friendly turtledemo

2020-03-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Enhancements are not usually backported. 1. The underscores are in entries such as 'minimal_hanoi' in the Examples drop-down submenu. Changing to spaces should not hurt anything. 2. Already possible (maybe): Help => Turtledemo help has (2) How to add

[issue40097] Queue.Empty issue - Python3.8

2020-03-28 Thread Guy Kogan
Guy Kogan added the comment: Thanks Tim Peters and Raymond Hettinger, the issue has been resolved. Have a nice day! -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker

[issue40051] Dead link in help(lib2to3/idlelib/turtledemo/tkinter.sub/test_*/?)

2020-03-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Lib/lib2to3 is a directory with __init__.py containing ### empty Unlike most python-coded modules, there is no Doc/library/lib2to3.rst and hence no generated lib2to3.html. Instead, there is a 2to3.rst and 2to3.html. In the module index, module xyz is

[issue40097] Queue.Empty issue - Python3.8

2020-03-28 Thread Tim Peters
Tim Peters added the comment: > ... so the _intended_ "queue.Queue" still works. Oops. Of course that should have said: > ... so the _intended_ "queue.Empty" still works. -- ___ Python tracker

[issue40097] Queue.Empty issue - Python3.8

2020-03-28 Thread Tim Peters
Tim Peters added the comment: Raymond is talking about the cause of this error in what you showed: AttributeError: 'Queue' object has no attribute 'Empty' The exception you're _trying_ to catch is "queue.Empty", where "queue" is the queue _module_. But you rebound the name "queue" to an

Re: How to create an Excel app that runs Python?

2020-03-28 Thread Paolo G. Cantore
Am 25.03.20 um 15:21 schrieb farayao...@gmail.com: Hello Paolo, Thanks for your reply, indeed now I'm thinking on building a web app, do you have any suggestions for this? I am thinking of using Tkinter, the method that you describe using HTML is also using Javascript? Kind Regards Felipe

[issue40097] Queue.Empty issue - Python3.8

2020-03-28 Thread Guy Kogan
Guy Kogan added the comment: I still dont understand what do you mean? Can you please elaborate? -- ___ Python tracker ___ ___

[issue40095] Incorrect st_ino returned for ReFS on Windows 10

2020-03-28 Thread Martynas Brijunas
Martynas Brijunas added the comment: Hi Steve, Eryk, thank you very much for looking into this. I was looking into "st_ino" as a potential substitute of a full path of a file when it comes to uniquely identifying that file in a database. > ReFS uses a 128-bit file ID, which I gather consists

[issue40098] dir() does not return the list of valid attributes for the object

2020-03-28 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Due to the difference in the code of __getattr__ and __dir__ for object and type dir() does not return the list of valid attributes for the object. It can return a name which is not a valid attribute and miss a name of the valid attribute. 1. It does

[issue40097] Queue.Empty issue - Python3.8

2020-03-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: There's an error in your code: import queue # loads the standard library queue module ... queue = queue.Queue() # reassign queue to an instance of Queue ... except queue.Empty: # expects "queue" the module, not the

[issue40097] Queue.Empty issue - Python3.8

2020-03-28 Thread Guy Kogan
New submission from Guy Kogan : Python 3.8 Queue module is unable to handle the expection: error: Exception in thread Thread-5: Traceback (most recent call last): File "FTP_multithreading.py", line 17, in run new_connection = self.queue.get(timeout=2) File

[issue23574] datetime: support leap seconds

2020-03-28 Thread Maximilian Nöthe
Maximilian Nöthe added the comment: Could this be revisited? Especially now that datetime supports `fromisoformat`, as there are valid ISO8601 timestamps in UTC out there, that contain the leap seconds, e.g. files describing when those occured or will occur. E.g. the NTP Leap second file:

mport pytorch fails on my windows 10 PC

2020-03-28 Thread joseph pareti
apologies for asking here a presumably off-topic question: I have installed pytorch using (miniconda3) the following command: *conda install pytorch torchvision cpuonly -c pytorch* In the jupyter notebook, the 'import torch' fails: *ModuleNotFoundError: No module named 'torch._C'* I am not

Re: How to uninstall Python3.7 in Windows using cmd ?

2020-03-28 Thread Terry Reedy
On 3/27/2020 8:07 AM, deepalee khare wrote: How to Uninstall Python3.7.3 using cmd ? i tried using cmd: Msiexec /uninstall C:\Python37\python.exe But it gives me below error: enter image description here Python is not currently installed with msi, hence cannot use it to uninstall. Images

[issue15987] Provide a way to compare AST nodes for equality recursively

2020-03-28 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +18574 pull_request: https://github.com/python/cpython/pull/19211 ___ Python tracker ___

[issue39943] Meta: Clean up various issues in C internals

2020-03-28 Thread Andy Lester
Change by Andy Lester : -- pull_requests: +18573 pull_request: https://github.com/python/cpython/pull/19210 ___ Python tracker ___

[issue39943] Meta: Clean up various issues in C internals

2020-03-28 Thread Andy Lester
Change by Andy Lester : -- pull_requests: +18572 pull_request: https://github.com/python/cpython/pull/19209 ___ Python tracker ___

[issue40094] Add os.status_to_exitcode() function

2020-03-28 Thread STINNER Victor
STINNER Victor added the comment: Hum, I changed my mind and I think that it's worth it to make the function public. Moreover, I prefer "exitcode", since it is closer to "WEXITSTATUS" name than "returncode". So I renamed the function os.status_to_exitcode(). Advantages of the new new

[issue38002] 'ModifiedInterpreter' object has no attribute 'interp'

2020-03-28 Thread miss-islington
miss-islington added the comment: New changeset cb758011ce39678fb03e8ac3e924d9084252e1ad by Miss Islington (bot) in branch '3.7': bpo-38002: Use False/True for IDLE pyshell bools (GH-19203) https://github.com/python/cpython/commit/cb758011ce39678fb03e8ac3e924d9084252e1ad --

[issue38002] 'ModifiedInterpreter' object has no attribute 'interp'

2020-03-28 Thread miss-islington
miss-islington added the comment: New changeset 8c3ab189ae552401581ecf0b260a96d80dcdae28 by Miss Islington (bot) in branch '3.8': bpo-38002: Use False/True for IDLE pyshell bools (GH-19203) https://github.com/python/cpython/commit/8c3ab189ae552401581ecf0b260a96d80dcdae28 --

[issue40077] Convert static types to PyType_FromSpec()

2020-03-28 Thread STINNER Victor
STINNER Victor added the comment: > Should we stop the work until the overhead is measured? Can you try to measure the _abc._abc_instancecheck() and _abc._abc_subclasscheck() functions performance before/after your change? Functions like register() are rarely call, so I don't care much of

[issue38002] 'ModifiedInterpreter' object has no attribute 'interp'

2020-03-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +18571 pull_request: https://github.com/python/cpython/pull/19208 ___ Python tracker ___

[issue38002] 'ModifiedInterpreter' object has no attribute 'interp'

2020-03-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +18570 pull_request: https://github.com/python/cpython/pull/19207 ___ Python tracker

[issue38002] 'ModifiedInterpreter' object has no attribute 'interp'

2020-03-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 34a49aa3e4d023b5f9e9029f4f1ec68f1a8a8120 by Terry Jan Reedy in branch 'master': bpo-38002: Use False/True for IDLE pyshell bools (GH-19203) https://github.com/python/cpython/commit/34a49aa3e4d023b5f9e9029f4f1ec68f1a8a8120 --

[issue33129] Add kwarg-only option to dataclass

2020-03-28 Thread Michael Lee
Michael Lee added the comment: Hello! I've submitted a PR based on this issue, since it seemed the most relevant from my searching of the backlog. Here's a link: https://github.com/python/cpython/pull/19206 -- ___ Python tracker

[issue33129] Add kwarg-only option to dataclass

2020-03-28 Thread Michael Lee
Change by Michael Lee : -- nosy: +michael.lee nosy_count: 5.0 -> 6.0 pull_requests: +18569 pull_request: https://github.com/python/cpython/pull/19206 ___ Python tracker ___

[issue40024] Add PyModule_AddType helper function

2020-03-28 Thread Dong-hee Na
Dong-hee Na added the comment: @vstinner IMHO, we can close this issue after PR 19205 is merged. Most of use cases are replaced to PyModule_AddType. -- ___ Python tracker

[issue40024] Add PyModule_AddType helper function

2020-03-28 Thread Dong-hee Na
Change by Dong-hee Na : -- title: Add _PyModule_AddType private helper function -> Add PyModule_AddType helper function ___ Python tracker ___

[issue40086] test_etree is skipped in test_typing due to cElementTree removal

2020-03-28 Thread Furkan Onder
Furkan Onder added the comment: @xtreak You're welcome :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40024] Add _PyModule_AddType private helper function

2020-03-28 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +18568 pull_request: https://github.com/python/cpython/pull/19205 ___ Python tracker ___

[issue15987] Provide a way to compare AST nodes for equality recursively

2020-03-28 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: The solution to hashing used in PR 14970 was just using the default hashing function which is kind of a workaround to the real problem. I now concur with your comments. Will try to draft out an `ast.compare` function. -- nosy: +BTaskaya

[issue40095] Incorrect st_ino returned for ReFS on Windows 10

2020-03-28 Thread Eryk Sun
Eryk Sun added the comment: > C:\Users>fsutil file queryfileid u:\test\test.jpg > File ID is 0x29d504ae ReFS uses a 128-bit file ID, which I gather consists of a 64-bit directory ID and a 64-bit relative ID. (Take this with a grain of salt. AFAIK, Microsoft hasn't

[issue15987] Provide a way to compare AST nodes for equality recursively

2020-03-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am not sure that implementing a rich comparison of AST nodes is the right way. There are too much options (compare attributes or not, compare recursively or not, compare types or not) and __eq__ does not support options. In addition, it requires

Re: How come logging.error writes to a file, but not logging.debug or logging.info?

2020-03-28 Thread Dan Campbell
I probably won't need to do that, in this case. But good advice, in other contexts ; I'll put it in the pim, for further reference, thanks. On Fri, Mar 27, 2020 at 7:09 PM Cameron Simpson wrote: > On 27Mar2020 16:18, Dan Campbell wrote: > >Got it. I had to set the minimum level, in the

[issue8901] Windows registry path not ignored with -E option

2020-03-28 Thread Zackery Spytz
Zackery Spytz added the comment: Steve, I've updated the pull request with the requested change. Please take a look. -- nosy: +ZackerySpytz versions: +Python 3.9 -Python 3.5 ___ Python tracker

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-03-28 Thread R. David Murray
R. David Murray added the comment: My guess is that it isn't so much that __bool__ is special, as that the evaluation of values in a boolean context is special. What you have to do to make a mock behave "correctly" in the face that I'm not sure (I haven't investigated). And I might be

[issue40086] test_etree is skipped in test_typing due to cElementTree removal

2020-03-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks @furkanonder for the patch. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue40086] test_etree is skipped in test_typing due to cElementTree removal

2020-03-28 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset 34b0598295284e3ff6cedf5c05e159ce1fa54d60 by Furkan Önder in branch 'master': bpo-40086: Update/fix test_etree test case in test_typing (GH-19189) https://github.com/python/cpython/commit/34b0598295284e3ff6cedf5c05e159ce1fa54d60 --

[issue40096] Support _Py_NO_RETURN on XLC

2020-03-28 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +Michael.Felt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40096] Support _Py_NO_RETURN on XLC

2020-03-28 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +18567 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19204 ___ Python tracker ___

[issue40096] Support _Py_NO_RETURN on XLC

2020-03-28 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : Like clang and gcc, __attribute__(noreturn) can be used in xlc too for AIX. -- messages: 365208 nosy: BTaskaya priority: normal severity: normal status: open title: Support _Py_NO_RETURN on XLC type: enhancement versions: Python 3.9

[issue40095] Incorrect st_ino returned for ReFS on Windows 10

2020-03-28 Thread Steve Dower
Steve Dower added the comment: There's no guarantee that st_ino will be the same as any other queryable value. Only that it will (hopefully) be unique on that disk. stat() on Windows is just an approximation of stat() from POSIX - it's not a reliable way of reading Windows-specific

[issue40095] Incorrect st_ino returned for ReFS on Windows 10

2020-03-28 Thread Eryk Sun
Change by Eryk Sun : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware versions: +Python 3.9 ___ Python tracker ___

[issue40095] Incorrect st_ino returned for ReFS on Windows 10

2020-03-28 Thread Martynas Brijunas
New submission from Martynas Brijunas : On a Windows 10 volume formatted with ReFS, pathlib.Path.stat() returns an incorrect value for "st_ino". The correct value returned by the OS: C:\Users>fsutil file queryfileid u:\test\test.jpg File ID is 0x29d504ae An incorrect

[issue38002] 'ModifiedInterpreter' object has no attribute 'interp'

2020-03-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +18566 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19203 ___ Python tracker ___