[issue42159] AsyncMock restores stopped patch if same object stopped multiple times

2020-10-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is not a problem with AsyncMock. The patching is not done when the patch object is created to store reference to the original unpatched function. Hence patcher1, patcher2 that patch the same function don't store a reference to the original syn

[issue42165] Question about converting numpy float to bytes (bug??)

2020-10-27 Thread hyoxt121
New submission from hyoxt121 : Hi! In order to convert numpy float to bytes, we are using tobytes() method: import pickle import numpy as np pickle.loads(np.float64(0.34103)) and the expected result is like below (because np.float64(0.34103) is not bytes objects, appropriate errors are expect

[issue42151] Pure Python xml.etree.ElementTree is missing default attribute values

2020-10-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: specified_attributes = True is also set in xml.dom.expatbuilder. Should not it be set to true in the C implementation of ElementTree? -- ___ Python tracker __

[issue42165] Question about converting numpy float to bytes (bug??)

2020-10-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Seems that np.float64 implements the buffer protocol, i.e. it can be accepted in any function that supports the buffer protocol (for example b'abc\xc1\x1c=~o\xd3\xd5?def'.index(np.float64(0.34103))). And pickle.loads() is one of such functions, it accepts

[issue42096] zipfile.is_zipfile incorrectly identifying a gzipped file as a zip archive

2020-10-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: ZipFile.open() is not the code for opening a zip file. :) That's the code for opening a file embedded within an already constructed mode='r' archive as done the ZipFile.__init__() constructor. By the time you've gotten to the open() method, you've loaded

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2020-10-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >>> email.utils.parsedate_to_datetime(None) Traceback (most recent call last): File "", line 1, in File "/home/serhiy/py/cpython/Lib/email/utils.py", line 200, in parsedate_to_datetime raise ValueError('Invalid date value or format "%s"' % str(data)

[issue42166] corrupted size vs. prev_size

2020-10-27 Thread kannan
New submission from kannan : Getting the below error from long running python processes -- 2020-10-18T21:52:59.383Z === Backtrace: = 2020-10-18T21:52:59.383Z /lib64/libc.so.6(+0x7f3e4)[0x7f7bd3e053e4] 2020-10-18T21:52:59.383Z /

[issue42166] corrupted size vs. prev_size

2020-10-27 Thread kannan
kannan added the comment: python process getting killed after this error -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue42166] corrupted size vs. prev_size

2020-10-27 Thread kannan
kannan added the comment: Implementation details 1). python long running stomp.py client (stomp+ssl) 2). main process thread used to create connection (while true sleep for holding the process) 3). listener thread receives message in another thread --

[issue42166] corrupted size vs. prev_size

2020-10-27 Thread kannan
kannan added the comment: Implementation details 1). python long running stomp.py client (stomp+ssl) 2). main process thread used to create connection (while true sleep for holding the process) 3). listener thread receives message and processes it -- _

[issue42166] corrupted size vs. prev_size

2020-10-27 Thread Christian Heimes
Christian Heimes added the comment: Could you please provide detailed information about your platform (OS, CPU, vendor/distribution, Python version, and OpenSSL version), a full stacktrace with debug symbols, and Python code to reproduce the error? Why is the _ssl module in /usr/local/lib wh

[issue42165] Question about converting numpy float to bytes (bug??)

2020-10-27 Thread hyoxt121
hyoxt121 added the comment: If so, regardless of invalid operation, can anyone explain why "pickle.loads(np.float64(0.34104))" prints "True"? -- ___ Python tracker ___ __

[issue42167] Documentation for SETUP_WITH opcode is wrong

2020-10-27 Thread Patrick Reader
New submission from Patrick Reader : bpo-33387 introduced two new opcodes, `RERAISE` and `WITH_EXCEPT_START` (previously called `WITH_EXCEPT_FINISH`), replacing the previous `WITH_CLEANUP_START`, `WITH_CLEANUP_FINISH`, `BEGIN_FINALLY`, `END_FINALLY`, `CALL_FINALLY` and `POP_FINALLY`. The [do

[issue42167] Documentation for SETUP_WITH opcode is wrong

2020-10-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue42168] Question about deserializing some numbers (bug??)

