[issue43082] descriptor howto: typo in "Definition and introduction"

2021-01-30 Thread diegoe
New submission from diegoe : In https://docs.python.org/3.10/howto/descriptor.html#definition-and-introduction The paragraph reads: """ Definition and introduction In general, a descriptor is an attribute value that has one of the methods in the descriptor protocol. Those methods are __get_

[issue43059] sqlite3: Externally developed?

2021-01-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: mock also broke similar package on removing __version__. See also https://bugs.python.org/issue31826 -- nosy: +xtreak ___ Python tracker _

[issue43075] ReDoS in request

2021-01-30 Thread yeting li
yeting li added the comment: Thank you for your quick reply! I agree. Catastrophic backtracking is typically regarded as a regex with exponential worst-case matching time. Besides regexes with exponential worst-case time complexity, ReDoS also includes ones with other super-linear (e.g., q

[issue43081] Recursive call crash module multiprocessing

2021-01-30 Thread Xinmeng Xia
New submission from Xinmeng Xia : The following code recursively calls function test_forkserver(). However, the output is not expected RecursionError(recursively calling) or OSError(too many open files). An unexpected EOFError ( inside module multiprocessing, not this code itself) is reported

[issue43059] sqlite3: Externally developed?

2021-01-30 Thread Berker Peksag
Berker Peksag added the comment: Yes, version attributes should be deprecated and properly documented in Doc/whatsnew/3.10.rst before removal. I remember we broke Mailman when we removed a dunder attribute from the mail package. Thank you for the PR! -- resolution: -> fixed stage:

[issue43059] sqlite3: Externally developed?

2021-01-30 Thread Berker Peksag
Berker Peksag added the comment: New changeset de76ce540ed013a31d4c80bca2587a2dd7c23652 by Miss Islington (bot) in branch '3.8': bpo-43059: Remove reference to legacy external sqlite3 repository (GH-24364) https://github.com/python/cpython/commit/de76ce540ed013a31d4c80bca2587a2dd7c23652 ---

[issue43059] sqlite3: Externally developed?

2021-01-30 Thread Berker Peksag
Berker Peksag added the comment: New changeset 926ca51be4b9b80c41a647bbc2fb9c40ff108ff0 by Miss Islington (bot) in branch '3.9': bpo-43059: Remove reference to legacy external sqlite3 repository (GH-24364) https://github.com/python/cpython/commit/926ca51be4b9b80c41a647bbc2fb9c40ff108ff0 ---

[issue43059] sqlite3: Externally developed?

2021-01-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +23207 pull_request: https://github.com/python/cpython/pull/24393 ___ Python tracker ___ __

[issue43059] sqlite3: Externally developed?

2021-01-30 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +23206 pull_request: https://github.com/python/cpython/pull/24392 ___ Python tracker _

[issue43059] sqlite3: Externally developed?

2021-01-30 Thread Berker Peksag
Berker Peksag added the comment: New changeset e60344364245a23a7a1b25d5ebce6833652a656c by L in branch 'master': bpo-43059: Remove reference to legacy external sqlite3 repository (GH-24364) https://github.com/python/cpython/commit/e60344364245a23a7a1b25d5ebce6833652a656c --

[issue43075] ReDoS in request

2021-01-30 Thread yeting li
Change by yeting li : -- keywords: +patch pull_requests: +23205 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24391 ___ Python tracker ___

[issue42967] [security] urllib.parse.parse_qsl(): Web cache poisoning - `; ` as a query args separator

2021-01-30 Thread Senthil Kumaran
Senthil Kumaran added the comment: Ned, and others watching. In future versions of Python, we can use only "&" based separator. But I am not certain what should be proposed for the older releases of Python. Adam's Patch is a good one to specify explicitly specify the separator, but it ch

[issue42967] [security] urllib.parse.parse_qsl(): Web cache poisoning - `; ` as a query args separator

2021-01-30 Thread Senthil Kumaran
Change by Senthil Kumaran : -- assignee: -> orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue43042] Delete or merge redundant tutorial sentence.

