[issue46721] Optimize set.issuperset() for non-set argument

2022-04-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: -Use-after-free by mutating set during set operations resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue47211] Remove re.template() and re.TEMPLATE

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

[issue47227] Suppress expression chaining for RE parsing errors

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

[issue43464] set intersections should short-circuit

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

[issue26579] Support pickling slots in subclasses of common classes

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

[issue26579] Support pickling slots in subclasses of common classes

2022-04-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 884eba3c76916889fd6bff3b37b8552bfb4f9566 by Serhiy Storchaka in branch 'main': bpo-26579: Add object.__getstate__(). (GH-2821) https://github.com/python/cpython/commit/884eba3c76916889fd6bff3b37b8552bfb4f9566

[issue46721] Optimize set.issuperset() for non-set argument

2022-04-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a69a4a917c436579c2c4112081ea86a70f1f05d3 by Serhiy Storchaka in branch 'main': bpo-46721: Optimize set.issuperset() for non-set arguments (GH-31280) https://github.com/python/cpython/commit/a69a4a917c436579c2c4112081ea86a70f1f05d3

[issue43464] set intersections should short-circuit

2022-04-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 31cd25f4e17cd68487dc76c1b2ec162a646818c2 by Serhiy Storchaka in branch 'main': bpo-43464: Optimize set.intersection() for non-set arguments (GH-31316) https://github.com/python/cpython/commit/31cd25f4e17cd68487dc76c1b2ec162a646818c2

[issue47227] Suppress expression chaining for RE parsing errors

2022-04-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 50872dbadcba1f52867b6f76050cd7b5d0aa1e18 by Serhiy Storchaka in branch 'main': bpo-47227: Suppress expression chaining for more RE parsing errors (GH-32333) https://github.com/python/cpython/commit/50872dbadcba1f52867b6f76050cd7b5d0aa1e18

[issue47211] Remove re.template() and re.TEMPLATE

2022-04-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b09184bf05b07b77c5ecfedd4daa846be3cbf0a9 by Serhiy Storchaka in branch 'main': bpo-47211: Remove function re.template() and flag re.TEMPLATE (GH-32300) https://github.com/python/cpython/commit/b09184bf05b07b77c5ecfedd4daa846be3cbf0a9

[issue47227] Suppress expression chaining for RE parsing errors

2022-04-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +30390 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32333 ___ Python tracker <https://bugs.python.org/issu

[issue47227] Suppress expression chaining for RE parsing errors

2022-04-05 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The EAFP principle is widely used in the regular expressions parsing code. Exceptions like KeyError, IndexError, ValueError or OverflowError raised during parsing are converted into a helpful re.error. Expression chaining is usually suppressed

[issue47152] Reorganize the re module sources

2022-04-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue47211 for removing re.TEMPLATE. -- ___ Python tracker <https://bugs.python.org/issue47152> ___ ___ Python-bug

[issue47152] Reorganize the re module sources

2022-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Match.regs is an undocumented attribute, it seems it has existed since 1991. Can it be removed? It was kept for compatibility with the pre-SRE implementation of the re module. It was an implementation detail in the original Python code, but I am s

[issue47211] Remove re.template() and re.TEMPLATE

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

[issue47152] Reorganize the re module sources

2022-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ff2cf1d7d5fb25224f3ff2e0c678d36f78e1f3cb by Serhiy Storchaka in branch 'main': bpo-47152: Remove unused import in re (GH-32298) https://github.com/python/cpython/commit/ff2cf1d7d5fb25224f3ff2e0c678d36f78e1f3cb

[issue47211] Remove re.template() and re.TEMPLATE

2022-04-04 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : They were added in 436c3d58a2570f3b599e59b4071f944f774ec441 (between 1.6a2 and 2.0), but the purpose is not known. See also https://mail.python.org/archives/list/python-...@python.org/message/DVSQGM5LO4TK63C63H6KQ6XBTBQGFLEN/. The feature was not fully

[issue47152] Reorganize the re module sources

2022-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1578f06c1c69fbbb942b90bfbacd512784b599fa by Serhiy Storchaka in branch 'main': bpo-47152: Move sources of the _sre module into a subdirectory (GH-32290) https://github.com/python/cpython/commit/1578f06c1c69fbbb942b90bfbacd512784b599fa