2020-10-27 Thread hyoxt121
New submission from hyoxt121 : Hi! In order to deserialize bytes object, we use pickle.loads(): import pickle import numpy as np pickle.loads(np.float64(0.34103)) and the expected result is like below (because np.float64(0.34103) is not bytes objects, appropriate errors are expected)

[issue42165] closed (reopen with other issue)

2020-10-27 Thread hyoxt121
Change by hyoxt121 : -- title: Question about converting numpy float to bytes (bug??) -> closed (reopen with other issue) ___ Python tracker ___ __

[issue42165] Question about converting numpy float to bytes (bug??)

2020-10-27 Thread hyoxt121
hyoxt121 added the comment: I will close and reopen again with some modification. -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue42168] Question about deserializing some numbers (bug??)

2020-10-27 Thread hyoxt121
hyoxt121 added the comment: Can anyone explain "pickle.loads(np.float64(0.34104))" prints "True"? -- ___ Python tracker ___ ___ Pyt

[issue42111] Make the xxlimited module an example of best extension module practices

2020-10-27 Thread Petr Viktorin
Petr Viktorin added the comment: Thanks! That's my plan, but when I added tests I realized I need to pt in some general improvements to the stable ABI first. -- ___ Python tracker __

[issue42169] Apparently all documentation on @typing.overload is wrong

2020-10-27 Thread Peilonrayz
New submission from Peilonrayz : The documentation for `typing.overload` says in a non-stub file the last definition shouldn't be typed. However running that through `mypy --strict` fails. I opened an issue on mypy a couple of days ago, however was told to report this on CPython. ``` >>> imp

[issue42165] closed (reopen with other issue)

2020-10-27 Thread Eric V. Smith
Eric V. Smith added the comment: To answer the question: > "can anyone explain why "pickle.loads(np.float64(0.34104))" prints "True" You can use pickletools.dis: >>> bytes(np.float64(0.34104)) b'\x88.\xa8o\x99\xd3\xd5?' >>> pickletools.dis(bytes(np.float64(0.34104))) 0: \x88 NEWTRUE

[issue42165] closed (reopen with other issue)

2020-10-27 Thread Ronald Oussoren
Change by Ronald Oussoren : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue42163] _replace() no longer works on platform.uname_result objects

2020-10-27 Thread Jason R. Coombs
Change by Jason R. Coombs : -- assignee: -> jaraco ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue42163] _replace() no longer works on platform.uname_result objects

