[issue43923] Can't create generic NamedTuple as of py3.9

2022-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What about mix-ins or abstract base classes? class VecMixin: def length(self): return math.hypot(*self) class Vec2D(NamedTuple, VecMixin): x: float y: float class Vec3D(NamedTuple, VecMixin): x: float y: float z: float

[issue46972] Documentation: Reference says AssertionError is raised by `assert`, but not all AssertionErrors are.

2022-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Eric. The existing documentation looks pretty clear to me. Any exception can be raised explicitly, no need to repeat this. And unittest.TestCase methods do not raise AssertionError. They raise TestCase.failureException, which by default is

[issue40280] Consider supporting emscripten/webassembly as a build target

2022-03-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: -serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue40280> ___ ___ Python-bugs-list mailing list Unsub

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 32bf3597922ac3f613989582afa2bff43bea8a2f by Matt Bogosian in branch 'main': bpo-46581: Propagate private vars via _GenericAlias.copy_with (GH-31061) https://github.com/python/cpython/commit/32bf3597922ac3f613989582afa2bf

[issue45767] Fix types for dev_t processing in posix module

2022-03-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +29898 pull_request: https://github.com/python/cpython/pull/31794 ___ Python tracker <https://bugs.python.org/issue45

[issue45767] Fix types for dev_t processing in posix module

2022-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 31794 supports NODEV and checks for integer overflows. -- ___ Python tracker <https://bugs.python.org/issue45767> ___ ___

[issue43224] Add support for PEP 646

2022-03-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka nosy_count: 8.0 -> 9.0 pull_requests: +29901 pull_request: https://github.com/python/cpython/pull/31800 ___ Python tracker <https://bugs.python.org/issu

[issue46981] Empty typing.Tuple

2022-03-11 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : There are two empty typing.Tuple. They have the same repr but are not equal. >>> from typing import * >>> t1 = Tuple[()] >>> t2 = t1.copy_with(()) >>> t1 typing.Tuple[()] >>> t2 typing.Tuple[()] >>>

[issue46982] Error in the experts list

2022-03-11 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : After adding experts for typing module, I get an error when try to submit changes: Error: property nosy: 'JelleZijlstra' is not a user. I think there is a typo in the experts list. -- messages: 414893 nosy: gvanrossum, kj, serhiy

[issue35677] Do not automount in stat() by default

2022-03-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Glad to see that this old inconsistency was fixed. But seems that if we will add support for statx() we will need to set AT_NO_AUTOMOUNT by default. -- resolution: -> out of date stage: patch review -> resolved status: open -&g

[issue44796] Add __parameters__ and __getitem__ in TypeVar and ParamSpec

2022-03-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b6a5d8590c4bfe4553d796b36af03bda8c0d5af5 by Serhiy Storchaka in branch 'main': bpo-44796: Unify TypeVar and ParamSpec substitution (GH-31143) https://github.com/python/cpython/commit/b6a5d8590c4bfe4553d796b36af03b

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-03-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3bc801960655ea265599805eac24173164b511a6 by Matt Bogosian in branch '3.10': [3.10] bpo-46581: Propagate private vars via _GenericAlias.copy_with (GH-31061) (GH-31821) https://github.com/python/cpyt

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-03-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43224] Add support for PEP 646

2022-03-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5b1b9eacb92dd47d10793a8868246df6ea477ed6 by Serhiy Storchaka in branch 'main': bpo-43224: Implement substitution of unpacked TypeVarTuple (GH-31800) https://github.com/python/cpython/commit/5b1b9eacb92dd47d10793a8868246d

[issue43224] Add support for PEP 646

2022-03-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +29925 pull_request: https://github.com/python/cpython/pull/31828 ___ Python tracker <https://bugs.python.org/issue43

[issue46981] Empty typing.Tuple

2022-03-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +29934 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31836 ___ Python tracker <https://bugs.python.org/issu

[issue46981] Empty typing.Tuple

2022-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If for repr(Tuple[()]), it is no longer needed. -- ___ Python tracker <https://bugs.python.org/issue46981> ___ ___ Python-bug

[issue44796] Add __parameters__ and __getitem__ in TypeVar and ParamSpec

2022-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 31143 simplified some code without changing the common API: Objects/genericaliasobject.c | 46 ++ 1 file changed, 14 insertions(+), 32 deletions(-) Lib/_collections_abc.py | 63

[issue46996] Drop support of Tcl/Tk older than 8.5.12

