[issue35286] wrong result for difflib.SequenceMatcher

2020-10-27 Thread Boris Yang
Change by Boris Yang : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue41486] Add _BlocksOutputBuffer for bz2/lzma/zlib module

2020-10-27 Thread Ma Lin
Ma Lin added the comment: I modify lzma module to use different growth factors, see attached picture different_factors.png 1.5x should be the growth factor of _PyBytesWriter under Windows. So if change _PyBytesWriter to use memory blocks, maybe there will be no performance improvement. Ove

[issue42172] Typo in test library for test_socket.py

2020-10-27 Thread Akashkumar D Khunt
Change by Akashkumar D Khunt : -- keywords: +patch pull_requests: +21930 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23013 ___ 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 process_obj

[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

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

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

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

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

[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

[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) https://github.com/python/cpython/commit/24a7c29

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

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

[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

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

[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) https://github.com/python/cpython/commit/c4b58cea4771afc0ddfdb857b0fb5115b9f4bc9

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

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

[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

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

[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

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

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

[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

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

[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

[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

[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

[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

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

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

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

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

[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

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

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

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

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

[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

[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

[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

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

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

[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

[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

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

[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

[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

[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

[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

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

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

[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 b1ce0440bfe87e092ca5e2e57875fb7fc1129137 by Miss Skeleton (bot) in branch '3.8': bpo-6761: Enhance __call__ documentation (GH-7987) https://github.com/python/cpython/commit/b1ce0440bfe87e092ca5e2e57875fb7fc1129137 -- _

[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
Change by miss-islington : -- pull_requests: +21920 pull_request: https://github.com/python/cpython/pull/23005 ___ 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 : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +21919 pull_request: https://github.com/python/cpython/pull/23004 ___ 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) -> N

[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
Change by Ken Jin : -- versions: +Python 3.6, Python 3.7 -Python 3.10, Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs

[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

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

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

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

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

[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

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

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

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

[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

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

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

[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

[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

[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

[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

[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

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

[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

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

  1   2   >