2020-10-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: Indeed, it was unexpected that consumers of the `uname_result` were using `_replace`. In fact, the focus of the tests is on ensuring that users are able to access the items by index, e.g. `uname()[0]`. It should be possible to support `_replace` on the `una

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-10-27 Thread STINNER Victor
STINNER Victor added the comment: Miro: > This also breaks pycurl: > https://github.com/pycurl/pycurl/pull/660 Right, see my previous comment, another PR was already proposed in May! me: > This change broke pycurl: > https://github.com/pycurl/pycurl/pull/636 Merged pycurl fix: https://github

[issue42170] splitdrive fails for UNC path with the "\\?\UNC\" prefix.

2020-10-27 Thread Quentin Peter
Change by Quentin Peter : -- components: Library (Lib) nosy: qpeter priority: normal severity: normal status: open title: splitdrive fails for UNC path with the "\\?\UNC\" prefix. type: behavior versions: Python 3.7 ___ Python tracker

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-10-27 Thread STINNER Victor
STINNER Victor added the comment: Miro: > I don't understand the rationale for this change in depth, but does the > benefit outweigh (yet another) backwards incompatibility? I wrote PEP 620 "Hide implementation details from the C API" to explain the rationale: https://www.python.org/dev/peps

[issue42170] splitdrive fails for UNC path with the "\\?\UNC\" prefix.

2020-10-27 Thread Quentin Peter
New submission from Quentin Peter : Python 3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)] Type "copyright", "credits" or "license" for more information. IPython 7.18.1 -- An enhanced Interactive Python. In [1]: import os.path In [2]: os.path.splitdrive(r"\\machine\mountpoi

[issue42170] splitdrive fails for UNC path with the "\\?\UNC\" prefix.

2020-10-27 Thread Quentin Peter
Change by Quentin Peter : -- keywords: +patch pull_requests: +21916 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23001 ___ Python tracker ___ __

[issue42170] splitdrive fails for UNC path with the "\\?\UNC\" prefix.

2020-10-27 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> support "UNC" device paths in ntpath.splitdrive ___ Python tracker

[issue42168] Question about deserializing some numbers (bug??)

2020-10-27 Thread Eric V. Smith
Eric V. Smith added the comment: I explained this in https://bugs.python.org/issue42165#msg379755 This is not a bug in python, it's a bug in your code. You should not expect to unpickle something that wasn't created by pickling it. -- nosy: +eric.smith resolution: -> not a bug stage

[issue42111] Make the xxlimited module an example of best extension module practices

2020-10-27 Thread Petr Viktorin
Change by Petr Viktorin : -- assignee: -> petr.viktorin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue42168] Question about deserializing some numbers (bug??)

2020-10-27 Thread Eric V. Smith
Eric V. Smith added the comment: Or stated differently: if you pass random byte strings to pickle.loads(), sometimes it might succeed and produce a random object because you've managed to create a valid pickle. But most often it will fail. -- ___

[issue42171] Add PEP 573 to the stable ABI

2020-10-27 Thread Petr Viktorin
New submission from Petr Viktorin : The following PEP 573 were not added to the Windows list of stable ABI symbols (PC/python3dll.c): - PyModule_AddType - PyType_FromModuleAndSpec - PyType_GetModule - PyType_GetModuleState I'd like to add them. Also, the PEP introduces the (METH_FASTCALL | ME

[issue32659] Solaris "stat" should support "st_fstype"

2020-10-27 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue42172] Typo in test library for test_socket.py

2020-10-27 Thread Akashkumar D Khunt
New submission from Akashkumar D Khunt : There is a typo in test_socket.py file where instead of “testSecondCmsgTruncInData” function name is “testSecomdCmsgTruncInData”. -- components: Tests messages: 379763 nosy: adkhunt priority: normal severity: normal status: open title: Typo in te

[issue42172] Typo in test library for test_socket.py

2020-10-27 Thread Dong-hee Na
Dong-hee Na added the comment: @adkhunt Do you want to submit the patch for this? If you want, please ping me on your PR -- nosy: +corona10 ___ Python tracker ___

[issue42171] Add PEP 573 to the stable ABI

2020-10-27 Thread Dong-hee Na
Dong-hee Na added the comment: > I'd like to add it anyway. Nice ;) -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list

[issue42172] Typo in test library for test_socket.py

2020-10-27 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42171] Add PEP 573 to the stable ABI

2020-10-27 Thread Petr Viktorin
Petr Viktorin added the comment: Correction: PyModule_AddType is not from PEP 573. I'd like to add it anyway. -- ___ Python tracker ___ ___

[issue42173] Drop Solaris support

2020-10-27 Thread STINNER Victor
New submission from STINNER Victor : In past years, very few Python core developers took care of the Solaris support. The latest significant Solaris enhancement was in 2018 with the addition of a new Solaris st_fstype attribute to os.stat(), in Python 3.7, by Jesús Cea Avión (bpo-32659). Anot

[issue42173] Drop Solaris support

2020-10-27 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue42173] Drop Solaris support

2020-10-27 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +21917 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23002 ___ Python tracker ___ _

[issue42169] Apparently all documentation on @typing.overload is wrong

2020-10-27 Thread Ken Jin
Change by Ken Jin : -- nosy: +gvanrossum, kj, levkivskyi versions: -Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-l

[issue42169] Apparently all documentation on @typing.overload is wrong

2020-10-27 Thread Ken Jin
Change by Ken Jin : -- versions: +Python 3.6, Python 3.7 -Python 3.10, Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2020-10-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 37834136d0afe51d274bfc79d8705514cbe73727 by Victor Stinner in branch 'master': bpo-42161: Modules/ uses _PyLong_GetZero() and _PyLong_GetOne() (GH-22998) https://github.com/python/cpython/commit/37834136d0afe51d274bfc79d8705514cbe73727 ---

[issue42169] Apparently all documentation on @typing.overload is wrong

2020-10-27 Thread Ken Jin
Ken Jin added the comment: Apologies to all for the spam, I made a misclick. Maybe the documentation could be clearer for that specific example. The following code seems to work on mypy (in a non-stub file): ``` from typing import overload, Any, Optional @overload def utf8(value: None) -> N

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2020-10-27 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +21918 pull_request: https://github.com/python/cpython/pull/23003 ___ Python tracker ___ __