2021-01-30 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue43080] pprint for dataclass instances

2021-01-30 Thread Lewis Gaul
Change by Lewis Gaul : -- keywords: +patch pull_requests: +23204 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24389 ___ Python tracker ___ _

[issue43080] pprint for dataclass instances

2021-01-30 Thread Lewis Gaul
New submission from Lewis Gaul : Currently the pprint module does not have support for dataclasses. I have implemented support for this and will link the PR once I have the issue number! See also issue37376 for SimpleNamespace support. -- components: Library (Lib) messages: 386002 nos

[issue43078] Equality Errors when Unpickling and Pickling a Dictionary with a nan

2021-01-30 Thread Rohan Prasad
Rohan Prasad added the comment: I see this makes a ton of sense, thanks! I'll close this issue. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue24275] lookdict_* give up too soon

2021-01-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please test also creating a large dict with string-only or non-string keys. Since you add a code in insertdict() it can potentially affects performance. -- ___ Python tracker

[issue43079] wrong IP address range given for ipv4_mapped

2021-01-30 Thread Al
New submission from Al : https://docs.python.org/3.9/library/ipaddress.html This documentation for the 'ipaddress' IPv4/IPv6 Manipulation Library incorrectly states the address range for 'ipv4_mapped' as ::/96 (which means 0:0:0:0:0:0:0:/96). This is just flat out wrong. There are s

[issue43078] Equality Errors when Unpickling and Pickling a Dictionary with a nan

2021-01-30 Thread Dennis Sweeney
Dennis Sweeney added the comment: I think this is the expected behavior. It is expected by IEEE 754 that nan != nan, so that behavior exists: >>> nan = float('nan') >>> nan2 = float('nan') >>> assert nan != nan2 >>> assert nan != nan However, for "practicality beats purity" (speed) reasons,

[issue24275] lookdict_* give up too soon

2021-01-30 Thread Hristo Venev
Hristo Venev added the comment: > Why is the first key built up as vx='x'; vx += '1' instead of just k1="x1"? I wanted to construct a key that is equal to, but not the same object as, `'x1'`. Consider this example: assert 'x1' is 'x1' spam = 'x1' assert spam is 'x1' eggs = 'x

[issue24275] lookdict_* give up too soon

2021-01-30 Thread Jim Jewett
Jim Jewett added the comment: Based on Hristo's timing, it appears to be a clear win. A near-wash for truly string-only dicts that shouldn't be effected; a near-wash for looking up non-(exact-)strings, and a nearly 40% speedup for the target case of looking up but not inserting a non-strin

[issue42939] Linux's chattr i.e. ioctl(FS_IOC_SETFLAGS) is not supported in os.chflags()

2021-01-30 Thread Eryk Sun
Eryk Sun added the comment: bpo-39533 is a related issue that seeks to support the Linux statx() system call. A statx record includes an stx_attributes field, which supports the following file attributes that can be set with chattr: [a]ppend: STATX_ATTR_APPEND [c]ompressed: STATX

[issue24275] lookdict_* give up too soon

2021-01-30 Thread Jim Jewett
Jim Jewett added the comment: This was originally "can be reopened if a patch is submitted" and Hristo Venev has now done so. Therefore, I am reopening. -- resolution: rejected -> remind stage: -> patch review status: closed -> open versions: +Python 3.10 ___

[issue43075] ReDoS in request

2021-01-30 Thread Senthil Kumaran
Senthil Kumaran added the comment: +1. The suggested fix looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue42982] Update suggested number of iterations for pbkdf2_hmac()

2021-01-30 Thread Christian Heimes
Christian Heimes added the comment: PBKDF2-HMAC is a serialized algorithm. It cannot be parallized. That means the runtime depends on single core-performance. The single core-performance of desktop and server CPUs hasn't improved much in the last decade. Modern CPUs have more cores, larger c

[issue43048] Printing RecursionError results in RecursionError

2021-01-30 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue43048] Printing RecursionError results in RecursionError