2022-03-12 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : In issue45979 E. Paine suggested to drop support of Tcl/Tk older than 8.5.12 (8.5.12 was released on 2012-07-27 and 8.6.0 on 2012-12-20). Tkinter tests contain workarounds and special cases for older versions of Tcl/Tk, many of them can be removed. Also

[issue46996] Drop support of Tcl/Tk older than 8.5.12

2022-03-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +29938 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31839 ___ Python tracker <https://bugs.python.org/issu

[issue37907] speed-up PyLong_As*() for large longs

2022-03-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +mark.dickinson ___ Python tracker <https://bugs.python.org/issue37907> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46996] Drop support of Tcl/Tk older than 8.5.12

2022-03-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Tkinter nosy: +christian.heimes, epaine, erlendaasland ___ Python tracker <https://bugs.python.org/issue46

[issue45979] Fix Tkinter tests with old Tk

2022-03-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is a great idea. I have opened issue46996 for this. -- ___ Python tracker <https://bugs.python.org/issue45979> ___ ___

[issue45979] Fix Tkinter tests with old Tk

2022-03-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +30029 pull_request: https://github.com/python/cpython/pull/31938 ___ Python tracker <https://bugs.python.org/issue45

[issue30080] Add the --duplicate option for timeit

2022-03-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45979] Fix Tkinter tests with old Tk

2022-03-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset dbbe4d2d0075fa0e95b069fb4780d79aae3514c7 by Serhiy Storchaka in branch 'main': bpo-45979: Fix Tkinter tests with old Tk (>= 8.5.12) (GH-31938) https://github.com/python/cpython/commit/dbbe4d2d0075fa0e95b069fb478

[issue46981] Empty typing.Tuple

2022-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 15df8f8d89a0e563bdd15e4cd6734298736a5a1d by Serhiy Storchaka in branch 'main': bpo-46981: Remove typing._TypingEmpty (GH-31836) https://github.com/python/cpython/commit/15df8f8d89a0e563bdd15e4cd67342

[issue46981] Empty typing.Tuple

2022-03-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 ___ Python tracker <https://bugs.python.or

[issue46996] Drop support of Tcl/Tk older than 8.5.12

2022-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 8.5.12 will be 10 years old at the time of releasing 3.11. We can relax the requirements for 8.5.x, so the code can be build with older versions, but some tests will fail because we removed workarounds for differences in behavior in older versions from

[issue47042] Fix test_html_doc in test_pydoc

2022-03-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Due to missed splitlines() in test_pydoc the HTML output was not tested correctly. Instead of testing that the actual output contains every *line* from the expected output it tested that the actual output contains every *character* from the expected

[issue47042] Fix test_html_doc in test_pydoc

2022-03-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +30048 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31959 ___ Python tracker <https://bugs.python.org/issu

[issue40296] help(list[int]) fails

2022-03-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Fix test_html_doc in test_pydoc ___ Python tracker <https://bugs.python.org/issue40296> ___ ___ Python-bugs-list m

[issue46996] Drop support of Tcl/Tk older than 8.5.12

2022-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c2e3c06139e9468efb32629d147d99a1672d9e19 by Serhiy Storchaka in branch 'main': bpo-46996: Remove support of Tcl/Tk < 8.5.12 (GH-31839) https://github.com/python/cpython/commit/c2e3c06139e9468efb32629d147

[issue46996] Drop support of Tcl/Tk older than 8.5.12

2022-03-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46382] dataclass(slots=True) does not account for slots in base classes

2022-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: __slotnames__ is used for storing all slot names. New object.__getstate__() proposed in issue26579 may have some relation to this discussion. -- nosy: +serhiy.storchaka ___ Python tracker <ht

[issue46382] dataclass(slots=True) does not account for slots in base classes

2022-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > > It is not set automatically. It is set in object.__reduce__ by calling > some helper function from the copyreg module. -- ___ Python tracker <https://bugs.python.or

[issue46382] dataclass(slots=True) does not account for slots in base classes

2022-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, the previous message was written via a phone because of blackout, so the formatting is a tine bit messy. __slotnames__ is set in copyreg._slotnames(). If you want to keep a list of all slots you should save it in __slotnames__, either using copyreg

[issue46996] Drop support of Tcl/Tk older than 8.5.12

2022-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: After PR 31839 has been merged you cannot build the _tkinter module with Tcl/Tk older than 8.5.12. If you will still try to run IDLE on such incomplete build, an import error during importing tkinter will be translated to IDLE error: $ ./python -m idlelib

[issue46996] Drop support of Tcl/Tk older than 8.5.12

2022-03-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +30051 pull_request: https://github.com/python/cpython/pull/31962 ___ Python tracker <https://bugs.python.org/issue46