[issue6761] Class calling

2020-10-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +21919 pull_request: https://github.com/python/cpython/pull/23004 ___ Python tracker __

[issue6761] Class calling

2020-10-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 95f710c55714153f0c8cce48f8215bb3d866ac1d by Andre Delfino in branch 'master': bpo-6761: Enhance __call__ documentation (GH-7987) https://github.com/python/cpython/commit/95f710c55714153f0c8cce48f8215bb3d866ac1d -- nosy: +vstinner

[issue6761] Class calling

2020-10-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +21920 pull_request: https://github.com/python/cpython/pull/23005 ___ Python tracker ___ ___

[issue42162] The license page for Python 3.0 is messed up

2020-10-27 Thread Ken Jin
Ken Jin added the comment: Python 3.0.x is no longer being maintained. As such I don't think there's a way for a fix to be ported over. I might be wrong though. -- nosy: +kj ___ Python tracker _

[issue6761] Class calling

2020-10-27 Thread miss-islington
miss-islington added the comment: New changeset b1ce0440bfe87e092ca5e2e57875fb7fc1129137 by Miss Skeleton (bot) in branch '3.8': bpo-6761: Enhance __call__ documentation (GH-7987) https://github.com/python/cpython/commit/b1ce0440bfe87e092ca5e2e57875fb7fc1129137 -- _

[issue42174] shutil.get_terminal_size() returns 0 when run in a pty

2020-10-27 Thread Florian Bruhin
New submission from Florian Bruhin : When shutil.get_terminal_size() is used in a PTY, the os.get_terminal_size() call can return (0, 0). With the pty script from https://github.com/python/mypy/issues/8144#issue-537760245: $ python3 t.py python3 -c 'import shutil; print(shutil.get_terminal_s

[issue6761] Class calling

2020-10-27 Thread miss-islington
miss-islington added the comment: New changeset 2cb259fcf3cde56f359c2f393280689784dcc834 by Miss Skeleton (bot) in branch '3.9': bpo-6761: Enhance __call__ documentation (GH-7987) https://github.com/python/cpython/commit/2cb259fcf3cde56f359c2f393280689784dcc834 -- _

[issue42166] corrupted size vs. prev_size

2020-10-27 Thread kannan
kannan added the comment: Thanks for the reply Christian Heimes Environment details 1). os - centos 7 2). python - 3.7.3 python installed inside docker container and we are using AWS ECS with fargate for docker container deployment while installing python37 we are copying below files cp /us

[issue42166] corrupted size vs. prev_size

2020-10-27 Thread kannan
kannan added the comment: we didn't compile the _ssl module -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue42166] corrupted size vs. prev_size

2020-10-27 Thread Christian Heimes
Christian Heimes added the comment: Why are you copying the file around? How did you install Python 3.7 in the first place. AFAIK CentOS 7 does not come with Python 3.7. Python 3.7.3 is old and no longer supported. Can you upgrade to a more recent version of 3.7? -- __

[issue42166] corrupted size vs. prev_size

2020-10-27 Thread kannan
kannan added the comment: This error happens randomly and we couldn't able to reproduce the error. -- ___ Python tracker ___ ___ Py

[issue42166] corrupted size vs. prev_size

