[issue45863] tarfile zeroes ustar header fields unnecessarily

2021-11-22 Thread Joshua Root
New submission from Joshua Root : When using the pax format, tarfile will zero out the field in the ustar header for any values that are represented with a float, setting the correct value only in the pax header. This mainly seems to apply to the mtime. This behaviour doesn't cause problems w

[issue45723] Improve and simplify configure.ac checks

2021-11-22 Thread Christian Heimes
Christian Heimes added the comment: New changeset db2277a114463d30a58d9066f2b47f7a53a1488c by Erlend Egeberg Aasland in branch 'main': bpo-45723: Add helpers for save/restore env (GH-29637) https://github.com/python/cpython/commit/db2277a114463d30a58d9066f2b47f7a53a1488c -- ___

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread Christian Heimes
Christian Heimes added the comment: New changeset 133c65a870e8bdcce7cd6a2bc6bd0cefbb2fa9f3 by Erlend Egeberg Aasland in branch 'main': bpo-45847: Port array, _contextvars, math, and cmath to PY_STDLIB_MOD_SIMPLE (GH-29688) https://github.com/python/cpython/commit/133c65a870e8bdcce7cd6a2bc6bd

[issue45863] tarfile zeroes ustar header fields unnecessarily

2021-11-22 Thread Joshua Root
Change by Joshua Root : -- keywords: +patch pull_requests: +27931 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29693 ___ Python tracker ___

[issue45509] Gzip header corruption not properly checked.

2021-11-22 Thread Ruben Vorderman
Ruben Vorderman added the comment: Ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue45862] Anomaly of eval() of list comprehension

2021-11-22 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the report. The behaviour is by design: see #5242 (especially msg81898) for an explanation. Closing this issue as a duplicate of #5242. -- nosy: +mark.dickinson resolution: -> duplicate stage: -> resolved status: open -> closed supersede

[issue45862] Anomaly of eval() of list comprehension

2021-11-22 Thread Mark Dickinson
Mark Dickinson added the comment: See also #41216 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue45862] Anomaly of eval() of list comprehension

2021-11-22 Thread David Pratten
David Pratten added the comment: Hi Mark, Thanks.   The anomaly is that the print("eg def2", ...)  works.  Should it not fail in the same way that print("eg def4", ...) does. David On 22/11/2021 7:36:31 PM, Mark Dickinson wrote: Mark Dickinson added the comment: Thanks for the report. Th

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread miss-islington
miss-islington added the comment: New changeset 718cee08cc082ece590f5a012253a405422da03d by Erlend Egeberg Aasland in branch 'main': bpo-45847: Port _bisect, _heapq, _json, _pickle, _random, and _zoneinfo to PY_STDLIB_MOD_SIMPLE (GH-29689) https://github.com/python/cpython/commit/718cee08cc0

[issue45862] Anomaly of eval() of list comprehension

2021-11-22 Thread Mark Dickinson
Mark Dickinson added the comment: True: there's another detail here that's needed to explain the behaviour. The first "for" clause in a list comprehension is special: it's evaluated in the enclosing scope, rather than in the local function scope that the list comprehension creates. See the d

[issue45509] Gzip header corruption not properly checked.

2021-11-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it is good idea, although we may get reports about regressions in 3.11 when Python will start to reject GZIP files which was successfully read before. But before merging this I want to know: 1. How much overhead does it add for reading files with t

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: 45 down, 35 to go. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread miss-islington
miss-islington added the comment: New changeset 39f7d2ff01eb03f1dd87a019472a32cde6250e84 by Erlend Egeberg Aasland in branch 'main': bpo-45847: Port _lfprof, _opcode, _asyncio, _queue, _statistics, and _typing to PY_STDLIB_MOD_SIMPLE (GH-29690) https://github.com/python/cpython/commit/39f7d2

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +27932 pull_request: https://github.com/python/cpython/pull/29696 ___ Python tracker ___ ___

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27933 pull_request: https://github.com/python/cpython/pull/29697 ___ Python tracker ___