[issue47152] Reorganize the re module sources

2022-04-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +30357 pull_request: https://github.com/python/cpython/pull/32298 ___ Python tracker <https://bugs.python.org/issue47

[issue47190] Integrating tkinter and asyncio event loops

2022-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is a duplicate of issue27546. -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue47190> ___ ___

[issue47152] Reorganize the re module sources

2022-04-03 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +30351 pull_request: https://github.com/python/cpython/pull/32290 ___ Python tracker <https://bugs.python.org/issue47

[issue39064] ValueError in zipfile.ZipFile

2022-04-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Try to create a normal ZIP file (it can be empty), then try to set some byte to FF (or a pair of bytes to , or 4 consequent bytes to , until you get the exactly same error). Then you can just add the binary dump of that file in tests

[issue23689] Memory leak in Modules/sre_lib.h

2022-04-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Ma Lin for all your work. The fix changes interfaces of some internal functions which can be used in third-party code, and the bug occurs only in special circumstances, so it is not practical to backport it. -- resolution: -> fi

[issue23689] Memory leak in Modules/sre_lib.h

2022-04-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6e3eee5c11b539e9aab39cff783acf57838c355a by Ma Lin in branch 'main': bpo-23689: re module, fix memory leak when a match is terminated by a signal or memory allocation failure (GH-32283) https://github.com/python/cpython/commit

[issue47152] Reorganize the re module sources

2022-04-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are two very different classes with similar names: _sre.SRE_Scanner and re.Scanner. The former is used to implement the Pattern.finditer() method, but it could be used in other cases. The latter is an experimental implementation of generalized lexer

[issue47152] Reorganize the re module sources

2022-04-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Is the "import _locale" still used in re/__init__.py? It cannot see any > reference to it in the code and test_re still if it's removed. It is true. > *Maybe* it's time to consider that re.template() and re.Scanner are no longer &g

[issue47152] Reorganize the re module sources

2022-04-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1be3260a90f16aae334d993aecf7b70426f98013 by Serhiy Storchaka in branch 'main': bpo-47152: Convert the re module into a package (GH-32177) https://github.com/python/cpython/commit/1be3260a90f16aae334d993aecf7b70426f98013

[issue47152] Reorganize the re module sources

2022-04-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Modules with old names are kept (deprecated). The questions are: 1. Should we keep the sre_ prefix in new submodules? Should we prefix them with underscores? 2. Should we keep only non-underscored names in the sre_* modules or undescored names too

[issue47163] "unterminated subpattern" in valid regex if re.VERBOSE is used

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

[issue47163] "unterminated subpattern" in valid regex if re.VERBOSE is used

2022-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: "#" in VERBOSE mode starts a comment and skips to the end of the line. Escape it: "\#". -- nosy: +serhiy.storchaka resolution: not a bug -> stage: resolved -> status: closed -> open _

[issue47152] Reorganize the re module sources

2022-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It turns out that pip uses sre_constants in its copy of pyparsing. The problem is already fixed in the upstream of pyparsing and soon should be fixed in pip. We still need to keep sre_constants and maybe other sre_* modules, but deprecate them. > Co

[issue26120] pydoc: move __future__ imports out of the DATA block

2022-03-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Yet one bug: PR 30888 only changed the text output. But there is also the > html output generator. Sorry, I was wrong. The changed code is common for all generators. Perhaps I tested with wrong v

[issue47152] Reorganize the re module sources

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

[issue23689] Memory leak in Modules/sre_lib.h

2022-03-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks promising. Please, go ahead! You are free to add any fields to any opcodes. It may break some third-party code which generates compiled patterns from a sequence of opcodes, it the stability of this interface was not promised

[issue47152] Reorganize the re module sources

