[issue46907] Update Windows and MacOS installer to SQLite 3.38.2

2022-03-27 Thread Mariusz Felisiak
Change by Mariusz Felisiak : -- pull_requests: +30228 pull_request: https://github.com/python/cpython/pull/32148 ___ Python tracker ___

[issue47133] enhance unittest to show test name and docstring on one line

2022-03-27 Thread Steven D'Aprano
Steven D'Aprano added the comment: Rather than an option for this, it would be cleaner to deprecate the current output in 3.11, and fix it in 3.12 or 3.13. Otherwise we have to maintain the old (bad?) output and the new output both forever. --

[issue46907] Update Windows and MacOS installer to SQLite 3.38.2

2022-03-27 Thread Mariusz Felisiak
Change by Mariusz Felisiak : -- pull_requests: +30227 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32147 ___ Python tracker ___

[issue47136] Wrong value assigned automatically to the variable __module__ in the class body.

2022-03-27 Thread Takuo Matsuoka
Takuo Matsuoka added the comment: Thank you for your response. I think __name__ here is very different from __len__ . (1) Even if you set __name__ to what should be the right value, e.g., when my class O will be a subclass of say 'type', and __name__ is an appropriate thing for your purposes

[issue28516] contextlib.ExitStack.__enter__ has trivial but undocumented behavior

2022-03-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +30225 pull_request: https://github.com/python/cpython/pull/32145 ___ Python tracker ___

[issue28516] contextlib.ExitStack.__enter__ has trivial but undocumented behavior

2022-03-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +30224 pull_request: https://github.com/python/cpython/pull/32144 ___ Python tracker

[issue47103] Copy pgort140.dll when building for PGO

2022-03-27 Thread neonene
Change by neonene : -- nosy: +neonene nosy_count: 4.0 -> 5.0 pull_requests: +30226 pull_request: https://github.com/python/cpython/pull/32146 ___ Python tracker ___

[issue46907] Update Windows and MacOS installer to SQLite 3.38.2

2022-03-27 Thread jiahua wang
Change by jiahua wang : -- nosy: +wangjiahua nosy_count: 9.0 -> 10.0 pull_requests: +30229 pull_request: https://github.com/python/cpython/pull/32149 ___ Python tracker ___

[issue28516] contextlib.ExitStack.__enter__ has trivial but undocumented behavior

2022-03-27 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset 86384cf83f96fcaec03e2ad6516e2e24f20d3b92 by vidhya in branch 'main': bpo-28516: document contextlib.ExitStack.__enter__ behavior (GH-31636) https://github.com/python/cpython/commit/86384cf83f96fcaec03e2ad6516e2e24f20d3b92 --

[issue45171] stacklevel handling in logging module is inconsistent

2022-03-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The commit seems to emit a deprecation warning in test_logging. Probably the warning needs to be handled while setting trigger = self.logger.warn PYTHONWARNINGS=always ./python -Wall -m test test_logging 0:00:00 load avg:

[issue45171] stacklevel handling in logging module is inconsistent

2022-03-27 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset c12ba6b2ff7908c8970b978f149d51ecd3fb195c by Jouke Witteveen in branch 'main': bpo-45171: Remove tests of deprecated logger.warn(). (GH-32139) https://github.com/python/cpython/commit/c12ba6b2ff7908c8970b978f149d51ecd3fb195c --

[issue45382] platform() is not able to detect windows 11