[issue47042] Fix test_html_doc in test_pydoc

2022-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a5d246066b5352a7d72e70ec0acb643e7c0861fa by Serhiy Storchaka in branch 'main': bpo-47042: Fix testing the HTML output in test_pydoc (GH-31959) https://github.com/python/cpython/commit/a5d246066b5352a7d72e70ec0acb64

[issue46996] Drop support of Tcl/Tk older than 8.5.12

2022-03-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: closed -> open ___ Python tracker <https://bugs.python.org/issue46996> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue40296] help(list[int]) fails

2022-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset cd44afc573e2e2de8d7e5a9119c347373066cd10 by Serhiy Storchaka in branch 'main': bpo-40296: Fix supporting generic aliases in pydoc (GH-30253) https://github.com/python/cpython/commit/cd44afc573e2e2de8d7e5a9119c347

[issue47042] Fix test_html_doc in test_pydoc

2022-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is 3.11 only issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.10, Python 3.9 ___ Python tracker <https://bugs.python.or

[issue40296] help(list[int]) fails

2022-03-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +30066 pull_request: https://github.com/python/cpython/pull/31976 ___ Python tracker <https://bugs.python.org/issue40

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2022-03-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +30069 pull_request: https://github.com/python/cpython/pull/31979 ___ Python tracker <https://bugs.python.org/issue14

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2022-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4d2099f455229b10f88846dbe9fe6debbee55356 by Serhiy Storchaka in branch '3.9': [3.9] bpo-14156: Make argparse.FileType work correctly for binary file modes when argument is '-' (GH-13165) (GH-31979) https://github.com/p

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2022-03-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.or

[issue44405] add program passed as string to dis module.

2022-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Neither of tokenize, ast or symtable modules support passing the source string as argument. If add this feature in the dis module, we will need to add it in all other modules with similar CLI. I do not think it is practical. You always can pass the source

[issue40296] help(list[int]) fails

2022-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a5b7678a67ac99edd50822827b772e7d9afc8e64 by Serhiy Storchaka in branch '3.10': [3.10] bpo-40296: Fix supporting generic aliases in pydoc (GH-30253). (GH-31976) https://github.com/python/cpython/commit/a5b7678a67ac99edd50822827b772e

[issue433030] SRE: Atomic Grouping (?>...) is not supported

2022-03-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +30072 pull_request: https://github.com/python/cpython/pull/31982 ___ Python tracker <https://bugs.python.org/issue433

[issue47031] math.nan should note that NANs do not compare equal to anything

2022-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: We cannot guarantee that NAN never equal to anything, because we can create an object equal to it. For example mock.ANY. -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue47

[issue433030] SRE: Atomic Grouping (?>...) is not supported

2022-03-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +mrabarnett priority: low -> normal ___ Python tracker <https://bugs.python.org/issue433030> ___ ___ Python-bugs-list mai

[issue46410] TypeError when parsing regexp with unicode named character sequence escape

2022-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >>> import unicodedata >>> unicodedata.lookup('KEYCAP NUMBER SIGN') '#️' >>> print(ascii(unicodedata.lookup('KEYCAP NUMBER SIGN'))) '#\ufe0f\u20e3' Support of Unicode Named Character Sequen

[issue39394] re: DeprecationWarning for `flag not at the start of expression` is cutoff too early

2022-03-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +30079 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31988 ___ Python tracker <https://bugs.python.org/issu

[issue39394] re: DeprecationWarning for `flag not at the start of expression` is cutoff too early

2022-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This warning was introduced in 3.6. It is a time to convert it into an error. RE error messages contain position. But I understand that very few users will use 3.11 in nearest future, so I am going to add a position to warning message and backport this

[issue47066] Convert a warning about flags not at the start of the regular expression into error

2022-03-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : This warning was introduced in 3.6. The reason is that in most other regular expression implementations global inline flags in the middle of the expression have different semantic: they affect only the part of the expression after the flag. But in

[issue39394] re: DeprecationWarning for `flag not at the start of expression` is cutoff too early

2022-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4142961b9f5ad3bf93976a6a7162f8049e354018 by Serhiy Storchaka in branch 'main': bpo-39394: Improve warning message in the re module (GH-31988) https://github.com/python/cpython/commit/4142961b9f5ad3bf93976a6a7162f8

[issue47066] Convert a warning about flags not at the start of the regular expression into error

2022-03-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +30084 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31994 ___ Python tracker <https://bugs.python.org/issu

[issue47066] Convert a warning about flags not at the start of the regular expression into error