2021-01-30 Thread Irit Katriel
Irit Katriel added the comment: Maybe it is worth doing something less invasive in 3.9, such as catching the recursion error and truncating the output? -- status: closed -> open versions: -Python 3.10 ___ Python tracker

[issue43078] Equality Errors when Unpickling and Pickling a Dictionary with a nan

2021-01-30 Thread Rohan Prasad
New submission from Rohan Prasad : Hi, I'm having a weird issue with floats in dictionaries and equality comparison (see attached screenshot for an example). When I create two dictionaries with a nan value they pass an equivalence test. However, if I pickle and unpickle one of the dictionari

[issue43077] Update bundled pip to 21.0.1 and setuptools to 52.0.0

2021-01-30 Thread Paul Moore
Change by Paul Moore : -- pull_requests: +23203 pull_request: https://github.com/python/cpython/pull/24388 ___ Python tracker ___ __

[issue42896] Solaris 11.4 crle output not handled correctly

2021-01-30 Thread Hergen Lange
Hergen Lange added the comment: Fix for python 3.8.7 Also added support for LD_CONFIG and LD_LIBRARY_PATH environment variables. Patch File: py387_ctypes_util.patch TEST successfull: /opt/python/lib/python3.8/ctypes$ python3 util.py libm.so.2 libc.so.1 libbz2.so.1 libx264.so.157 libcrypt.

[issue43077] Update bundled pip to 21.0.1 and setuptools to 52.0.0

2021-01-30 Thread Paul Moore
Change by Paul Moore : -- keywords: +patch pull_requests: +23202 pull_request: https://github.com/python/cpython/pull/24387 ___ Python tracker ___ _

[issue43077] Update bundled pip to 21.0.1 and setuptools to 52.0.0

2021-01-30 Thread Paul Moore
Paul Moore added the comment: New changeset 4d11ecbb5ed78e6259ee27289c7638aad795f473 by Paul Moore in branch 'master': bpo-43077: Update bundled pip to 21.0.1 and setuptools to 52.0.0 (GH-24386) https://github.com/python/cpython/commit/4d11ecbb5ed78e6259ee27289c7638aad795f473 -- __

[issue43075] ReDoS in request

2021-01-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- stage: -> needs patch versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue43075] ReDoS in request

2021-01-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree. There is no catastrophic backtracking here (it was fixed in issue39503), but the complexity of matching the regular expression is linear. Searching the pattern in a sequence of commas has quadratic complexity, because every step has linear complex

[issue42939] Linux's chattr i.e. ioctl(FS_IOC_SETFLAGS) is not supported in os.chflags()

2021-01-30 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue43077] Update bundled pip to 21.0.1 and setuptools to 52.0.0

2021-01-30 Thread Paul Moore
Change by Paul Moore : -- assignee: -> paul.moore nosy: +Marcus.Smith, dstufft, ncoghlan, pradyunsg stage: -> patch review ___ Python tracker ___

[issue43077] Update bundled pip to 21.0.1 and setuptools to 52.0.0

2021-01-30 Thread Paul Moore
New submission from Paul Moore : I've just released pip 21.0.1, so this updates the bundled copy (as well as updating setuptools). I assume this should be backported to 3.8 and 3.9. -- components: Library (Lib) messages: 385986 nosy: paul.moore priority: normal pull_requests: 23201 se

[issue43053] Speed up math.isqrt, again

2021-01-30 Thread Juraj Sukop
Juraj Sukop added the comment: Mark, thank you very much for the thorough reply! I believe it is not for me to say whether the complication is worth it or not. What really huge numbers goes, if I'm not mistaken, the original `isqrt` is already "fast" and only constant speed-up is possible.

[issue41282] Deprecate and remove distutils

2021-01-30 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: -yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue40455] GCC 10 compiler warnings

2021-01-30 Thread Dong-hee Na
Dong-hee Na added the comment: Thank you Pablo!! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40455] GCC 10 compiler warnings

