[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

[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

[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

[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

[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

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

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

[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

[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

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

[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

[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

[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

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

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

[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

[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

[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

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

[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

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

[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

[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

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

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

[issue34204] Bump the default pickle protocol in shelve

2020-10-27 Thread Marco Castelluccio
Marco Castelluccio added the comment: I've opened https://github.com/python/cpython/pull/22751 to fix this, I know there was already a PR, but it seems to have been abandoned. -- ___ Python tracker

[issue9453] pulldom.SAX2DOM Doesn't support processing instructions before the root element

2020-10-27 Thread Zackery Spytz
Change by Zackery Spytz : -- versions: +Python 3.10 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue9453] pulldom.SAX2DOM Doesn't support processing instructions before the root element

2020-10-27 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz nosy_count: 3.0 -> 4.0 pull_requests: +21929 pull_request: https://github.com/python/cpython/pull/23012 ___ 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 ___

[issue42123] Run parser twice; enable invalid_* rules only on the second run

2020-10-27 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: New changeset 24a7c298d47658295673dc04d1b6d59f2b200a7c by Lysandros Nikolaou in branch '3.9': [3.9] bpo-42123: Run the parser two times and only enable invalid rules on the second run (GH-22111) (GH-23011)

[issue42172] Typo in test library for test_socket.py

2020-10-27 Thread Akashkumar D Khunt
Akashkumar D Khunt added the comment: Sure, Will send out patch for review. -- ___ Python tracker ___ ___ Python-bugs-list mailing

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

2020-10-27 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: New changeset c4b58cea4771afc0ddfdb857b0fb5115b9f4bc9f by Lysandros Nikolaou in branch '3.9': [3.9] bpo-41659: Disallow curly brace directly after primary (GH-22996) (#23006)

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

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

[issue42061] Document __format__ method for IPv[46]Address

2020-10-27 Thread Teugea Ioan-Teodor
Teugea Ioan-Teodor added the comment: Hi. I would like to work on the documentation for the IP address format. I am new here so it might take me some time. I think it will have a PR ready in a day or two. -- nosy: +John-Ted ___ Python tracker

[issue34204] Bump the default pickle protocol in shelve

2020-10-27 Thread Zackery Spytz
Zackery Spytz added the comment: It has not been abandoned. -- versions: +Python 3.10 -Python 3.8 ___ Python tracker ___ ___

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

2020-10-27 Thread Eryk Sun
Eryk Sun added the comment: Due to the exception raised when trying to pickle main..dummy in popen_spawn_win32.Popen(), the main process may have already exited by the time the spawned worker calls WinAPI OpenProcess in spawn.spawn_main(). I suppose the reduction of prep_data and

[issue42123] Run parser twice; enable invalid_* rules only on the second run

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

[issue34204] Bump the default pickle protocol in shelve

2020-10-27 Thread Marco Castelluccio
Change by Marco Castelluccio : -- nosy: +marco-c nosy_count: 6.0 -> 7.0 pull_requests: +21928 pull_request: https://github.com/python/cpython/pull/22751 ___ Python tracker ___

[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: The first four bytes of the file do not identify a zip file. A zip file is identified by the end of file central directory. Which you then must read entries of to determine where the start of the archive may be... often not at position zero. --

[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

[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

[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

[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

[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

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

[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

[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

[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

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

2020-10-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-10-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +jaraco, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-10-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2020-10-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

[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

[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

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

[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

[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

[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

[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

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

[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

[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

[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

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

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

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

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

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

[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"' %

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

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

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

[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

[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

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

[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

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

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

[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

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

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

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

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

[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

[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 Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

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

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

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

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

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

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

  1   2   >