2022-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 92a6abf72e7a8274f96edbb5297119d4ff055be7 by Serhiy Storchaka in branch 'main': bpo-47066: Convert a warning about flags not at the start of the regular expression into error (GH-31994) https://github.com/python/cpyt

[issue39394] re: DeprecationWarning for `flag not at the start of expression` is cutoff too early

2022-03-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue47066] Convert a warning about flags not at the start of the regular expression into error

2022-03-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45979] Fix Tkinter tests with old Tk

2022-03-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40296] help(list[int]) fails

2022-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e207d721fcea01123f0e3edb83b6decdcb5e5e63 by Miss Islington (bot) in branch '3.9': [3.9] bpo-40296: Fix supporting generic aliases in pydoc (GH-30253). (GH-31976) (GH-31981) https://github.com/python/cpyt

[issue40296] help(list[int]) fails

2022-03-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11 ___ Python tracker <https://bugs.python.or

[issue46996] Drop support of Tcl/Tk older than 8.5.12

2022-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 383a3bec74f0bf0c1b1bef9e0048db389c618452 by Serhiy Storchaka in branch 'main': bpo-46996: IDLE: Drop workarounds for old Tk versions (GH-31962) https://github.com/python/cpython/commit/383a3bec74f0bf0c1b1bef9e0048db

[issue47006] PEP 646: Decide on substitution behavior

2022-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am for consistent behavior. If return GenericAlias(GenericAlias(tuple, Unpack[Ts]), (int, str)) for tuple[*Ts][int, str], we should also return GenericAlias(GenericAlias(list, T), int) for list[T][int], etc. And it will cause multiple problems: * A

[issue47065] test_curses fails if terminal defaults to bright white text (15)

2022-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am surprised. I use Konsole too, and the TERM value and the infocmp output are the same for me. -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue47

[issue40074] pickle module dump and load: add support for string file names

2022-03-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue28080] Allow reading member names with bogus encodings in zipfile

2022-03-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +30095 pull_request: https://github.com/python/cpython/pull/32007 ___ Python tracker <https://bugs.python.org/issue28

[issue28080] Allow reading member names with bogus encodings in zipfile

2022-03-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I experimented with this a lot. There is a problem with the append mode. We can read in the append mode, therefore we need an encoding. But when we close a ZipFile after appending, non-ASCII file names will be encoded in UTF-8 in the central directory

[issue42369] Reading ZipFile not thread-safe

2022-03-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e730ae7effe4f13b24f1b5fb1fca005709c86acb by Kevin Mehall in branch 'main': bpo-42369: Fix thread safety of zipfile._SharedFile.tell (GH-26974) https://github.com/python/cpython/commit/e730ae7effe4f13b24f1b5fb1fca00

[issue42369] Reading ZipFile not thread-safe

2022-03-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.or

[issue42871] Regex compilation crashed if I change order of alternatives under quantifier

2022-03-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue23691] re.finditer iterator is not reentrant, but doesn't protect against nested calls to __next__

2022-03-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +30100 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32012 ___ Python tracker <https://bugs.python.org/issu

[issue23691] re.finditer iterator is not reentrant, but doesn't protect against nested calls to __next__

2022-03-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue23

[issue47080] Use atomic groups to simplify fnmatch

2022-03-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue47080> ___ ___ Python-bugs-list mailing list Unsub

[issue42885] Optimize re.search() for \A (and maybe ^)

2022-03-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +30109 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32021 ___ Python tracker <https://bugs.python.org/issu

[issue23691] re.finditer iterator is not reentrant, but doesn't protect against nested calls to __next__

2022-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 08eb754d840696914928355014c2d424131f8835 by Serhiy Storchaka in branch 'main': bpo-23691: Protect the re.finditer() iterator from re-entering (GH-32012) https://github.com/python/cpython/commit/08eb754d840696914928355014c2d4

[issue23691] re.finditer iterator is not reentrant, but doesn't protect against nested calls to __next__

2022-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue433030] SRE: Atomic Grouping (?>...) is not supported

2022-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 345b390ed69f36681dbc41187bc8f49cd9135b54 by Serhiy Storchaka in branch 'main': bpo-433030: Add support of atomic grouping in regular expressions (GH-31982) https://github.com/python/cpython/commit/345b390ed69f36681dbc41187bc8f4

[issue47081] Replace "qualifiers" with "quantifiers" in the re module documentation

2022-03-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : In the Web you can find that two terms are used for repetition operators (+, *, ?, and variants): "quantifiers" and "qualifiers". "Quantifiers" is much more common, it is used in Wikipedia and main on-line documentation r