2020-10-27 Thread kannan
kannan added the comment: we are installing python using wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz export LD_LIBRARY_PATH=/usr/local/Python3.7/lib export PATH="/usr/local/bin:$PATH" -- ___ Python tracker

[issue37609] support "UNC" device paths in ntpath.splitdrive

2020-10-27 Thread Eryk Sun
Eryk Sun added the comment: I'm attaching a rewrite of splitdrive() from msg352355. This version uses an internal _next() function to get the indices of the next path component, ignoring repeated separators. It also flattens the nested structure of the previous implementation by adding multi

[issue36457] functools.singledispatchmethod interacts poorly with subclasses

2020-10-27 Thread Bojan Jovanovic
Change by Bojan Jovanovic : -- nosy: +bojan.jovanovic.gtech ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue42166] corrupted size vs. prev_size

2020-10-27 Thread Christian Heimes
Christian Heimes added the comment: There isn't much I can do for you. CentOS 7 has OpenSSL 1.0.2. There might be a threading issue in OpenSSL or Python. Both Python 3.7.3 and OpenSSL 1.0.2 are no longer supported. The minimum supported versions are OpenSSL 1.1.1 and Python 3.7.9. You'd hav

[issue42036] Unchecked return in Modules/posixmodule.c from multiple function calls

2020-10-27 Thread Sagar Pant
Sagar Pant added the comment: Bumping this up for updates. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42034] Unchecked return in Objects/typeobject.c and possible uninitialized variables in cls and new_mro

2020-10-27 Thread Sagar Pant
Sagar Pant added the comment: Bumping this up for updates. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42175] long lines from interactive stdin are truncated

2020-10-27 Thread Anthony Sottile
New submission from Anthony Sottile : this was originally pointed out in a comment on my youtube video here: https://youtu.be/Xf_82stIbB8 here's a reproduction: 1. produce 5000 characters of output: python3 -c 'print("a"*5000)' 2. copy that to the clipboard 3. run this: python3 -c 'import sy

[issue42166] corrupted size vs. prev_size

2020-10-27 Thread kannan
kannan added the comment: As you said we are using a threaded consumers in which main thread will create connection and listener thread will receive message. We are passing main thread object to listener to acknowledge the message using connection object (conn.ack) in connection class self.c

[issue42175] long lines from interactive stdin are truncated

2020-10-27 Thread Ammar Askar
Ammar Askar added the comment: This doesn't show up in piping so I think it might be a Linux terminal limitation. This thread claims a 4096 limit in cooked terminals, would you mind giving one of the work-arounds here a try and see if it that gets rid of it: https://unix.stackexchange.com/qu

[issue42169] Apparently all documentation on @typing.overload is wrong

2020-10-27 Thread Guido van Rossum
Guido van Rossum added the comment: > The documentation for `typing.overload` says in a non-stub file the last > definition shouldn't be typed. Incorrect. It doesn't say it shouldn't be *typed*, it says it shouldn't be *decorated with @overload*, which is a different thing. The example is c

[issue42175] long lines from interactive stdin are truncated

2020-10-27 Thread Anthony Sottile
Anthony Sottile added the comment: indeed! that's it -- you learn something every day :) -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue42175] long lines from interactive stdin are truncated

2020-10-27 Thread Eryk Sun
Eryk Sun added the comment: For Windows see issue 41849. The legacy limit (i.e. PYTHONLEGACYWINDOWSSTDIO) for reading input via io.FileIO is 8K characters in Windows, but with io._WindowsConsoleIO, it's only 512 characters, which is far too small in general. The legacy implementation of inpu

[issue42176] Valgrind reports "Conditional jump or move depends on uninitialised value(s)" in `PyUnicode_AsEncodedString` and `PyUnicode_Decode`

2020-10-27 Thread Boris Staletic
New submission from Boris Staletic : When running valgrind on a C code that calls `PyUnicode_AsEncodedString` and `PyUnicode_Decode`, valgrind reports that there's a conditional jump based on uninitialized variable, if the encoding is "latin1". I am able to replicate the error 100% of the tim