2022-03-27 Thread Evernow
Evernow added the comment: As mentioned wmic is deprecated ( https://docs.microsoft.com/en-us/windows/win32/wmisdk/wmic ). I don't see why the wmi module ( https://pypi.org/project/WMI/ ) can't be used instead to get the information, I have a working implementation of this that simply

[issue34480] _markupbase.py fails with UnboundLocalError on invalid keyword in marked section

2022-03-27 Thread Marek Suscak
Marek Suscak added the comment: Based on the changelog, it seems that the fix for this issue has only landed in Python 3.10 but it's still affecting versions 3.7, 3.8 and 3.9. There are a few projects such as Apache Beam that have only recently added support for Python 3.9 with no support

[issue47136] Wrong value assigned automatically to the variable __module__ in the class body.

2022-03-27 Thread Steven D'Aprano
Steven D'Aprano added the comment: > the programmer may use the variable __name__ for some other purposes Dunder names like `__name__` are reserved for the use of the interpreter. If the programmer uses them for "other purposes", the programmer is responsible for any failures. You wouldn't

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-27 Thread ty
Change by ty : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34480] _markupbase.py fails with UnboundLocalError on invalid keyword in marked section

2022-03-27 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset f6b3a07b7df60dc04d0260169ffef6e9796a2124 by ty in branch 'main': bpo-44493: Add missing terminated NUL in sockaddr_un's length (GH-26866) https://github.com/python/cpython/commit/f6b3a07b7df60dc04d0260169ffef6e9796a2124 --

[issue44090] Add class binding to unbound super objects for allowing autosuper with class methods

2022-03-27 Thread Guido van Rossum
Guido van Rossum added the comment: So IIUC the "autosuper" idea is to assign a special instance of super to self.__super, so that you can write self.__super.method(...) to invoke a super method, using the magic of __private variables, instead of having to write super(classname,

[issue47083] The __complex__ method is missing from the complex, float, and int built-in types

2022-03-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think this may fine as-is. In general, virtiual classes only promise that an operation will work rather than promsing the presence of a particular method. An object can be Iterable without defining __iter__ because iter() can use __getitem__ and

[issue47124] explore hashlib use of the Apple CryptoKit macOS

2022-03-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: I only pointed to that API after a brief search without looking at details (Swift? oops!). If there is one available from C that'd also make sense to consider. The only things I expect, relevant to hashlib, that would be accelerated by OS native APIs

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +30222 pull_request: https://github.com/python/cpython/pull/32140 ___ Python tracker

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +30223 pull_request: https://github.com/python/cpython/pull/32141 ___ Python tracker ___

[issue45171] stacklevel handling in logging module is inconsistent

2022-03-27 Thread Jouke Witteveen
Change by Jouke Witteveen : -- pull_requests: +30220 pull_request: https://github.com/python/cpython/pull/32139 ___ Python tracker ___

[issue46429] Merge all deepfrozen files into one

2022-03-27 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 785cc6770588de087d09e89a69110af2542be208 by Kumar Aditya in branch 'main': bpo-46429: tweak deepfreeze output (#32107) https://github.com/python/cpython/commit/785cc6770588de087d09e89a69110af2542be208 --

[issue47137] MemoryError

2022-03-27 Thread qiu
qiu <1425166...@qq.com> added the comment: hello,Did you get the E-mail about one random input I sent you? one random input is

[issue46907] Update Windows and MacOS installer to SQLite 3.38.2

2022-03-27 Thread Ned Deily
Ned Deily added the comment: 3.38.2 was released on 2022-03-26. Since the update to 3.38.1 hasn't yet been in a 3.11.0 alpha release, I'm re-open this issue. https://sqlite.org/releaselog/3_38_2.html -- resolution: fixed -> stage: resolved -> needs patch status: closed -> open

[issue47127] Specialize call for c functions with METH_FASTCALL|METH_KEYWORDS

2022-03-27 Thread Ken Jin
Ken Jin added the comment: New changeset 58448cbd96f77ebc6fca1f8030bedc7744eb66ef by Kumar Aditya in branch 'main': bpo-47127: Specialize calls for fastcall c methods with keywords (GH-32125) https://github.com/python/cpython/commit/58448cbd96f77ebc6fca1f8030bedc7744eb66ef -- nosy:

[issue47129] Improve errors messages in f-string syntax errors

2022-03-27 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: I like the newest suggestion by @Jelle better as well. -- ___ Python tracker ___ ___

[issue47129] Improve errors messages in f-string syntax errors

2022-03-27 Thread Maciej Górski
Maciej Górski added the comment: I agree as well. I will change it to the new version :) Thanks for your input in this. -- ___ Python tracker ___

[issue47128] Enhance Argument Clinic's NoneType return converter to give `void`

2022-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is simpler and faster to return NULL than call PyErr_Occurred(). There is a special macro PY_RETURN_NONE, so there is no problem with returning None either. I do not think it would make the code better. -- resolution: -> rejected stage: patch

[issue47072] Database corruption with the shelve module

2022-03-27 Thread Hubert Tournier
Hubert Tournier added the comment: Additional note: the test code WORKS under Windows 8.1 / Python 3.9.1 (though the data file is suffixed .dat instead of .db) resulting in a 4 MB database with 1065 records, some of them > 11 KB. So maybe the bug is system dependent. -- components:

[issue47133] enhance unittest to show test name and docstring on one line

2022-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is already the third (at least) issue asking for such feature. Many people have problems with the current output. I would prefer to have a full qualified name of the test which I can copy by a double click and insert in a command that reruns

[issue47079] Integral.denominator shouldn't return an int

2022-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It does not satisfy your assumptions in msg416056. So you have either correct your assumptions, or change the implementation of __add__, or change the implementation of denominator in your code. -- ___ Python

[issue43323] UnicodeEncodeError: surrogates not allowed when parsing invalid charset

2022-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, I was puzzled by the exception type and missed details in a long traceback (I have issues with reading large texts). Thank you for your detailed report. The simple fix is to add UnicodeEncodeError to "except LookupError". But there may be other

[issue14265] Fully qualified test name in failure output

2022-03-27 Thread Sam Ezeh
Change by Sam Ezeh : -- nosy: +dignissimus ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43323] UnicodeEncodeError: surrogates not allowed when parsing invalid charset