2022-03-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : I proposed it several years ago on the Python-Dev mailing list and that change was approved in general. The reorganization was deferred because there were several known bugs in the RE engine (fixes for which could potentially be backported

[issue9134] sre bug: lastmark_save/restore

2022-03-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed in issue35859 together with other bugs, but the fix was only applied to 3.11, because that bug is old and the old behavior matches the behavior in some other engines (Perl and Java). -- resolution: -> out of date stage: needs pa

[issue26120] pydoc: move __future__ imports out of the DATA block

2022-03-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yet one bug: PR 30888 only changed the text output. But there is also the html output generator. -- ___ Python tracker <https://bugs.python.org/issue26

[issue26120] pydoc: move __future__ imports out of the DATA block

2022-03-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am sorry that I did not test the changes manually, but it seems that __future__ annotations are now disappeared from the pydoc output for the __future__ module help. $ ./python -m pydoc __future__ It is now difficult to get a list of available

[issue35859] Capture behavior depends on the order of an alternation

2022-03-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since the old behavior in many cases matches the behavior of Perl and Java (which are considered bugs, but still), it was decided to not backport the fix to avoid possible breakage in bugfix releases. Thank you Ma Lin for your contribution

[issue35859] Capture behavior depends on the order of an alternation

2022-03-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 35699721a3391175d20e9ef03d434675b496 by Ma Lin in branch 'main': bpo-35859: Fix a few long-standing bugs in re engine (GH-12427) https://github.com/python/cpython/commit/35699721a3391175d20e9ef03d434675b496

[issue26120] pydoc: move __future__ imports out of the DATA block

2022-03-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Module objects are not shown in the help unless they are submodules of the specified module, even if they are imported with the star import. With this precedence I think it is okay to exclude the __future__ annotations as well

[issue26120] pydoc: move __future__ imports out of the DATA block

2022-03-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I once proposed to exclude modules from the star import by default, but this proposition was rejected. You can try, maybe your proposition will be more acceptable. -- ___ Python tracker <ht

[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 <https://bugs.python.or

[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 <https://bugs.python.org/issue43

[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 <https://bugs.python.org/issu

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

[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

[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

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

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

2022-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Issue14265, issue46126. -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue47133> ___ ___ Python-bug

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

2022-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is interesting that you get an UnicodeEncodeError when try to decode. Could the charser name contain non-ascii characters? -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue43

[issue26120] pydoc: move __future__ imports out of the DATA block

2022-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am positive about this idea, but we must also think about the possible negative consequences. For example, the future annotations will be included in the star-import by default and can override some global names. The fact that some names not visible

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

2022-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The function should return different values for success and error. Functions which do not do this have bad design. -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue47

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

2022-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Integral.__add__ is an abstract method, so it is a problem of your implementation. -- ___ Python tracker <https://bugs.python.org/issue47

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

2022-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The module documentation should not contain all historical reasons of every design decision. If you are interesting why something was done in one way or another, do your research. One of reasons is that type(self) not always have a constructor

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

2022-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: pkgutil just skips non-string elements in sys.path. for dir in search_path: if not isinstance(dir, str): continue -- ___ Python tracker <https://bugs.python.org/issue32

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

2022-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think you are trying to solve a wrong problem. > This wasn't obvious because Path objects appear as strings in normal debug > output, etc. How is it? >>> pathlib.Path('/usr/lib') PosixPath('/usr/lib') >>> [pathlib.Path('/usr/lib

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

2022-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is no "why". There is a fact that there is no such constrain. Adding a new constrain may break existing code. If you want to add a constrain, add it in you code. If you are interesting "why", try to search old archives for the

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

2022-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is no such constrain. And no default implementation in this module depends on the constructor. It is important, the constructor is not the part of interfaces. If you want to return the same type in denominator, just override it in your class

[issue47121] math.isfinite() can raise exception when called on a number

2022-03-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Most (but not all) functions in the math module implicitly convert its arguments to float. Here we can get an OverflowError. Do we want to add a note to every function that does it? Or add a general note at the top of the file and add exclusion notes

[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

[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

[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

[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

[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

[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

[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/12c0012cf97d21bc637056983ede0eaf4c0d9c33

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

[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

[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://github.com/p

[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

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

[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://github.com/p

[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

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

[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

[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

[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

[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

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

[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/345b390ed69f36681dbc41187bc8f49cd9135b54

[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

[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/08eb754d840696914928355014c2d424131f8835

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

2022-03-21 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

[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

[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

[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

[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

[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

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

[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

[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

[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

[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

[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

[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/383a3bec74f0bf0c1b1bef9e0048db389c618452

[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

[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/cpython/commit

[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

[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

  1   2   3   4   5   6   7   8   9   10   >