[issue47081] Replace "qualifiers" with "quantifiers" in the re module documentation

2022-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +30117 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32028 ___ Python tracker <https://bugs.python.org/issu

[issue43224] Add support for PEP 646

2022-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +30119 pull_request: https://github.com/python/cpython/pull/32030 ___ Python tracker <https://bugs.python.org/issue43

[issue43224] Add support for PEP 646

2022-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +30120 pull_request: https://github.com/python/cpython/pull/32031 ___ Python tracker <https://bugs.python.org/issue43

[issue47006] PEP 646: Decide on substitution behavior

2022-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The first case will be practically fixed by GH 32030 after chenging the grammar to allow unpacking in index tuple: A[*B]. Two other cases will be fixed by GH 32031. It does not require any C code. In the last case no error is raised because some error

[issue47006] PEP 646: Decide on substitution behavior

2022-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Alias = C[T, *Ts] > Alias2 = Alias[*tuple[int, ...]] > # Alias2 should be C[int, *tuple[int, ...]] tuple[int, ...] includes also an empty tuple, and in this case there is no value for T. > Oh, also interesting - I didn't know abou

[issue47006] PEP 646: Decide on substitution behavior

2022-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > 1. Some edge case seems to be that if *tuple[...] is involved on either side > we will never simplify. Or perhaps a better rule is that *tuple[...] is never > simplified away (but fixed items before and after it may be). I do not understand thi

[issue47081] Replace "qualifiers" with "quantifiers" in the re module documentation

2022-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c6cd3cc93c40363ce704d34a70e6fb73ea1d97a3 by Serhiy Storchaka in branch 'main': bpo-47081: Replace "qualifiers" with "quantifiers" in the re module documentation (GH-32028) https://gi

[issue28080] Allow reading member names with bogus encodings in zipfile

2022-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a25a985535ccbb7df8caddc0017550ff4eae5855 by Serhiy Storchaka in branch 'main': bpo-28080: Add support for the fallback encoding in ZIP files (GH-32007) https://github.com/python/cpython/commit/a25a985535ccbb7df8caddc0017550

[issue47081] Replace "qualifiers" with "quantifiers" in the re module documentation

2022-03-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue42885] Optimize re.search() for \A (and maybe ^)

2022-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 492d4109f4d953c478cb48f17aa32adbb912623b by Serhiy Storchaka in branch 'main': bpo-42885: Optimize search for regular expressions starting with "\A" or "^" (GH-32021) https://gi

[issue42885] Optimize re.search() for \A (and maybe ^)

2022-03-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue22608] test_socket fails with sem_init: Too many open files

2022-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Note that it is a FreeBSD-only issue. We need to test on FreeBSD (ulimit -n can be used for this) to check whether it was fixed in issue45212. -- status: pending -> open ___ Python tracker <

[issue40465] Deprecate the optional *random* argument to random.shuffle()

2022-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 12c0012cf97d21bc637056983ede0eaf4c0d9c33 by Tomáš Hrnčiar in branch 'main': bpo-40465: Document random module changes in 3.11 What's new (#31818) https://github.com/python/cpython/commit/12c0012cf97d21bc637056983

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +christian.heimes ___ Python tracker <https://bugs.python.org/issue44493> ___ ___ Python-bugs-list mailing list Unsub

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am not the socket programming expert. It just happened that I fixed some bugs here. But according to the manpage https://man7.org/linux/man-pages/man7/unix.7.html the address length should include the terminating NUL: offsetof(struct sockaddr_un

[issue47118] test_run_keeps_context in test_asyncio fails

2022-03-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : $ ./python -m test -vuall test_asyncio ... == FAIL: test_run_keeps_context (test.test_asyncio.test_runners.RunnerTests

[issue47119] test_freeze_simple_script in test_tools fails

2022-03-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : $ ./python -X frozen_modules=off -m test -vuall test_tools -m test_freeze_simple_script ... == ERROR: test_freeze_simple_script (test.test_tools.test_freeze.TestFreeze

[issue32642] add support for path-like objects in sys.path

2022-03-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Are there any problems with converting a Path to string before adding it to sys.path? You do this one time, and any users of sys.path will not need to bother about conversion. It is better even for performance. Otherwise we will need to revise and update

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

2022-03-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: How would it work for bool or IntEnum? -- nosy: +lemburg, mark.dickinson, stutzbach ___ Python tracker <https://bugs.python.org/issue47

<    1   2   3   4   5   6   7   8   9   10   >