2022-03-27 Thread John Paul Adrian Glaubitz
John Paul Adrian Glaubitz added the comment: Hi Serhiy! > The simple fix is to add UnicodeEncodeError to "except LookupError". But > there may be other places where we can get a similar error. They should be > fixed too. I would be very interested to test this as this issue currently

[issue47072] Database corruption with the shelve module

2022-03-27 Thread qiu
Change by qiu <1425166...@qq.com>: -- components: +Demos and Tools -FreeBSD, Library (Lib) ___ Python tracker ___ ___

[issue47137] MemoryError

2022-03-27 Thread qiu
New submission from qiu <1425166...@qq.com>: Traceback (most recent call last): File "python_AFL.py", line 110, in runFuzzer runtime = runApplication(input_path, mode) File "python_AFL.py", line 75, in runApplication exec(f.read(), {'buff': input_data}) File "", line 16, in

[issue47137] MemoryError

2022-03-27 Thread Jacob Nilsson
Jacob Nilsson added the comment: Python 3.6 reach end of life in December 2021, is this error reproducible in Python 3.7 and above? If that is still the case, do you have an example of an exact input causing this crash? "random input" is not a lot to go by. -- nosy: +ajoino

[issue47137] MemoryError

2022-03-27 Thread qiu
qiu <1425166...@qq.com> added the comment: 9 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46992] If use textwrap.dedent with string formatting, may get unintended sentences.

2022-03-27 Thread Eric V. Smith
Change by Eric V. Smith : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36643] Forward reference is not resolved by dataclasses.fields()

2022-03-27 Thread Eric V. Smith
Eric V. Smith added the comment: I agree with Jelle here: dataclasses shouldn't be calling get_type_hints(). -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue46799] ShareableList memory bloat and performance improvement

2022-03-27 Thread Ting-Che Lin
Ting-Che Lin added the comment: A gentle Ping to the multiprocessing lib maintainers. Is there anything else I can do to move this forward? -- resolution: -> remind ___ Python tracker

[issue4833] Explicit directories for zipfiles