2021-01-30 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: +Python 3.10 -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40455] GCC 10 compiler warnings

2021-01-30 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 86e322f1412be6c5a6c8fa8e73af68b99c42bb18 by Pablo Galindo in branch 'master': bpo-40455: Fix gcc10+ warning about writing into a section of offset 0 (GH-24384) https://github.com/python/cpython/commit/86e322f1412be6c5a6c8fa8e73af68b99c42bb18 ---

[issue43069] Python fails to read a script whose path is `/dev/fd/X`

2021-01-30 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: I would suggest to start digging from the following piece of code in `maybe_pyc_file()` (Python/pythonrun.c): int ispyc = 0; if (ftell(fp) == 0) { if (fread(buf, 1, 2, fp) == 2 && ((unsigned int)buf[1]<<8 | buf[0]) == halfmagi

[issue42896] Solaris 11.4 crle output not handled correctly

2021-01-30 Thread Hergen Lange
Hergen Lange added the comment: For python 3.8.7 should be: --- util.py.broken 2021-01-30 12:15:35.047669249 +0100 +++ util.py 2021-01-30 12:28:04.425931587 +0100 @@ -251,6 +251,9 @@ line = line.strip() if line.startswith(b'Default Library Pat

[issue42050] ensurepip fails if cwd contains illformed setup.cf

2021-01-30 Thread Jan Christoph
Jan Christoph added the comment: Just wanted to say, I ran into this while using direnv. See the issue I opened before knowing of this one: https://bugs.python.org/issue43038 -- nosy: +con-f-use Added file: https://bugs.python.org/file49779/shell-session.txt _

[issue43047] logging.config formatters documentation is out of sync with code

2021-01-30 Thread miss-islington
miss-islington added the comment: New changeset 62437a2fa9ebd2352dc1e15ae310895eef6ff981 by Ian Wienand in branch 'master': bpo-43047: logging.config formatters documentation update (GH-24358) https://github.com/python/cpython/commit/62437a2fa9ebd2352dc1e15ae310895eef6ff981 -- nosy:

[issue43069] Python fails to read a script whose path is `/dev/fd/X`

2021-01-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: I can reproduce the issue on macOS 11.1. As you write: - running /dev/fd/X as a script fails silently if it refers to an smallish file - reading /dev/fd/X referring to the same smallish files works fine (the ``open('/dev/fd/9').read()`` scenario. If I rea

[issue43075] ReDoS in request

2021-01-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +orsenthil, serhiy.storchaka type: -> security ___ Python tracker ___ ___ Python-bugs

[issue43076] str.split() indexing issue

2021-01-30 Thread Steven D'Aprano
Steven D'Aprano added the comment: Slicing is described here: https://docs.python.org/3/tutorial/introduction.html -- ___ Python tracker ___ _

[issue43076] str.split() indexing issue

2021-01-30 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi Aleksandr, In future, when posting what you think might be a bug, please try to cut the code down to the bare minimum needed. In this case, it doesn't matter at all that the strings you are processing come from splitting a larger string. split() has don

[issue43076] str.split() indexing issue

2021-01-30 Thread Aleksandr Sigalov
New submission from Aleksandr Sigalov : The following code ran in Google Colab... = import sys print (sys.version) string = 'WORD=BIRD\nBIRD\nBIRD' print(string.split()) print('') print(string.split('=')[0][0:3]) print(string.split('=')[1][0:3])

[issue43075] ReDoS in request

2021-01-30 Thread yeting li
New submission from yeting li : Hi, I find this regex '(?:^|,)[ \t]*([^ \t]+)[ \t]+' may be stucked by input. The vulnerable regex is located in https://github.com/python/cpython/blob/5c5a938573ce665f00e362c7766912d9b3f3b44e/Lib/urllib/request.py#L946 The ReDOS vulnerability of the regex is m

[issue34321] mmap.mmap() should not necessarily clone the file descriptor

2021-01-30 Thread Christian Heimes
Change by Christian Heimes : -- nosy: +christian.heimes versions: +Python 3.10 -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ _