[issue45156] mock.seal has infinite recursion with int class attributes

2021-09-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue15870] PyType_FromSpec should take metaclass as an argument

2021-09-11 Thread Christian Tismer
Christian Tismer added the comment: Since PyPy does not use the Limited API, PySide can quite easily work around the limitations by directly working with the type object. But the usage of PyType_Modified() would make very much sense for PySide‘s new switchable features. That would work immed

[issue45174] DragonflyBSD fix nis module build

2021-09-11 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The main difference between platforms is that the first argument of the foreach function is int on some platforms and unsigned long on others. PR 28295 fixes code not only on DragonflyBSD, but on FreeBSD and OpenBSD, where it is unsigned long. It is a bu

[issue45175] No warning with '-W always' and cached import

2021-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This warning is produced by the compiler when it compiles the source code. If it is already compiled, no compiler is involved. -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed _

[issue45175] No warning with '-W always' and cached import

2021-09-11 Thread Jason Yundt
New submission from Jason Yundt : I have a script which always produces a warning when you run it. If I import always_warns from another script, that script will only produce a warning once. Steps to reproduce: $ python -W always always_warns.py /tmp/Bug reproduction/always_warns.py:1: Deprecat

[issue45081] dataclasses that inherit from Protocol subclasses have wrong __init__

2021-09-11 Thread Ian Good
Ian Good added the comment: I believe this was a deeper issue that affected all classes inheriting Protocol, causing a TypeError on even the most basic case (see attached): Traceback (most recent call last): File "/.../test.py", line 14, in MyClass() File "/.../test.py", line 11, in

[issue45174] DragonflyBSD fix nis module build

2021-09-11 Thread David CARLIER
Change by David CARLIER : -- components: Library (Lib) nosy: devnexen priority: normal pull_requests: 26711 severity: normal status: open title: DragonflyBSD fix nis module build type: compile error versions: Python 3.11 ___ Python tracker

[issue45125] Improve tests and docs of how `pickle` works with `SharedMemory` obejcts

2021-09-11 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +26710 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28294 ___ Python tracker ___ _

[issue44987] Speed up unicode normalization of ASCII strings

2021-09-11 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 5277ffe12d492939544ff9c54a3aaf448b913fb3 by Dong-hee Na in branch 'main': bpo-44987: Fix typo whatsnew 3.11 (GH-28293) https://github.com/python/cpython/commit/5277ffe12d492939544ff9c54a3aaf448b913fb3 -- _

[issue44987] Speed up unicode normalization of ASCII strings

2021-09-11 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +26709 pull_request: https://github.com/python/cpython/pull/28293 ___ Python tracker ___ _

[issue45173] Remove configparser deprecations

2021-09-11 Thread Hugo van Kemenade
Hugo van Kemenade added the comment: Also, the LegacyInterpolation class is deprecated since Python 3.2 but with no DeprecationWarning. A quick sampling of GitHub results shows only copies of CPython's configparser.py and test_configparser.py https://github.com/search?l=Python&p=1&q=LegacyI

[issue45173] Remove configparser deprecations

2021-09-11 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- keywords: +patch pull_requests: +26708 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28292 ___ Python tracker __

[issue45173] Remove configparser deprecations

2021-09-11 Thread Hugo van Kemenade
New submission from Hugo van Kemenade : In the configparser module, these have been deprecated since Python 3.2: * the SafeConfigParser class, * the filename property of the ParsingError class, * the readfp method of the ConfigParser class, They can be removed in Python 3.11. -- compo

[issue45170] tarfile missing cross-directory checking

2021-09-11 Thread Eric V. Smith
Eric V. Smith added the comment: This is documented in the tarfile docs: Warning Never extract archives from untrusted sources without prior inspection. It is possible that files are created outside of path, e.g. members that have absolute filenames starting with "/" or filenames with two d

[issue15870] PyType_FromSpec should take metaclass as an argument

2021-09-11 Thread mattip
mattip added the comment: >> I wouldn't recommend [setting ob_type] after PyType_Ready is called. > Why not? What bad things will happen? It seems to be working so far. It breaks the unwritten contract that "once PyType_Ready is called, the C struct will not be modified". This is implement

[issue45163] Haiku build fix

2021-09-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue44987] Speed up unicode normalization of ASCII strings

2021-09-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44987] Speed up unicode normalization of ASCII strings

2021-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9abd07e5963f966c4d6df8f4e4bf390ed8191066 by Dong-hee Na in branch 'main': bpo-44987: Speed up unicode normalization of ASCII strings (GH-28283) https://github.com/python/cpython/commit/9abd07e5963f966c4d6df8f4e4bf390ed8191066 -- nosy

[issue35474] mimetypes.guess_all_extensions potentially mutates list

2021-09-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +26706 pull_request: https://github.com/python/cpython/pull/28290 ___ Python tracker ___ __

[issue35474] mimetypes.guess_all_extensions potentially mutates list

2021-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 97ea18ecede8bfd33d5ab2dd0e7e2aada205 by Serhiy Storchaka in branch 'main': bpo-35474: Fix mimetypes.guess_all_extensions() potentially mutating list (GH-28286) https://github.com/python/cpython/commit/97ea18ecede8bfd33d5ab2dd0e7e2aada2051

[issue45160] ttk.OptionMenu radiobuttons change variable value twice

2021-09-11 Thread E. Paine
Change by E. Paine : -- keywords: +patch pull_requests: +26707 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28291 ___ Python tracker ___ ___

[issue35474] mimetypes.guess_all_extensions potentially mutates list

2021-09-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +26705 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28289 ___ Python tracker _

[issue44987] Speed up unicode normalization of ASCII strings

2021-09-11 Thread Dong-hee Na
Dong-hee Na added the comment: > Well, someone should write a PR for it. Well, I sent a patch :) -- ___ Python tracker ___ ___ Pyt

[issue45172] netbsd CAN protocol flags addition

2021-09-11 Thread David CARLIER
Change by David CARLIER : -- components: Library (Lib) nosy: devnexen priority: normal pull_requests: 26704 severity: normal status: open title: netbsd CAN protocol flags addition type: enhancement versions: Python 3.11 ___ Python tracker

[issue45171] stacklevel handling in logging module is inconsistent

2021-09-11 Thread Jouke Witteveen
Change by Jouke Witteveen : -- keywords: +patch pull_requests: +26703 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28287 ___ Python tracker ___

[issue45171] stacklevel handling in logging module is inconsistent

2021-09-11 Thread Jouke Witteveen
New submission from Jouke Witteveen : Handling of `stacklevel` in the logging module makes a few unwarranted assumptions, for instance on the depth of the stack due to internal logging module calls. This can be seen for instance when using the shortcut call `logging.warning` to the root logge

[issue43983] Can't install Python v3.9.4 / 0x80070643 / windows 10 64bit

2021-09-11 Thread Irit Katriel
Irit Katriel added the comment: Thanks for the update Marwan. I'm closing because there doesn't seem to be any followup possible on our side. -- nosy: +iritkatriel stage: -> resolved status: open -> closed ___ Python tracker

[issue43546] "Impossible" KeyError from importlib._bootstrap acquire line 110

2021-09-11 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue37844] PyRun_SimpleFile should provide a version that does not need a FILE*

2021-09-11 Thread Irit Katriel
Change by Irit Katriel : -- type: crash -> enhancement versions: -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue38942] Possible assertion failures in csv.Dialect()

2021-09-11 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: test needed -> resolved status: open -> closed superseder: -> Assertion failure in csv module ___ Python tracker _

[issue38942] Possible assertion failures in csv.Dialect()

2021-09-11 Thread Irit Katriel
Irit Katriel added the comment: The patch is missing a unit test. -- nosy: +iritkatriel stage: patch review -> test needed versions: +Python 3.10, Python 3.11 -Python 3.7, Python 3.8 ___ Python tracker _

[issue45110] argparse repeats itself when formatting help metavars

2021-09-11 Thread Lewis Gaul
Lewis Gaul added the comment: Big +1 from me for at least supporting a way to get the more concise output. I've never understood the verbosity of python's argparse where the metavar is repeated. -- nosy: +LewisGaul ___ Python tracker

[issue45160] ttk.OptionMenu radiobuttons change variable value twice

2021-09-11 Thread fhdrsdg
fhdrsdg added the comment: Ah yes, you're right that `command=self._callback` doesn't pass the new value like it should. Your suggestion does, but throws a "TypeError: 'NoneType' object is not callable" when no command is given when creating the OptionMenu. The current `_setit` implementatio

[issue45163] Haiku build fix

2021-09-11 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : New changeset 5f5b7d0c654488206ac13e27d9a5dcffbd2cc0af by David CARLIER in branch 'main': bpo-45163: Haiku build fix. (GH-28269) https://github.com/python/cpython/commit/5f5b7d0c654488206ac13e27d9a5dcffbd2cc0af -- nosy: +serhiy.storchaka __

[issue35474] mimetypes.guess_all_extensions potentially mutates list

2021-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Also, mutating the result of guess_all_extensions() mutated the internal state of the MimeTypes object and affected the following calls of guess_all_extensions(). -- stage: patch review -> versions: +Python 3.10, Python 3.11, Python 3.9 _

[issue35474] mimetypes.guess_all_extensions potentially mutates list

2021-09-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch nosy: +serhiy.storchaka nosy_count: 1.0 -> 2.0 pull_requests: +26702 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28286 ___ Python tracker

[issue45170] tarfile missing cross-directory checking

2021-09-11 Thread daji ma
New submission from daji ma : tarfile missing cross-directory checking, like ../ or ..\, this potentially cause cross-directory decompression. the exp: # -*- coding: utf-8 -*- import tarfile def extract_tar(file_path, dest_path): try: with tarfile.open(file_path, 'r') as src_fil