[issue43509] CFunctionType object should be hashable in Python

2021-03-22 Thread Xinmeng Xia
Change by Xinmeng Xia : -- type: compile error -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43587] Long string arguments cause nis.map() segfault

2021-03-22 Thread Xinmeng Xia
New submission from Xinmeng Xia : nis.maps() with long string argument will lead to segfault of interpreter. See the following example: = Python 3.10.0a6 (default, Mar 19 2021, 11:45:56) [GCC 7.5.0] on linux Type "help", "copyright", "credit

[issue43587] Long string arguments cause nis.map() segfault

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: I can reproduce the crash. It's a not a bug in Python but in yp_master(). On my Fedora 33, this function comes from libnsl2 (/lib64/libnsl.so.2): * https://bugz.fedoraproject.org/libnsl2 * https://github.com/thkukuk/libnsl """ This package contains the libns

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread junyixie
New submission from junyixie : use static module variable under building Python with --with-experimental-isolated-subinterpreters cause crash. compiler_mod(struct compiler *c, mod_ty mod) { PyCodeObject *co; int addNone = 1; static PyObject *module; if (!module) { module

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread junyixie
Change by junyixie : -- keywords: +patch pull_requests: +23720 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24963 ___ Python tracker ___ ___

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread junyixie
junyixie added the comment: 43551 [Subinterpreters]: PyImport_Import use static silly_list under building Python with --with-experimental-isolated-subinterpreters share silly_list in multi subinterpreters cause crash. https://bugs.python.org/issue43551 -- message_count: 1.0 -> 2.0 p

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 56f031ec5281723b7c617edfa5748f2ae6a4c347 by Hai Shi in branch 'master': bpo-35134: Add include/cpython/compile.h (GH-24922) https://github.com/python/cpython/commit/56f031ec5281723b7c617edfa5748f2ae6a4c347 -- _

[issue23407] os.walk always follows Windows junctions

2021-03-22 Thread Eryk Sun
Eryk Sun added the comment: Python 3.8 introduced some behavior changes to how reparse points are supported, but generalized support for handling name-surrogate reparse points as symlinks was not implemented. Python continues to set S_IFLNK in st_mode only for IO_REPARSE_TAG_SYMLINK reparse

[issue43569] test_importlib failed on installed Python

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: I confirm that aarch64 Fedora Stable Clang Installed 3.x is back to green, thanks for the fix. -- ___ Python tracker ___ ___

[issue42129] Support resources in namespace packages

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: > Please see bpo-43569: "test_importlib failed on installed Python" regression > introduced by commit 67148254146948041a77d8a2989f41b88cdb2f99. It's now fixed, I close again this issue. -- resolution: -> fixed status: open -> closed ___

[issue43589] Using defaultdict as kwarg to function reuses same dictionary every function call

2021-03-22 Thread Tenzin
New submission from Tenzin : When using a `defaultdict` as a kwarg to a function that requires another argument, every call to the function uses the same dictionary instance instead of creating a new one. ```>>> from collections import defaultdict >>> def meow(a, b=defaultdict(list)): ...

[issue43447] Generate vectorcall code to parse arguments using Argument Clinic

2021-03-22 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue43551] [Subinterpreters]: PyImport_Import use static silly_list under building Python with --with-experimental-isolated-subinterpreters share silly_list in multi subinterpreters cause crash.

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 88d9983b561cd59e5f186d98227de0c1a022b498 by junyixie in branch 'master': bpo-43551: Fix PyImport_Import() for subinterpreters (GH-24929) https://github.com/python/cpython/commit/88d9983b561cd59e5f186d98227de0c1a022b498 --

[issue43551] [subinterpreters] Fix PyImport_Import() for subinterpreters

2021-03-22 Thread STINNER Victor
Change by STINNER Victor : -- components: +Subinterpreters resolution: -> fixed stage: patch review -> resolved status: open -> closed title: [Subinterpreters]: PyImport_Import use static silly_list under building Python with --with-experimental-isolated-subinterpreters share silly_li

[issue43589] Using defaultdict as kwarg to function reuses same dictionary every function call

2021-03-22 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is normal, expected behaviour and has nothing to do with defaultdicts specifically. Any mutable object would behave the same way. Function default parameters are evaluated only once, when the function is defined. They are not re-evaluated on each call.

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread junyixie
junyixie added the comment: grep -E 'static (\w+) \*(\w+) =' $(find . -name "*.c") | wc -l 67 static variable may need fix ➜ cpython git:(master) grep -E 'static (\w+) \*(\w+) =' $(find . -name "*.c") ./PC/winreg.c:static char *failMsg = "bad operand type"; ./Python/codecs.c:static _PyUnicode_N

[issue43575] map() instantiation time reducing by using PEP 590 vectorcall

2021-03-22 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 86883d40e93acae980e52b90fddd7d042e439beb by Dong-hee Na in branch 'master': bpo-43575: Use PEP 590 vectorcall to speed up map() (GH-24955) https://github.com/python/cpython/commit/86883d40e93acae980e52b90fddd7d042e439beb -- _

[issue43575] map() instantiation time reducing by using PEP 590 vectorcall

2021-03-22 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: Mark Dickinson: "I just noticed the change to dtoa.c in GH-24821. Please could you explain what the benefit of this change was?" The rationale is explained in bpo-40512. The goal is to run multiple Python interpreters in parallel in the same process. dtoa.c

[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2021-03-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23723 pull_request: https://github.com/python/cpython/pull/24964 ___ Python tracker ___ __

[issue43010] @functools.wraps and abc.abstractmethod interoperability

2021-03-22 Thread Erez Zinman
Erez Zinman added the comment: Sorry for the late response. I forgot about that. I believe one of us misunderstands the problem. The problem is that `functools.wraps` copies the `__isabstractmethod__` in the first place. Consider the following example: ``` class ModuleTemplate(ABC):

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread junyixie
Change by junyixie : -- pull_requests: +23724 pull_request: https://github.com/python/cpython/pull/24965 ___ Python tracker ___ ___

[issue43590] Collapse sidebar issue on https://docs.python.org/3/

2021-03-22 Thread Lucijan Drnasin
New submission from Lucijan Drnasin : Sidebar bug on python welcoming page for version 3.9.2. Two-arrow span on sidebar (span that has fixed position) is going off the sidebar if I scroll all the way down and then I inspect the page. After inspecting (opening dev tools) it appears there is a

[issue43591] Parser aborts on incomplete/incorrect unicode literals in interactive mode

2021-03-22 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : Incomplete unicode literals abort iso. generating SyntaxError: (lldb) target create "./python.exe" Current executable set to '/Users/erlendaasland/src/cpython.git/python.exe' (x86_64). (lldb) r Process 98955 launched: '/Users/erlendaasland/src/cpyth

[issue43591] Parser aborts on incomplete/incorrect unicode literals in interactive mode

2021-03-22 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Correction, git bisect pointed to _this_ commit (not 08fb8ac99ab03d767aa0f1cfab3573eddf9df018): commit cd8dcbc851fcc312722cdb5544c2f25cf46b3f8a Author: Pablo Galindo Date: Sun Mar 14 04:38:40 2021 +0100 bpo-43410: Fix crash in the parser when

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread junyixie
junyixie added the comment: fix ./Objects/exceptions.c:static PyObject *print_prefix = NULL; ./Objects/exceptions.c:static PyObject *exec_prefix = NULL; https://github.com/python/cpython/pull/24965 -- ___ Python tracker

[issue43592] test_importlib: test_multiprocessing_pool_circular_import() fails with "Too many open files" error on os.pipe()

2021-03-22 Thread STINNER Victor
New submission from STINNER Victor : x86-64 macOS 3.x: https://buildbot.python.org/all/#/builders/366/builds/969 Build triggered by the commit 88d9983b561cd59e5f186d98227de0c1a022b498 which changes PyImport_Import(). The buildbot is running on macOS 10.15.7 (Darwin Kernel Version 19.6.0) wit

[issue43551] [subinterpreters] Fix PyImport_Import() for subinterpreters

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: See bpo-43592: test_importlib: test_multiprocessing_pool_circular_import() fails with "Too many open files" error on os.pipe(). -- ___ Python tracker __

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread junyixie
Change by junyixie : -- pull_requests: +23726 pull_request: https://github.com/python/cpython/pull/24966 ___ Python tracker ___ ___

[issue43592] test_importlib: test_multiprocessing_pool_circular_import() fails with "Too many open files" error on os.pipe()

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: test_importlib only fails *randomly* on x86-64 macOS 3.x. For example, the build 970 is a success (but orange): "Tests result: FAILURE then SUCCESS". test_importlib failed with too many open files, and then passed. -- ___

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: Oh. I didn't expect so many "static" variables. I suggest to wait until a PEP is accepted for running multiple interpreters in parallel. -- ___ Python tracker _

[issue43591] Parser aborts on incomplete/incorrect unicode literals in interactive mode

2021-03-22 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 39f643614d03748a5fad462fe7ed26a174a522fa by Victor Stinner in branch 'master': Revert "bpo-40521: Make dtoa bigint free list per-interpreter (GH-24821)" (GH-24964) https://github.com/python/cpython/commit/39f643614d03748a5fad462fe7ed26a174a522f

[issue43010] @functools.wraps and abc.abstractmethod interoperability

2021-03-22 Thread Dennis Sweeney
Dennis Sweeney added the comment: Did you try adding updated=()? @functools.wraps(_internal_main_operation, updated=()) def external_main_operation(self, *args, **kwargs): -- ___ Python tracker

[issue43010] @functools.wraps and abc.abstractmethod interoperability

2021-03-22 Thread Erez Zinman
Erez Zinman added the comment: I haven't because I don't need it anymore and it will surely work. Yet by doing so, other attributes will not be copied. I think that the `abc`-related attributes are irrelevant regardless, and should be omitted (at least by default). -- _

[issue43010] @functools.wraps and abc.abstractmethod interoperability

2021-03-22 Thread Erez Zinman
Erez Zinman added the comment: This is an interoperability bug. Maybe not a severe one (due to the workaround), but it's still a bug. -- ___ Python tracker ___ __

[issue43520] Make Fraction(string) handle non-ascii slashes

2021-03-22 Thread Carl Anderson
Carl Anderson added the comment: >Carl: can you say more about the problem that motivated this issue? @mark.dickinson I was parsing a large corpus of ingredients strings from web-scraped recipes. My code to interpret strings such as "1/2 cup sugar" would fall over every so often due to this

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread junyixie
Change by junyixie : -- pull_requests: +23727 pull_request: https://github.com/python/cpython/pull/24968 ___ Python tracker ___ ___

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread junyixie
junyixie added the comment: -> Okay, I will fix these problems first. (Need for my own project) -- ___ Python tracker ___ ___ Pytho

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread junyixie
junyixie added the comment: Okay, I will fix these problems first. (Need for your own project) -- ___ Python tracker ___ ___ Python

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread junyixie
Change by junyixie : -- pull_requests: +23728 pull_request: https://github.com/python/cpython/pull/24969 ___ Python tracker ___ ___

[issue43593] pymalloc is not aware of Memory Tagging Extension (MTE) and crashes

2021-03-22 Thread ggardet
New submission from ggardet : When Memory Tagging Extension (MTE) [0] is enabled on aarch64, python malloc make programs to crash. I noticed it while trying to use GDB with MTE enabled in user-space [1], and gdb crashed on start-up. Rebuilding python (3.8) using '--without-pymalloc' option a

[issue43593] pymalloc is not aware of Memory Tagging Extension (MTE) and crashes

2021-03-22 Thread ggardet
ggardet added the comment: Is there any runtime option (env variable or something else) to use glibc malloc instead of pymalloc? Or the choice made at compile time is immutable? -- ___ Python tracker __

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread junyixie
Change by junyixie : -- pull_requests: +23729 pull_request: https://github.com/python/cpython/pull/24970 ___ Python tracker ___ ___

[issue43594] A metaclass that inherits both `ABC` and `ABCMeta` breaks on `__subclasscheck__`

2021-03-22 Thread Erez Zinman
New submission from Erez Zinman : Consider the following example: ``` from abc import ABCMeta, ABC class MetaclassMixin(ABC): pass class Meta(MetaclassMixin, ABCMeta): pass class A(metaclass=Meta): pass ``` Then the call `isinstance(A, Meta)` returns `True` but `isinstance(1,

[issue43593] pymalloc is not aware of Memory Tagging Extension (MTE) and crashes

2021-03-22 Thread Christian Heimes
Christian Heimes added the comment: pymalloc is a compile-time option. The configure flag sets or unsets WITH_PYMALLOC. The define is then used by https://github.com/python/cpython/blob/master/Objects/obmalloc.c to change the internal allocator. The flag may also affect the ABI of Python an

[issue43538] [Windows] support args and cwd in os.startfile()

2021-03-22 Thread Jeremy Kloth
Change by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue43593] pymalloc is not aware of Memory Tagging Extension (MTE) and crashes

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: > When Memory Tagging Extension (MTE) [0] is enabled on aarch64, python malloc > make programs to crash. Would you mind to elaborate what does crash exactly? Can you please test if https://github.com/python/cpython/pull/14474 fix your issue? -- _

[issue43595] Can not add a metclass that inherits both ABCMeta & ABC to a Union

2021-03-22 Thread Erez Zinman
New submission from Erez Zinman : Related to Issue #43594. When running the following code ``` from abc import ABCMeta, ABC from typing import Union class MetaclassMixin(ABC): pass class Meta(MetaclassMixin, ABCMeta): pass print(Union[str, Meta]) ``` An exception is raised >>> T

[issue43593] pymalloc is not aware of Memory Tagging Extension (MTE) and crashes

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: A workaround is to disable pymalloc at runtime using PYTHONMALLOC=malloc environment variable. But it makes Python 10-20% slower. -- ___ Python tracker

[issue43558] The dataclasses documentation should mention how to call super().__init__

2021-03-22 Thread junyixie
Change by junyixie : -- keywords: +patch nosy: +JunyiXie nosy_count: 1.0 -> 2.0 pull_requests: +23730 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24971 ___ Python tracker

[issue42914] pprint numbers with underscore

2021-03-22 Thread Stéphane Blondon
Stéphane Blondon added the comment: I changed the default to be backward compatible (so underscore_numbers=False). I think it would be better with underscore_numbers enabled by default but I understand the need for stability. Perhaps such break could be done in the future (in version 3.12 or

[issue43595] Can not add a metclass that inherits both ABCMeta & ABC to a Union

2021-03-22 Thread Erez Zinman
Erez Zinman added the comment: This is actually a lot worse and unrelated to the aforementioned issue. The code ``` from typing import Union from abc import ABC Union[str, ABC] ``` raises the exception >>> TypeError: descriptor '__subclasses__' of 'type' object needs an argument --

[issue38905] venv python reports wrong sys.executable in a subprocess on Windows

2021-03-22 Thread Assaf
Assaf added the comment: The fact that now there is a redirector process seems to me like a regression issue. I have an application which Popen several processes and uses the Popen object in order to get the subprocesses pids and act upon this pids (i.e. looks for log files with associated p

[issue43558] The dataclasses documentation should mention how to call super().__init__

2021-03-22 Thread junyixie
Change by junyixie : -- pull_requests: +23731 pull_request: https://github.com/python/cpython/pull/24972 ___ Python tracker ___ ___

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread junyixie
junyixie added the comment: I will fix the static variable problem of frequently used code -- ___ Python tracker ___ ___ Python-bug

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread Dong-hee Na
Dong-hee Na added the comment: @JunyiXie Please wait your patch until the PEP is approved. -- nosy: +corona10 ___ Python tracker ___ _

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: Until the PEP is accepted, you can start working on a branch if you want. You can post the link to your branch. -- ___ Python tracker ___ __

[issue43590] Collapse sidebar issue on https://docs.python.org/3/

2021-03-22 Thread Ned Deily
Change by Ned Deily : -- assignee: -> docs@python components: +Documentation nosy: +docs@python type: behavior -> ___ Python tracker ___ _

[issue43591] Parser aborts on incomplete/incorrect unicode literals in interactive mode

2021-03-22 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +23732 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24973 ___ Python tracker ___ ___

[issue43591] Parser aborts on incomplete/incorrect unicode literals in interactive mode

2021-03-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks for the report and the patch Erlend!. I have transformed it into a PR with attribution in PR 24973 -- ___ Python tracker ___ _

[issue43573] [types] Document __spec__ for types.ModuleType

2021-03-22 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +23733 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24974 ___ Python tracker ___ ___

[issue43573] [types] Document __spec__ for types.ModuleType

2021-03-22 Thread Brett Cannon
Change by Brett Cannon : -- assignee: docs@python -> brett.cannon stage: patch review -> ___ Python tracker ___ ___ Python-bugs-lis

[issue42137] Prefer using __spec__ over module_repr() for ModuleType.__repr__

2021-03-22 Thread Brett Cannon
Brett Cannon added the comment: Meant to say, "existence of the _method_ isn't problematic". -- ___ Python tracker ___ ___ Python-b

[issue24147] Dialect class defaults are not documented.

2021-03-22 Thread Irit Katriel
Irit Katriel added the comment: Brandon's patch has not been applied, it needs to be converted into a git PR. -- keywords: +easy -patch nosy: +iritkatriel versions: +Python 3.10 -Python 3.4, Python 3.5 ___ Python tracker

[issue12762] OSError msg should display symbolic error codes

2021-03-22 Thread Irit Katriel
Change by Irit Katriel : -- title: EnvironmentError_str contributes to unportable code -> OSError msg should display symbolic error codes versions: +Python 3.10 -Python 3.4 ___ Python tracker ___

[issue43596] change assertRaises message when wrong exception is raised

2021-03-22 Thread R. Samuel Klatchko
New submission from R. Samuel Klatchko : Right now, this code: class FooError(Exception): pass class BarError(Exception): pass def test_me(self): with self.assertRaises(FooError): raise BarError("something") will have the error "BarError: something" with no indicatio

[issue43596] change assertRaises message when wrong exception is raised

2021-03-22 Thread Nathaniel Manista
Change by Nathaniel Manista : -- nosy: +Nathaniel Manista ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue43591] Parser aborts on incomplete/incorrect unicode literals in interactive mode

2021-03-22 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43591] Parser aborts on incomplete/incorrect unicode literals in interactive mode

2021-03-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 123ff266cda9ad279106f20dca06ba114f6a9b8a by Pablo Galindo in branch 'master': bpo-43591: Fix error location in interactive mode for errors at the end of the line (GH-24973) https://github.com/python/cpython/commit/123ff266cda9ad279106f20

[issue26403] Catch FileNotFoundError in socketserver.DatagramRequestHandler

2021-03-22 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12762] OSError msg should display symbolic error codes

2021-03-22 Thread Zackery Spytz
Zackery Spytz added the comment: This is a duplicate of bpo-2920 (which has a PR). -- nosy: +ZackerySpytz resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> Patch to print symbolic value of errno in OSError.__str__() ___

[issue43596] change assertRaises message when wrong exception is raised

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

[issue43181] Python macros don’t shield arguments

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: Me: > I don't think that PR 24533 should be backported to Python 3.8 and Python > 3.9. I prefer to avoid any risk of regression, and so only change Python 3.10. Sometimes. I'm wise :-D This change broken 2 extension modules which rely on the fact that the ma

[issue43563] Use dedicated opcodes to speed up calls/attribute lookups with super() as receiver

2021-03-22 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue43010] @functools.wraps and abc.abstractmethod interoperability

2021-03-22 Thread Dennis Sweeney
Dennis Sweeney added the comment: > other attributes will not be copied The signature of wraps() is wraps(wrapped, assigned=('__module__', '__name__', '__qualname__', '__doc__', '__annotations__'), updated=('__dict__',)) Passing the updated=() will prevent the __dict__ from being update

[issue43555] Location of SyntaxError with new parser missing (after continuation character)

2021-03-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 96eeff516204b7cc751103fa33dcc665e387846e by Pablo Galindo in branch 'master': bpo-43555: Report the column offset for invalid line continuation character (GH-24939) https://github.com/python/cpython/commit/96eeff516204b7cc751103fa33dcc66

[issue43555] Location of SyntaxError with new parser missing (after continuation character)

2021-03-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +23734 pull_request: https://github.com/python/cpython/pull/24975 ___ Python tracker _

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2021-03-22 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +23735 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24976 ___ Python tracker ___

[issue15751] [subinterpreters] Make the PyGILState API compatible with subinterpreters

2021-03-22 Thread Gabriel Amine Eddine
Change by Gabriel Amine Eddine : -- nosy: +gabrielhae ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue42444] pathlib.PurePath properties annotated with .. data directive

2021-03-22 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 6.0 -> 7.0 pull_requests: +23736 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24977 ___ Python tracker

[issue43592] test_importlib: test_multiprocessing_pool_circular_import() fails with "Too many open files" error on os.pipe()

2021-03-22 Thread Ned Deily
Ned Deily added the comment: FWIW, I don't recall ever seeing a "too many open files" failure for test_importlib on any of my macOS systems. -- nosy: +ned.deily ___ Python tracker __

[issue43555] Location of SyntaxError with new parser missing (after continuation character)

2021-03-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 994a519915bff4901abaa7476e2b91682dea619a by Miss Islington (bot) in branch '3.9': bpo-43555: Report the column offset for invalid line continuation character (GH-24939) (#24975) https://github.com/python/cpython/commit/994a519915bff4901a

[issue43555] Location of SyntaxError with new parser missing (after continuation character)

2021-03-22 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43591] Parser aborts on incomplete/incorrect unicode literals in interactive mode

2021-03-22 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Thanks, Pablo! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43563] Use dedicated opcodes to speed up calls/attribute lookups with super() as receiver

2021-03-22 Thread Vladimir Matveev
Vladimir Matveev added the comment: >Currently, super() is decoupled from the core language. It is just a builtin >that provides customized attribute lookup. This PR makes super() more tightly >integrated with the core language, treating it as if it were a keyword and >part of the grammar.

[issue2920] Patch to print symbolic value of errno in OSError.__str__()

2021-03-22 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10 -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-22 Thread Felix C. Stegerman
Change by Felix C. Stegerman : -- keywords: +patch pull_requests: +23737 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24979 ___ Python tracker _

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-22 Thread Felix C. Stegerman
Felix C. Stegerman added the comment: I've created a draft PR; RFC :) Also: * setting the date to (1980,0,0,0,0,0) already works; * the main issue seems to be that external_attr cannot be 0 atm. -- ___ Python tracker

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread junyixie
Change by junyixie : -- pull_requests: +23738 pull_request: https://github.com/python/cpython/pull/24971 ___ Python tracker ___ ___

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread junyixie
Change by junyixie : -- pull_requests: +23739 pull_request: https://github.com/python/cpython/pull/24972 ___ Python tracker ___ ___

[issue43558] The dataclasses documentation should mention how to call super().__init__

2021-03-22 Thread Eric V. Smith
Change by Eric V. Smith : -- pull_requests: -23730 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue43558] The dataclasses documentation should mention how to call super().__init__

2021-03-22 Thread Eric V. Smith
Change by Eric V. Smith : -- pull_requests: -23731 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue43558] The dataclasses documentation should mention how to call super().__init__

2021-03-22 Thread Eric V. Smith
Change by Eric V. Smith : -- keywords: +easy -patch stage: patch review -> needs patch ___ Python tracker ___ ___ Python-bugs-list m

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-22 Thread Christian Heimes
Christian Heimes added the comment: Hi, thanks for looking into reproducible builds. I have a few suggestions: - since it's a new feature, it cannot go into older releases. - zeroed is not a self-explanatory term. I suggest to find a term that does describe the result, not the internal opera

[issue43563] Use dedicated opcodes to speed up calls/attribute lookups with super() as receiver

2021-03-22 Thread Guido van Rossum
Guido van Rossum added the comment: This looks like a sensible idea to me. The safeguards to ensure that customized 'super' still works seem reasonable to me. I have to admit that I sometimes refrain from using super() where I should because of the expense, so this would be welcome. I do wo

[issue43492] Upgrade to SQLite 3.35.3 in macOS and Windows

2021-03-22 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: FYI: https://www.sqlite.org/cgi/src/info/8de4cb984a4b019f: "We anticipate 3.35.3 in a few days. Hopefully there will never be a need for 3.35.4." -- title: Upgrade to SQLite 3.35.2 in macOS and Windows -> Upgrade to SQLite 3.35.3 in macOS an

[issue43420] Optimize rational arithmetics

2021-03-22 Thread Tim Peters
Tim Peters added the comment: This report is closed. Please open a different report. We've already demonstrated that, as predicted, nothing can be said here without it being taken as invitation to open-ended discussion. So it goes, but it doesn't belong on _this_ report anymore. --

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-22 Thread Christian Heimes
Christian Heimes added the comment: zinfo = zipfile.ZipInfo() zinfo.date_time = (1980, 0, 0, 0, 0, 0) zinfo.create_system = 0 external_attr == 0 may cause issues with permissions. I do something like this in my reproducible tarfile code: if zinfo.isdir(): # 0755 + MS-DOS directory flag

[issue43563] Use dedicated opcodes to speed up calls/attribute lookups with super() as receiver

2021-03-22 Thread Mark Shannon
Mark Shannon added the comment: Numbers please. What is "non-negligible cost of allocation/initialization" mean as a fraction of runtime? What sort of speed up are you seeing on whole programs? -- ___ Python tracker

  1   2   >