[issue42096] zipfile.is_zipfile incorrectly identifying a gzipped file as a zip archive

2020-10-27 Thread Brian Kohan
Brian Kohan added the comment: I concur with Gregory. It seems that the action here is to just make it apparent in the docs the very real possibility of false positives. In my experience processing data from the wild, I see a pretty high rate of about 1/1000. I'm sure the probability is a fu

[issue41659] PEG discrepancy on 'if {x} {a}: pass'

2020-10-27 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: New changeset 15acc4eaba8519d7d5f2acaffde65446b44dcf79 by Lysandros Nikolaou in branch 'master': bpo-41659: Disallow curly brace directly after primary (GH-22996) https://github.com/python/cpython/commit/15acc4eaba8519d7d5f2acaffde65446b44dcf79

[issue42099] Fix reference to ob_type in unionobject.c and ceval

2020-10-27 Thread Mark Shannon
Mark Shannon added the comment: New changeset 0564aafb71a153dd0aca4b9266dfae9336a4f2cb by Neil Schemenauer in branch 'master': bpo-42099: Fix reference to ob_type in unionobject.c and ceval (GH-22829) https://github.com/python/cpython/commit/0564aafb71a153dd0aca4b9266dfae9336a4f2cb

[issue6761] Class calling

2020-10-27 Thread Éric Araujo
Change by Éric Araujo : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.9 -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.6, Python 3.7 ___ Python tracker

[issue42099] Fix reference to ob_type in unionobject.c and ceval

2020-10-27 Thread Mark Shannon
Mark Shannon added the comment: Thanks Neil -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41659] PEG discrepancy on 'if {x} {a}: pass'

2020-10-27 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +21921 pull_request: https://github.com/python/cpython/pull/23006 ___ Python tracker ___ __

[issue42169] Apparently all documentation on @typing.overload is wrong

2020-10-27 Thread Peilonrayz
Peilonrayz added the comment: Thank you for the insight Guido. Sorry to be a bother everyone. -- resolution: not a bug -> versions: +Python 3.6, Python 3.7 ___ Python tracker ___

[issue42151] Pure Python xml.etree.ElementTree is missing default attribute values

2020-10-27 Thread Felix C. Stegerman
Felix C. Stegerman added the comment: > specified_attributes = True is also set in xml.dom.expatbuilder. That's good to know and should perhaps be addressed as well. > Should not it be set to true in the C implementation of ElementTree? That would break existing code. Including mine. I als

[issue41100] Build failure on macOS 11 (beta)

2020-10-27 Thread Misty De Méo
Change by Misty De Méo : -- nosy: +mistydemeo nosy_count: 11.0 -> 12.0 pull_requests: +21922 pull_request: https://github.com/python/cpython/pull/22732 ___ Python tracker ___ __

[issue33896] Document what components make up the filecmp.cmp os.stat signature.

2020-10-27 Thread Stavros Macrakis
Stavros Macrakis added the comment: I agree completely that the documentation should be more explicit. The concept of "os.stat signature" is not defined anywhere as far as I can tell. The naive reader (like me) might mistakenly assume that the "os.stat signature" is a "digital signature" (i.

[issue41100] Build failure on macOS 11 (beta)

2020-10-27 Thread Lawrence D'Anna
Change by Lawrence D'Anna : -- pull_requests: +21923 pull_request: https://github.com/python/cpython/pull/21246 ___ Python tracker ___ _

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2020-10-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: Why did you put _PyLong_GetOne() inside the loop for the fast path and outside the loop for the slow path? == diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2020-10-27 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +21924 pull_request: https://github.com/python/cpython/pull/23008 ___ Python tracker ___ __

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2020-10-27 Thread STINNER Victor
STINNER Victor added the comment: > Why did you put _PyLong_GetOne() inside the loop for the fast path and > outside the loop for the slow path? Oh, I didn't notice that the first part was also a loop. I wrote PR 23008 to move the call out of the loop. I tried to avoid calling the function

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2020-10-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset c310185c081110741fae914c06c7aaf673ad3d0d by Victor Stinner in branch 'master': bpo-42161: Remove private _PyLong_Zero and _PyLong_One (GH-23003) https://github.com/python/cpython/commit/c310185c081110741fae914c06c7aaf673ad3d0d --

[issue42169] Apparently all documentation on @typing.overload is wrong

2020-10-27 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue42177] Improving KeyError exception

2020-10-27 Thread Orian Zinger
New submission from Orian Zinger : Hi all, As a Python developer, I encountered lots of blurry exception messages in the product logs such as: Failed to do something. Exception: 'some key' I believe printing the key name without explaining the exception itself is bad (explicit is better

[issue42096] zipfile.is_zipfile incorrectly identifying a gzipped file as a zip archive

2020-10-27 Thread STINNER Victor
STINNER Victor added the comment: > functions who's point is to be fast and not consume an amount of memory > determined by the input data I proposed to read the first 4 bytes of the file. It's a fixed length. -- ___ Python tracker

[issue42178] failed pickle hangs python on exit in CMD.exe only

2020-10-27 Thread Charles McMarrow
New submission from Charles McMarrow : This bug only happens for me in Windows 10 when using cmd.exe. This bug does not happen IDLE. It sometimes happens in PowerShell. I ran mp_hang.py with 3.9.0 hangs on cmd/powershell 3.8.6 hangs on cmd 3.8.5 hangs on cmd/powershell Microsoft Windows [Ver

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2020-10-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 35b95aaf21534e4a8e3370dfd6f7482265316c9e by Victor Stinner in branch 'master': bpo-42161: Micro-optimize _collections._count_elements() (GH-23008) https://github.com/python/cpython/commit/35b95aaf21534e4a8e3370dfd6f7482265316c9e -- __

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2020-10-27 Thread STINNER Victor
STINNER Victor added the comment: Thanks Raymond, I fixed the code. I close the issue, I removed _PyLong_Zero and _PyLong_One variables. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue41805] types.GenericAlias and types.Union have no documentation

2020-10-27 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 4173320920706b49a004b8d7108e8984e3fc by kj in branch 'master': bpo-41805: Documentation for PEP 585 (GH-22615) https://github.com/python/cpython/commit/4173320920706b49a004b8d7108e8984e3fc -- nosy: +gvanrossum ___

[issue10663] configure shouldn't set a default OPT

2020-10-27 Thread Irit Katriel
Irit Katriel added the comment: I couldn't find a configure.in. Is this issue out of date? -- nosy: +iritkatriel ___ Python tracker ___ ___

[issue42176] Valgrind reports "Conditional jump or move depends on uninitialised value(s)" in `PyUnicode_AsEncodedString` and `PyUnicode_Decode`

2020-10-27 Thread Boris Staletic
Boris Staletic added the comment: I can also reproduce the same problem with the ubuntu packaged python3, which is 3.8.5 on Ubuntu 20.04. The only problem is that, with a stripped library, you don't get line numbers in valgrind's output. Steps to repro: 1. apt install valgrind gcc python3-co

[issue8943] Bug in InteractiveConsole /pickle

2020-10-27 Thread Irit Katriel
Change by Irit Katriel : -- title: Bug in InteractiveConsole -> Bug in InteractiveConsole /pickle versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.1, Python 3.2 ___ Python tracker _

[issue15029] doc: Update Defining New Types chapter according to PEP 253

2020-10-27 Thread Irit Katriel
Change by Irit Katriel : -- title: Update Defining New Types chapter according to PEP 253 -> doc: Update Defining New Types chapter according to PEP 253 versions: +Python 3.10, Python 3.9 -Python 3.2 ___ Python tracker

[issue42171] Add PEP 573 to the stable ABI

2020-10-27 Thread Petr Viktorin
Change by Petr Viktorin : -- keywords: +patch pull_requests: +21925 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23009 ___ Python tracker ___ __

[issue42163] _replace() no longer works on platform.uname_result objects

2020-10-27 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +21926 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23010 ___ Python tracker ___

  1   2   >