[issue45864] unittest does not discover tests in PEP420 packages

2021-11-22 Thread Adam Johnson
New submission from Adam Johnson : unittest's test discovery does not descend into directories without `__init__.py`. This avoids discovering test modules that are otherwise valid and importable, after PEP 420. I've seen this more than once where there were valid looking test files not being

[issue45865] Old syntax in unittest

2021-11-22 Thread Adam Johnson
New submission from Adam Johnson : I often browse the unittest code in order to write extensions. It still uses some Python 2-isms like classes inheriting from object, it would be nice to clean that up. -- components: Tests messages: 406757 nosy: adamchainz priority: normal severity:

[issue45865] Old syntax in unittest

2021-11-22 Thread Adam Johnson
Change by Adam Johnson : -- keywords: +patch pull_requests: +27934 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29698 ___ Python tracker ___ ___

[issue34943] sched cancel (wrong item removed from queue)

2021-11-22 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Document that sched.cancel() doesn't distinguish equal events and can break order ___ Python tracker

[issue19270] sched.cancel() doesn't distinguish equal events and can break order

2021-11-22 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: Document that sched.cancel() doesn't distinguish equal events and can break order -> sched.cancel() doesn't distinguish equal events and can break order type: enhancement ->

[issue45509] Gzip header corruption not properly checked.

2021-11-22 Thread Ruben Vorderman
Ruben Vorderman added the comment: 1. Quite a lot I tested it for the two most common use case. import timeit import statistics WITH_FNAME = """ from gzip import GzipFile, decompress import io fileobj = io.BytesIO() g = GzipFile(fileobj=fileobj, mode='wb', filename='compressable_file') g.wri

[issue45864] unittest does not discover tests in PEP420 packages

2021-11-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This seems to be similar to https://bugs.python.org/issue23882 -- nosy: +methane, xtreak ___ Python tracker ___ ___

[issue45864] unittest does not discover tests in PEP420 packages

2021-11-22 Thread Adam Johnson
Adam Johnson added the comment: It's exactly that ticket. I missed that when searching for duplicates - I only searched for "pep420" and not "namespace packages". Mea culpa. -- resolution: -> duplicate ___ Python tracker

[issue45864] unittest does not discover tests in PEP420 packages

2021-11-22 Thread Adam Johnson
Change by Adam Johnson : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2021-11-22 Thread Adam Johnson
Adam Johnson added the comment: I just reported https://bugs.python.org/issue45864 , and closed as duplicate of this. -- nosy: +adamchainz ___ Python tracker ___

[issue45813] Importing asyncio after deleting a coroutine object and before cleaning it up leads to crashing on Python3.11

2021-11-22 Thread Mark Shannon
Mark Shannon added the comment: I'm seeing a similar failure on a debug build of 3.10 as well. ./python Python 3.10.0+ (heads/3.10:9e7a2e4920, Nov 22 2021, 10:51:32) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> async def f(): ... pass ..

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27935 pull_request: https://github.com/python/cpython/pull/29699 ___ Python tracker ___

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread Christian Heimes
Christian Heimes added the comment: New changeset 29699a2a2aa2f0d6e790beeae55967fc2f35fe50 by Christian Heimes in branch 'main': bpo-45847: Various PY_STDLIB_MOD cleanups (GH-29697) https://github.com/python/cpython/commit/29699a2a2aa2f0d6e790beeae55967fc2f35fe50 -- ___

[issue45813] Importing asyncio after deleting a coroutine object and before cleaning it up leads to crashing on Python3.11

2021-11-22 Thread Mark Shannon
Change by Mark Shannon : -- assignee: -> Mark.Shannon keywords: +3.11regression priority: normal -> release blocker ___ Python tracker ___

[issue45813] Importing asyncio after deleting a coroutine object and before cleaning it up leads to crashing on Python3.11

2021-11-22 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +27936 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29700 ___ Python tracker ___ ___

[issue45866] Out of tree build of Python 3.11.0a2+ breaks regen-frozen

2021-11-22 Thread Miro Hrončok
New submission from Miro Hrončok : In Fedora, when building Python 3.11.0a2 with Python 3.11.0a2 for regen, we found that regen-frozen fails. It can be reproduced either on the v3.11.0a2 tag or on the main branch. On tag v3.11.0a2 with 3.11.0a2 installed in $PATH: # in root of cpython local c

[issue45723] Improve and simplify configure.ac checks

2021-11-22 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +27937 pull_request: https://github.com/python/cpython/pull/29701 ___ Python tracker ___ ___

[issue45867] kwarg default value expression incorrectly evaluated

2021-11-22 Thread Muhamed Itani
New submission from Muhamed Itani : I have an MPYFrame class that inherits from tkinter.Frame. It's init looks like this: from os.path import normcase,normpath def __init__(self,master=None,port=None,baudrate=115200,timeout=1,localFolder=normcase(normpath(os.getcwd(: The problem is, when

[issue45866] Out of tree build of Python 3.11.0a2+ breaks regen-frozen

2021-11-22 Thread Miro Hrončok
Miro Hrončok added the comment: git bisect says: ff8859d965815e8b5af346bd90299cfa5568c855 is the first new commit commit ff8859d965815e8b5af346bd90299cfa5568c855 Author: Victor Stinner Date: Thu Oct 7 21:19:13 2021 +0200 bpo-45402: Fix test_tools.test_sundry() (GH-28786) Fix te

[issue45402] ERROR: test_sundry (test.test_tools.test_sundry.TestSundryScripts): SystemExit: ERROR: missing _freeze_module

2021-11-22 Thread Miro Hrončok
Miro Hrončok added the comment: There seem to be a regression in this fix, see https://bugs.python.org/issue45866 -- ___ Python tracker ___ ___

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27938 pull_request: https://github.com/python/cpython/pull/29702 ___ Python tracker ___

[issue45868] xattr support missing in os module under cygwin

2021-11-22 Thread Oskar Enoksson
New submission from Oskar Enoksson : With the latest Python 3.8.10 under cygwin the following fails: >>> import os >>> os.listxattr('.') Traceback (most recent call last): File "", line 1, in < module> AttributeError: module 'os' has no attribute 'listxattr' /usr/include/attr/xattr.h declare

[issue45866] Out of tree build of Python 3.11.0a2+ breaks regen-frozen

2021-11-22 Thread Miro Hrončok
Miro Hrončok added the comment: It also seems that it is *not* necessary to use Python 3.11 for regen-frozen to get the failure: $ make regen-frozen PYTHON_FOR_REGEN=python3.10 python3.10 ../../Tools/scripts/freeze_modules.py ERROR: missing _freeze_module make: *** [Makefile:1259: regen-frozen

[issue45867] kwarg default value expression incorrectly evaluated

2021-11-22 Thread Muhamed Itani
Change by Muhamed Itani : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-

[issue45867] kwarg default value expression incorrectly evaluated

2021-11-22 Thread Muhamed Itani
Change by Muhamed Itani : Removed file: https://bugs.python.org/file50456/mpyFrame.pyw ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue45865] Old syntax in unittest

2021-11-22 Thread Eric V. Smith
Eric V. Smith added the comment: As a general rule, we don't accept large patches with changes like this. The chance for breakage somewhere in the 27 files is too high. I could see maybe dropping inheriting from object, since that's relatively safe. -- nosy: +eric.smith

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread Christian Heimes
Christian Heimes added the comment: New changeset 5b946cadaa1175a5caae98bd2d309840bea52a58 by Erlend Egeberg Aasland in branch 'main': bpo-45847: Port fcntl to Py_STDLIB_MOD (GH-29696) https://github.com/python/cpython/commit/5b946cadaa1175a5caae98bd2d309840bea52a58 --

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +27939 pull_request: https://github.com/python/cpython/pull/29703 ___ Python tracker ___ ___

[issue44649] dataclasses slots with init=False field raises AttributeException

2021-11-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +27940 pull_request: https://github.com/python/cpython/pull/29704 ___ Python tracker _

[issue44649] dataclasses slots with init=False field raises AttributeException

2021-11-22 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset d3062f672c92855b7e9e962ad4bf1a67abd4589b by Eric V. Smith in branch 'main': bpo-44649: Fix dataclasses(slots=True) with a field with a default, but init=False (GH-29692) https://github.com/python/cpython/commit/d3062f672c92855b7e9e962ad4bf1a67ab

[issue45869] Unicode and acii regular expressions do not agree on ascii space characters

2021-11-22 Thread Joran van Apeldoorn
New submission from Joran van Apeldoorn : The expectation would be that the re.A (or re.ASCII) flag should not impact the matching behavior of a regular expression on strings consisting only of ASCII characters. However, for the characters 0x1c till 0x1f, the classes \s and \S differ. For AS

[issue44649] dataclasses slots with init=False field raises AttributeException

2021-11-22 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for the bug report! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45869] Unicode and acii regular expressions do not agree on ascii space characters

2021-11-22 Thread Joran van Apeldoorn
Change by Joran van Apeldoorn : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue45857] PEP 604 Union syntax does not support forward references

2021-11-22 Thread Ken Jin
Ken Jin added the comment: I think I saw a similar bug report elsewhere (or maybe I'm misremembering). Anyways, Eric is right, the correct way is to wrap the entire thing, so "Foo|int" instead of "Foo"|int. @Alex you brought up some good suggestions, I'll try to address them: > Arguably, ei

[issue44649] dataclasses slots with init=False field raises AttributeException

2021-11-22 Thread miss-islington
miss-islington added the comment: New changeset 10343bd98390ef15909e3a19f26a6178162996fd by Miss Islington (bot) in branch '3.10': bpo-44649: Fix dataclasses(slots=True) with a field with a default, but init=False (GH-29692) https://github.com/python/cpython/commit/10343bd98390ef15909e3a19f2

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread Christian Heimes
Christian Heimes added the comment: New changeset b451673f93465a27ee61e408190ee61cb9dbd5b6 by Erlend Egeberg Aasland in branch 'main': bpo-45847: Port mmap, select, and _xxsubinterpreters to Py_STDLIB_MOD (GH-29703) https://github.com/python/cpython/commit/b451673f93465a27ee61e408190ee61cb9db

[issue45870] There's no readline module on Windows Python (cmd.Cmd)

2021-11-22 Thread keeely
New submission from keeely : In the past this was worked around by installing a third-party module: https://github.com/pyreadline/pyreadline For Python 3.10, however this module doesn't work. And pyreadline doesn't seem to be maintained anymore, so it's possible it won't get fixed. https://gi

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread Christian Heimes
Christian Heimes added the comment: New changeset d9cedabeba0d87799f99c0717e81743a1c2d34ce by Christian Heimes in branch 'main': bpo-45847: Port compression libs to PY_STDLIB_MOD (GH-29702) https://github.com/python/cpython/commit/d9cedabeba0d87799f99c0717e81743a1c2d34ce -- ___

[issue45813] Importing asyncio after deleting a coroutine object and before cleaning it up leads to crashing on Python3.11

2021-11-22 Thread Mark Shannon
Mark Shannon added the comment: New changeset 7fd92a8b7ee5bed28c2681fa38e0a1e76200dd8e by Mark Shannon in branch 'main': bpo-45813: Make sure that frame->generator is NULLed when generator is deallocated. (GH-29700) https://github.com/python/cpython/commit/7fd92a8b7ee5bed28c2681fa38e0a1e7620

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +27941 pull_request: https://github.com/python/cpython/pull/29705 ___ Python tracker ___ ___

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27942 pull_request: https://github.com/python/cpython/pull/29706 ___ Python tracker ___

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread Christian Heimes
Christian Heimes added the comment: New changeset c6dec7e27a82cba33539d07ef8d7346e0a232421 by Christian Heimes in branch 'main': bpo-45847: Port nis module to PY_STDLIB_MOD (GH-29699) https://github.com/python/cpython/commit/c6dec7e27a82cba33539d07ef8d7346e0a232421 -- _

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread Christian Heimes
Christian Heimes added the comment: Not converted yet: readline _curses _curses_panel _crypt _socket _ssl _hashlib _dbm _gdbm _ctypes _multiprocessing _posixshmem _tkinter _uuid xxlimited xxlimited_35 -- ___ Python tracker

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: _socket coming up... -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread miss-islington
miss-islington added the comment: New changeset eee683cbde499e62fc90ad366f7c45625fe92150 by Erlend Egeberg Aasland in branch 'main': bpo-45847: Port audioop, _csv, and _posixsubprocess to PY_STDLIB_MOD_SIMPLE (GH-29705) https://github.com/python/cpython/commit/eee683cbde499e62fc90ad366f7c456

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread Christian Heimes
Christian Heimes added the comment: _crypt is powered by pkgconf libcrypt or libxcrypt on Linux. On my system and on Debian, libcrypt.pc is a symlink to libxcrypt.pc. Linux has crypt() and/or crypt_r() in . On FreeBSD crypt_r() is in and libc. _uuid needs similar special handling. It's , -

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +27943 pull_request: https://github.com/python/cpython/pull/29707 ___ Python tracker ___ ___

[issue45859] test_collections has a wrong test in case _itemgetter is not available

2021-11-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 4fad314246399b69ef0c57ba8527d9efade99069 by Carl Friedrich Bolz-Tereick in branch 'main': bpo-45859: Mark test_field_descriptor in test_collections as CPython-only (GH-29691) https://github.com/python/cpython/commit/4fad314246399b69ef0c57ba8

[issue45859] test_collections has a wrong test in case _itemgetter is not available

2021-11-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +27944 pull_request: https://github.com/python/cpython/pull/29708 ___ Python tracker _

[issue45859] test_collections has a wrong test in case _itemgetter is not available

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

[issue45859] test_collections has a wrong test in case _itemgetter is not available

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

[issue45869] Unicode and acii regular expressions do not agree on ascii space characters

2021-11-22 Thread Joran van Apeldoorn
Joran van Apeldoorn added the comment: Small addition, the sre categories CATEGORY_LINEBREAK and CATEGORY_UNI_LINEBREAK also do not agree on ASCII characters. The first is only '\n' while the second also includes for example '\r' and some others. These do not seem to correspond to anything ho

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread Christian Heimes
Christian Heimes added the comment: New changeset 0e1c2f3ef84572b79fa7d8498a69bc5a56ff0d8d by Christian Heimes in branch 'main': bpo-45847: port _struct to PY_STDLIB_MOD (GH-29706) https://github.com/python/cpython/commit/0e1c2f3ef84572b79fa7d8498a69bc5a56ff0d8d --

[issue45843] Optimizing constant comparisons/contains

2021-11-22 Thread theeshallnotknowethme
Change by theeshallnotknowethme : -- title: Optimizing LOAD_CONST followed by COMPARE_OP (or IS_OP) -> Optimizing constant comparisons/contains ___ Python tracker ___

[issue45859] test_collections has a wrong test in case _itemgetter is not available

2021-11-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 56b5cd52ab58d8f2f11f253ec1bb3e6000d2dbd2 by Miss Islington (bot) in branch '3.10': bpo-45859: Mark test_field_descriptor in test_collections as CPython-only (GH-29691) (GH-29708) https://github.com/python/cpython/commit/56b5cd52ab58d8f2f11f2

[issue32582] chr raises OverflowError

2021-11-22 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue45871] Refactor exception matcher validation out of JUMP_IF_NOT_EXC_MATCH

2021-11-22 Thread Irit Katriel
New submission from Irit Katriel : The validation will be shared with except* so this refactor is prep for implementing PEP-654. Also need to add the missing unit test for the validation. -- messages: 406790 nosy: iritkatriel priority: normal severity: normal status: open title: Refac

[issue45871] Refactor exception matcher validation out of JUMP_IF_NOT_EXC_MATCH

2021-11-22 Thread Irit Katriel
Change by Irit Katriel : -- assignee: -> iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue45871] Refactor exception matcher validation out of JUMP_IF_NOT_EXC_MATCH

2021-11-22 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +27947 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29711 ___ Python tracker ___ ___

[issue45859] test_collections has a wrong test in case _itemgetter is not available

2021-11-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 455ed45d7c30c5f2a31c524b015c48ac85f3d27c by Miss Islington (bot) in branch '3.9': bpo-45859: Mark test_field_descriptor in test_collections as CPython-only (GH-29691) (GH-29709) https://github.com/python/cpython/commit/455ed45d7c30c5f2a31c52

[issue45859] test_collections has a wrong test in case _itemgetter is not available

2021-11-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45857] PEP 604 Union syntax does not support forward references

2021-11-22 Thread Alex Waygood
Alex Waygood added the comment: Thanks, Ken! To clarify: I agree that changing the implementation here would probably be a bad way to go: it would be foolish to try to replicate all the functionality of the typing module as builtins. I also think the existing documentation at https://docs.py

[issue45871] Refactor exception matcher validation out of JUMP_IF_NOT_EXC_MATCH

2021-11-22 Thread Mark Shannon
Mark Shannon added the comment: New changeset 4d6c0c0cce05befa06e0cad7351b1303ac048277 by Irit Katriel in branch 'main': bpo-45871: Refactor except matcher validation into a separate function so that it can be reused. Add missing unit test. (GH-29711) https://github.com/python/cpython/commit

[issue45871] Refactor exception matcher validation out of JUMP_IF_NOT_EXC_MATCH

2021-11-22 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45459] Limited API support for Py_buffer

2021-11-22 Thread Alex Gaynor
Alex Gaynor added the comment: I am someone who is interested in having this, but FWIW my motivation is slightly more narrow, I only really need abi3-friendly buffer support with contiguous 1d buffers. Not sure if there'd be interest in doing a smaller version before figuring out the entire

[issue45872] Turtle documentation, write()

2021-11-22 Thread Pavel V
New submission from Pavel V : There are no parentheses for 'font' argument in turtle.write() documentation https://docs.python.org/3.10/library/turtle.html#turtle.write -- assignee: docs@python components: Documentation messages: 406795 nosy: docs@python, willyns priority: normal sever

[issue45869] Unicode and acii regular expressions do not agree on ascii space characters

2021-11-22 Thread Matthew Barnett
Matthew Barnett added the comment: For comparison, the regex module says that 0x1C..0x1F aren't whitespace, and the Unicode property White_Space ("\p{White_Space}" in a pattern, where supported) also says that they aren't whitespace. -- ___ Python

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +27948 pull_request: https://github.com/python/cpython/pull/29713 ___ Python tracker ___ ___

[issue45850] Port deep-freeze to Windows

2021-11-22 Thread Guido van Rossum
New submission from Guido van Rossum : New changeset 1037ca5a8ea001bfa2a198e08655620234e9befd by Guido van Rossum in branch 'main': bpo-45850: Implement deep-freeze on Windows (#29648) https://github.com/python/cpython/commit/1037ca5a8ea001bfa2a198e08655620234e9befd -- _

[issue45850] Port deep-freeze to Windows

2021-11-22 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker ___ ___

[issue45873] Stop using bootstrap_python for deep-freeze in UNIX builds

2021-11-22 Thread Guido van Rossum
New submission from Guido van Rossum : Now that we've got a way (for Windows) to deep-freeze without building a bootstrap Python binary, we should do the same for UNIX. -- components: Build messages: 406798 nosy: gvanrossum priority: normal severity: normal stage: needs patch status: o

[issue45865] Old syntax in unittest

2021-11-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Concur with Eric. -- nosy: +serhiy.storchaka resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45843] Optimizing constant comparisons/contains

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

[issue45870] There's no readline module on Windows Python (cmd.Cmd)

2021-11-22 Thread Eryk Sun
Eryk Sun added the comment: > The Windows cmd implementation clearly uses readline or > some compatible lib under the hood The REPL shell and input() call PyOS_Readline(). If this call isn't hooked (e.g. by the readline module), and stdin is a console file, then it reads a line from the con

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread Christian Heimes
Christian Heimes added the comment: New changeset 2dc7d3dda61e7ce07721f46b14c706fbc879dfd6 by Erlend Egeberg Aasland in branch 'main': bpo-45847: Port xxlimited and xxlimited_35 to PY_STDLIB_MOD (GH-29707) https://github.com/python/cpython/commit/2dc7d3dda61e7ce07721f46b14c706fbc879dfd6 ---

[issue45850] Port deep-freeze to Windows

2021-11-22 Thread Guido van Rossum
Change by Guido van Rossum : -- pull_requests: +27950 pull_request: https://github.com/python/cpython/pull/29714 ___ Python tracker ___

[issue45873] Stop using bootstrap_python for deep-freeze in UNIX builds

2021-11-22 Thread Guido van Rossum
Change by Guido van Rossum : -- keywords: +patch pull_requests: +27949 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/29714 ___ Python tracker

[issue42367] Restore os.makedirs ability to apply mode to all directories created

2021-11-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: A new `intermediate_mode=` kwarg can't _default_ to `mode=` as that would flip flop the API's default behavior again and no doubt disrupt someone elses 3.7-3.10 authored code depending on it. :( Regardless I do somewhat like `intermediate_mode=` more than

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-22 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +27951 pull_request: https://github.com/python/cpython/pull/29715 ___ Python tracker ___ ___

[issue36706] Python script on startup stucks at import

2021-11-22 Thread Irit Katriel
Irit Katriel added the comment: Serge, are you still having this problem and if so can you provide the traces? If this issue is abandoned I will close it within a couple of weeks. -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue40324] python 3.8.2 idle not opening

2021-11-22 Thread Irit Katriel
Irit Katriel added the comment: Closing as there isn't enough information here to understand the issue and there was no reply to followup questions. Please create a new issue if you still have a problem and are able to explain it more fully. -- nosy: +iritkatriel resolution: -> rej

[issue38541] Performance degradation of attribute accesses in Python 3.7.4

2021-11-22 Thread Irit Katriel
Irit Katriel added the comment: Closing as this is resolved in 3.8 and we won't do anything about 3.7. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue45833] NamedTemporaryFile deleted before enclosing context manager exit

2021-11-22 Thread Zachary Ware
Change by Zachary Ware : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue22067] time_test fails after strptime()

2021-11-22 Thread Irit Katriel
Irit Katriel added the comment: I am unable to reproduce this on 3.11. -- nosy: +iritkatriel resolution: -> works for me status: open -> pending ___ Python tracker ___ __

[issue45874] urllib.parse.parse_qsl does not parse empty query string with strict parsing

2021-11-22 Thread Christian Sattler
New submission from Christian Sattler : Calling urllib.parse.parse_qsl('', strict_parsing=True) yields an error: ValueError: bad query field: '' The empty string '' is produced by urllib.parse.urlencode({}) and also as query string by urllib.parse.urlsplit('http://example.org/') so it s

  1   2   >