2022-03-27 Thread Sam Ezeh
Change by Sam Ezeh : -- nosy: +sam_ezeh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45171] stacklevel handling in logging module is inconsistent

2022-03-27 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 5ca6d7469be53960843df39bb900e9c3359f127f by Jouke Witteveen in branch 'main': bpo-45171: Fix stacklevel handling in logging. (GH-28287) https://github.com/python/cpython/commit/5ca6d7469be53960843df39bb900e9c3359f127f -- nosy:

[issue4833] Explicit directories for zipfiles

2022-03-27 Thread Sam Ezeh
Sam Ezeh added the comment: I'm looking into adding ZipFile.mkdir -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue47124] explore hashlib use of the Apple CryptoKit macOS

2022-03-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: A "problem" with CryptoKit is that it is a swift-only framework, which makes using those APIs harder from C code (not impossible). The older Security framework also contains crypto APIs, but seems to have less support for modern algorithms (e.g. no support

[issue43323] UnicodeEncodeError: surrogates not allowed when parsing invalid charset

2022-03-27 Thread John Paul Adrian Glaubitz
John Paul Adrian Glaubitz added the comment: Awesome, thanks! I'll give it a try later today or tomorrow. -- ___ Python tracker ___

[issue43323] UnicodeEncodeError: surrogates not allowed when parsing invalid charset

2022-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I fixed all suspicious places for which I found reproducers in PR 32137. -- ___ Python tracker ___

[issue47135] Allow decimal.localcontext to accept keyword arguments to set context attributes

2022-03-27 Thread Steven D'Aprano
New submission from Steven D'Aprano : Whenever I use decimal and need to change the context temporarily, without fail I try to write with decimal.localcontext(prec=10): ... or similar. Then I get surprised that it fails, and re-write it as with decimal.localcontext() as ctx:

[issue47079] Integral.denominator shouldn't return an int

2022-03-27 Thread Sergey B Kirpichev
Sergey B Kirpichev added the comment: > It does not satisfy your assumptions in msg416056. Yes, but does it fits to assumptions of the numbers module? To be fair, there is even no requirement, that numerator/denominator are Integral instances (#25619 address also this). BTW, it seems, the

[issue47136] Wrong value assigned automatically to the variable __module__ in the class body.

2022-03-27 Thread Takuo Matsuoka
New submission from Takuo Matsuoka : In the creation of a class, it looks as if the value of the variable __name__ gets assigned automatically to the variable __module__ in the class body. However, the correct name space where the value of __name__ should be looked up is NOT the mapping object

[issue47072] Database corruption with the shelve module

2022-03-27 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 27.03.2022 09:56, Hubert Tournier wrote: > > The storage format used under Windows is completely different from the one > used under Unix (or *BSD). The shelve module uses the dbm module underneath and this will pick its storage mechanism based on

[issue47072] Database corruption with the shelve module

2022-03-27 Thread Hubert Tournier
Hubert Tournier added the comment: The storage format used under Windows is completely different from the one used under Unix (or *BSD). Apart from the .dat datafile, there is a .dir index file with CSV lines such as "'key', (offset, length)". Whereas under Unix (or *BSD), I have: # file

[issue43323] UnicodeEncodeError: surrogates not allowed when parsing invalid charset

2022-03-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +30217 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32137 ___ Python tracker

[issue14265] Fully qualified test name in failure output

2022-03-27 Thread Sam Ezeh
Change by Sam Ezeh : -- keywords: +patch pull_requests: +30218 pull_request: https://github.com/python/cpython/pull/32138 ___ Python tracker ___

[issue14265] Fully qualified test name in failure output

2022-03-27 Thread Sam Ezeh
Sam Ezeh added the comment: The provided patch wasn't entirely compatible with the current upstream code. I used the patch file to apply the changes to `Lib/unittest/case.py`, resolved the remaining conflicts with the patches to the test files and amended existing tests for the library. I

[issue47079] Integral.denominator shouldn't return an int

2022-03-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker ___