[issue41900] XML C14N serialisation fails with default namespace

2020-10-03 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +21517 pull_request: https://github.com/python/cpython/pull/22507 ___ Python tracker

[issue41900] XML C14N serialisation fails with default namespace

2020-10-03 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 6a412c94b6b68e7e3632562dc7358a12ffd1447f by scoder in branch 'master': bpo-41900: C14N 2.0 serialisation failed for unprefixed attributes when a default namespace was defined. (GH-22474)

[issue41900] XML C14N serialisation fails with default namespace

2020-10-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +21518 pull_request: https://github.com/python/cpython/pull/22508 ___ Python tracker ___

[issue41900] XML C14N serialisation fails with default namespace

2020-10-03 Thread Stefan Behnel
Change by Stefan Behnel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33802] Regression in logging configuration

2020-10-03 Thread Stefan Behnel
Change by Stefan Behnel : -- pull_requests: -21521 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6721] Locks in the standard library should be sanitized on fork

2020-10-03 Thread Stefan Behnel
Change by Stefan Behnel : -- nosy: -scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41909] Segfault on __getattr__ infinite recursion on certain attribute accesses

2020-10-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Interesting, when lookup any attribute you will get a RecursionError, but this is one of only two places where the recursion check is disabled (the other one is in interning strings). You get a crash also when call isinstance(1, instance) or

[issue41428] PEP 604 -- Allow writing union types as X | Y

2020-10-03 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj nosy_count: 4.0 -> 5.0 pull_requests: +21526 pull_request: https://github.com/python/cpython/pull/22517 ___ Python tracker ___

[issue41917] Python 3.9rc2 fails to install matplotlib

2020-10-03 Thread ullix
New submission from ullix : Installing matplotlib via: python3 -m pip install -U matplotlib fails because kiwisolver cannot be installed. Among a lot of error output is: WARNING: The wheel package is not available. Not having matplotlib is a MAJOR hurdle for many! Sstem: Ubuntu 16.04 with

[issue40833] Clarify docstring of Path.rename

2020-10-03 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +21523 pull_request: https://github.com/python/cpython/pull/22514 ___ Python tracker

[issue40833] Clarify docstring of Path.rename

2020-10-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +21524 pull_request: https://github.com/python/cpython/pull/22515 ___ Python tracker ___

[issue40833] Clarify docstring of Path.rename

2020-10-03 Thread Tal Einat
Tal Einat added the comment: New changeset f97e42ef4d97dee64f45ed65170a6e77c8e46fdf by Ram Rachum in branch 'master': bpo-40833: Clarify Path.rename doc-string regarding relative paths (GH-20554) https://github.com/python/cpython/commit/f97e42ef4d97dee64f45ed65170a6e77c8e46fdf --

[issue40833] Clarify docstring of Path.rename

2020-10-03 Thread Tal Einat
Tal Einat added the comment: Thanks, Ram! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41867] Include options for timespec in docstrings of isoformat

2020-10-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +21528 pull_request: https://github.com/python/cpython/pull/22519 ___ Python tracker ___

[issue40833] Clarify docstring of Path.rename

2020-10-03 Thread Tal Einat
Tal Einat added the comment: New changeset ef7b937b8fe94f4c59dfcbe7567c3ca76097a41d by Miss Skeleton (bot) in branch '3.9': [3.9] bpo-40833: Clarify Path.rename doc-string regarding relative paths (GH-20554) https://github.com/python/cpython/commit/ef7b937b8fe94f4c59dfcbe7567c3ca76097a41d

[issue41867] Include options for timespec in docstrings of isoformat

2020-10-03 Thread Tal Einat
Tal Einat added the comment: New changeset 52301312bb9de2299b0c42468fd1936d869e651c by Ram Rachum in branch 'master': bpo-41867: List options for timespec in docstrings of isoformat methods (GH-22418) https://github.com/python/cpython/commit/52301312bb9de2299b0c42468fd1936d869e651c

[issue41867] Include options for timespec in docstrings of isoformat

2020-10-03 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +21527 pull_request: https://github.com/python/cpython/pull/22518 ___ Python tracker

[issue41920] Weird add operation of "0.2222 + 0.1111"

2020-10-03 Thread Leonard Schwennesen
New submission from Leonard Schwennesen : If I add 0. + 0. in the python cli I get the value 0.4 and not 0.. Also the other way around. But if I enter for example 0.2+0.1 I get 0.3 so that's right. Here are a few examples I tested that working properly:

[issue41900] XML C14N serialisation fails with default namespace

2020-10-03 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset a0f2b664335eb689abdecc677e09a193f503af59 by Miss Skeleton (bot) in branch '3.9': bpo-41900: C14N 2.0 serialisation failed for unprefixed attributes when a default namespace was defined. (GH-22474) (GH-22507)

[issue41900] XML C14N serialisation fails with default namespace

2020-10-03 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset cfed5343331350c5737b464970a31f7588319e8b by Miss Skeleton (bot) in branch '3.8': bpo-41900: C14N 2.0 serialisation failed for unprefixed attributes when a default namespace was defined. (GH-22474) (GH-22508)

[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2020-10-03 Thread Stefan Behnel
Change by Stefan Behnel : -- pull_requests: -21520 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41919] Move the codecs' register operation to testcases

2020-10-03 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +21522 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22513 ___ Python tracker ___

[issue41919] Move the codecs.register operation to testcases

2020-10-03 Thread hai shi
Change by hai shi : -- title: Move the codecs' register operation to testcases -> Move the codecs.register operation to testcases ___ Python tracker ___

[issue41919] Move the codecs' register operation to testcases

2020-10-03 Thread hai shi
New submission from hai shi : After PR22360 merged, we can move the codecs' register operation to testcases. -- components: Tests messages: 377863 nosy: shihai1991, vstinner priority: normal severity: normal status: open title: Move the codecs' register operation to testcases type:

[issue40833] Clarify docstring of Path.rename

2020-10-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +21525 pull_request: https://github.com/python/cpython/pull/22516 ___ Python tracker ___

[issue33802] Regression in logging configuration

2020-10-03 Thread Stefan Behnel
Change by Stefan Behnel : -- nosy: +scoder nosy_count: 9.0 -> 10.0 pull_requests: +21521 pull_request: https://github.com/python/cpython/pull/22474 ___ Python tracker ___

[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2020-10-03 Thread Stefan Behnel
Change by Stefan Behnel : -- nosy: +scoder nosy_count: 9.0 -> 10.0 pull_requests: +21520 pull_request: https://github.com/python/cpython/pull/22474 ___ Python tracker ___

[issue6721] Locks in the standard library should be sanitized on fork

2020-10-03 Thread Stefan Behnel
Change by Stefan Behnel : -- nosy: +scoder nosy_count: 29.0 -> 30.0 pull_requests: +21519 pull_request: https://github.com/python/cpython/pull/22474 ___ Python tracker ___

[issue6721] Locks in the standard library should be sanitized on fork

2020-10-03 Thread Stefan Behnel
Change by Stefan Behnel : -- pull_requests: -21519 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2020-10-03 Thread Stefan Behnel
Change by Stefan Behnel : -- nosy: -scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33802] Regression in logging configuration

2020-10-03 Thread Stefan Behnel
Change by Stefan Behnel : -- nosy: -scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-03 Thread Ben Avrahami
Ben Avrahami added the comment: > I would prefer the isinstance(cls, ABCMeta) check to be inside that helper I had a little debate about this in my mind, I'll change it. > it's totally clear to me what @total_ordering should do -- it should define > __le__, __gt__ and __ge__ in terms of

[issue7946] Convoy effect with I/O bound threads and New GIL

2020-10-03 Thread David Beazley
David Beazley added the comment: About nine years ago, I stood in front of a room of Python developers, including many core developers, and gave a talk about the problem described in this issue. It included some live demos and discussion of a possible fix.

[issue41867] Include options for timespec in docstrings of isoformat

2020-10-03 Thread miss-islington
miss-islington added the comment: New changeset 9aa34f1bbbe1ca6376539f9ba436ff75d2141888 by Miss Skeleton (bot) in branch '3.8': bpo-41867: List options for timespec in docstrings of isoformat methods (GH-22418)

[issue41867] Include options for timespec in docstrings of isoformat

2020-10-03 Thread Tal Einat
Tal Einat added the comment: Thanks for this, Ram! -- assignee: -> docs@python components: +Documentation nosy: +docs@python resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8, Python 3.9 ___ Python

[issue41867] Include options for timespec in docstrings of isoformat

2020-10-03 Thread Tal Einat
Tal Einat added the comment: New changeset 8ca08310a882b7db6469fe732465610b92f4665e by Miss Skeleton (bot) in branch '3.9': [3.9] bpo-41867: List options for timespec in docstrings of isoformat methods (GH-22418)

[issue41916] cxx pthread check is not overrideable

2020-10-03 Thread Dustin Spicuzza
New submission from Dustin Spicuzza : I'm cross-compiling python to ARM, following instructions from the crossenv project @ https://crossenv.readthedocs.io/en/latest/quickstart.html#build-or-obtain-host-python I was getting pthread related errors when using cross-built extension modules. I

[issue41918] exec fails to take locals into account when running list comprehensions

2020-10-03 Thread Quentin Peter
New submission from Quentin Peter : The exec function fails to take locals into account when executing a list comprehension: ``` Python 3.7.7 (default, Mar 10 2020, 15:43:33) [Clang 11.0.0 (clang-1100.0.33.17)] on darwin Type "help", "copyright", "credits" or "license" for more information.

[issue40833] Clarify docstring of Path.rename

2020-10-03 Thread miss-islington
miss-islington added the comment: New changeset 4b982e0dd7354c9103a0cae8e6e78b5e57794e77 by Miss Skeleton (bot) in branch '3.8': bpo-40833: Clarify Path.rename doc-string regarding relative paths (GH-20554) https://github.com/python/cpython/commit/4b982e0dd7354c9103a0cae8e6e78b5e57794e77

[issue41920] Weird add operation of "0.2222 + 0.1111"

2020-10-03 Thread Leonard Schwennesen
Leonard Schwennesen added the comment: Same problem with 0.-0. python returns 0.22218 and not 0. -- ___ Python tracker ___

[issue41920] Weird add operation of "0.2222 + 0.1111"

2020-10-03 Thread Steven D'Aprano
Steven D'Aprano added the comment: Some further resources: https://stackoverflow.com/questions/8215437/floating-point-accuracy-in-python https://stackoverflow.com/questions/21895756/why-are-floating-point-numbers-inaccurate

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-10-03 Thread Pradyun Gedam
Pradyun Gedam added the comment: +1 for bumping to 20.2.3, in case an upstream voice is helpful. :) On Fri, Oct 2, 2020 at 8:12 PM Pablo Galindo Salgado wrote: > > Pablo Galindo Salgado added the comment: > > I think that the backport to 3.8 may have some unintended consequences in > the

[issue41922] Use PEP 590 vectorcall to speed up calls to reversed()

2020-10-03 Thread Dong-hee Na
New submission from Dong-hee Na : reversed is also a very well-used type. if shows 10+ percent performance improvement from baseline and this metric. And this improvement looks acceptable from viewing builtin types which are applied PEP 590 (frozenset, list, set, dict) reversed creation +

[issue41922] Use PEP 590 vectorcall to speed up calls to reversed()

2020-10-03 Thread Dong-hee Na
Change by Dong-hee Na : -- assignee: -> corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40455] GCC 10 compiler warnings

2020-10-03 Thread Emmanuel Arias
Emmanuel Arias added the comment: Hi, I've on my Debian (testing) the reported warning: In function ‘assemble_lnotab’, inlined from ‘assemble_emit’ at Python/compile.c:5706:25, inlined from ‘assemble’ at Python/compile.c:6048:18: Python/compile.c:5660:19: warning: writing 1 byte into a

[issue41920] Weird add operation of "0.2222 + 0.1111"

2020-10-03 Thread Leonard Schwennesen
Leonard Schwennesen added the comment: Ok thank you for these resources. I didn't know that before. (; -- ___ Python tracker ___

[issue41898] Any logging causes assertLogs to pass

2020-10-03 Thread Irit Katriel
Irit Katriel added the comment: You didn't specify the logger in the assertLogs() call. The documentation says that "The default is the root logger, which will catch all messages." https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertLogs This is behaving as expected.

[issue41887] ast.literal_eval does not accept strings with leading whitespaces

2020-10-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > I dunno, but it's been doing this since 1992, so I think it would be fragile > to change. The best thing therefore is to make ast.literal_eval() match it > exactly. +1 We had considerable finicky behaviour in the parser related to new lines and

[issue40564] Using zipfile.Path with several files prematurely closes zip

2020-10-03 Thread Jason R. Coombs
Jason R. Coombs added the comment: Fix merged into master. Please use zipp 3.2.0 on Python 3.9 and earlier for the improved behavior or report back here if a backport is needed (and why). -- stage: patch review -> resolved status: open -> closed versions: +Python 3.10 -Python 3.8

[issue40564] Using zipfile.Path with several files prematurely closes zip

2020-10-03 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset ebbe8033b1c61854c4b623aaf9c3e170d179f875 by Jason R. Coombs in branch 'master': bpo-40564: Avoid copying state from extant ZipFile. (GH-22371) https://github.com/python/cpython/commit/ebbe8033b1c61854c4b623aaf9c3e170d179f875 --

[issue40564] Using zipfile.Path with several files prematurely closes zip

2020-10-03 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-03 Thread Guido van Rossum
Guido van Rossum added the comment: Why would that require more code? That’s already how it worked. Maybe you misunderstand what I tried to say? -- ___ Python tracker ___

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-03 Thread Guido van Rossum
Guido van Rossum added the comment: Ah, okay. I wasn't familiar with @total_ordering so I assumed differently. Sorry for the continued misunderstanding. Perhaps we should just leave it alone completely then, since ISTM that any change to its implementation may cause subtle bugs in

[issue41922] Use PEP 590 vectorcall to speed up calls to reversed()

2020-10-03 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +21529 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22523 ___ Python tracker ___

[issue41921] REDoS in parseentities

2020-10-03 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41916] cxx pthread check is not overrideable

2020-10-03 Thread Dustin Spicuzza
Change by Dustin Spicuzza : -- keywords: +patch pull_requests: +21530 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22525 ___ Python tracker ___

[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2020-10-03 Thread Andrés Delfino
Change by Andrés Delfino : -- nosy: -adelfino ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6721] Locks in the standard library should be sanitized on fork

2020-10-03 Thread Andrés Delfino
Change by Andrés Delfino : -- nosy: -adelfino ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33802] Regression in logging configuration

2020-10-03 Thread Andrés Delfino
Change by Andrés Delfino : -- nosy: -adelfino ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41826] test_peg_generator compilation warnings

2020-10-03 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: New changeset c111355480ff51b50a671679c5099f534cb01cae by Pablo Galindo in branch 'master': bpo-41826: Fix compiler warnings in test_peg_generator (GH-22455) https://github.com/python/cpython/commit/c111355480ff51b50a671679c5099f534cb01cae --

[issue41921] REDoS in parseentities

2020-10-03 Thread yeting li
New submission from yeting li : Hi, I find this regex '' may be stucked by input. The vulnerable regex is located in https://github.com/python/cpython/blob/8d21aa21f2cbc6d50aab3f420bb23be1d081dac4/Tools/scripts/parseentities.py#L18 The ReDOS vulnerability of the regex is mainly due to the

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-03 Thread Ben Avrahami
Ben Avrahami added the comment: > Maybe you misunderstand what I tried to say? Possibly, right now, total_ordering avoids overriding any method that is declared, either in the class or its superclasses (except for object), regardless of whether or not it is abstract. For it to be ABC-aware,

[issue41923] Add PEP 613 typing.TypeAlias to the standard library

2020-10-03 Thread Mikhail Golubev
New submission from Mikhail Golubev : TypeAlias is already included in typing_extensions package, making it available for pre-3.10 versions of Python. I'd like port this implementation to the upstream version of typing. -- components: Library (Lib) messages: 377890 nosy:

[issue41898] Any logging causes assertLogs to pass

2020-10-03 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +21531 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22526 ___ Python tracker ___

[issue41920] Weird add operation of "0.2222 + 0.1111"

2020-10-03 Thread Steven D'Aprano
Steven D'Aprano added the comment: Please forgive me if my answer is a little bit brusque, but we get essentially this same bug report regularly, only the numbers are different. This is not a bug in Python, it is an unavoidable consequence of how floating point arithmetic works in every

[issue41920] Weird add operation of "0.2222 + 0.1111"

2020-10-03 Thread Leonard Schwennesen
Leonard Schwennesen added the comment: But this "bug" only affects floating numbers? -- ___ Python tracker ___ ___

[issue41826] test_peg_generator compilation warnings

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

[issue41919] Modify test_codecs to use the new codecs.unregister() function

2020-10-03 Thread STINNER Victor
Change by STINNER Victor : -- title: Move the codecs.register operation to testcases -> Modify test_codecs to use the new codecs.unregister() function ___ Python tracker ___

[issue18228] AIX locale parsing failure

2020-10-03 Thread STINNER Victor
STINNER Victor added the comment: Sorry, I forgot to close it 7 years ago. Done ;-) -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Guido, can the method update be made automatic? When instantiation fails, recheck to see the missing abstract methods had been defined? >>> from abc import * >>> class P(ABC): @abstractmethod def m(self):

[issue40348] Programming FAQ about "What is delegation?": Fix typos

2020-10-03 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-03 Thread Guido van Rossum
Guido van Rossum added the comment: Hm, you're effectively proposing to compute (or update) __abstractmethods__ lazily. There are a number of subtleties with that, e.g. __abstractmethods__ is currently a frozenset, and a base class's __abstractmethods__ is used when computing the

[issue41887] ast.literal_eval does not accept strings with leading whitespaces

2020-10-03 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset e799aa8b92c195735f379940acd9925961ad04ec by Batuhan Taskaya in branch 'master': bpo-41887: omit leading spaces/tabs on ast.literal_eval (#22469) https://github.com/python/cpython/commit/e799aa8b92c195735f379940acd9925961ad04ec --

[issue41887] ast.literal_eval does not accept strings with leading whitespaces

2020-10-03 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +21536 pull_request: https://github.com/python/cpython/pull/22533 ___ Python tracker

[issue41887] ast.literal_eval does not accept strings with leading whitespaces

2020-10-03 Thread Guido van Rossum
Guido van Rossum added the comment: Closing. Let’s not backport. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41924] TextWrap's wrap method throws unhelpful error on bytes object

2020-10-03 Thread ThePokestarFan
New submission from ThePokestarFan : The wrap() method of the TextWrapper class (and the module-level wrap method) throws an unhelpful TypeError upon getting a bytes object. -- components: Library (Lib) files: traceback.txt messages: 377910 nosy: ThePokestarFan priority: normal

[issue41924] TextWrap's wrap method throws unhelpful error on bytes object

2020-10-03 Thread ThePokestarFan
Change by ThePokestarFan : -- keywords: +patch pull_requests: +21537 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22534 ___ Python tracker ___

[issue41924] TextWrap's wrap method throws unhelpful error on bytes object

2020-10-03 Thread Josh Rosenberg
Josh Rosenberg added the comment: It's not textwrap that's doing it, which is why the error is so unhelpful; the input is assumed to be a str, and the translate method is called on it with a dict argument, which is valid for str.translate, but not for bytes.translate. You'll get other

[issue41924] TextWrap's wrap method throws unhelpful error on bytes object

2020-10-03 Thread ThePokestarFan
ThePokestarFan added the comment: You're most likely right, so I'll close it. The lesson is most likely to not use weird arguments, but modules such as datetime warn against it, so I was surprised. -- ___ Python tracker

[issue41924] TextWrap's wrap method throws unhelpful error on bytes object

2020-10-03 Thread ThePokestarFan
Change by ThePokestarFan : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: > you're effectively proposing to compute (or update) > __abstractmethods__ lazily. Would it be possible to do the update whenever the class dictionary is modified, in PyType_Modified() perhaps (using logic similar to __mro__ updates__)? I not pushing

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-03 Thread Guido van Rossum
Guido van Rossum added the comment: Yes, we could override ABCMeta.__setattr__ to do that. Though it seems this class is considered performance sensitive (else why have Modules/_abc.c) we would probably have to write it in C.-- --Guido (mobile) --

[issue32192] Provide importlib.util.lazy_import helper function

2020-10-03 Thread Irit Katriel
Irit Katriel added the comment: This seems complete. Can is be closed? -- nosy: +iritkatriel ___ Python tracker ___ ___

[issue41923] Add PEP 613 typing.TypeAlias to the standard library

2020-10-03 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33235] Better help text for dict.setdefault

2020-10-03 Thread Irit Katriel
Irit Katriel added the comment: The help message is now: Help on method_descriptor: setdefault(self, key, default=None, /) Insert key with a value of default if key is not in the dictionary. Return the value for key if key is in the dictionary, else default. This issue should

[issue41923] Add PEP 613 typing.TypeAlias to the standard library

2020-10-03 Thread Guido van Rossum
Guido van Rossum added the comment: Sure go right ahead. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-10-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +21532 pull_request: https://github.com/python/cpython/pull/22527 ___ Python tracker ___

[issue41840] [regression] symtable.Symbol.is_local() is no longer True for bound global symbols

2020-10-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset fb0a4651f1be4ad936f8277478f73f262d8eeb72 by Pablo Galindo in branch 'master': bpo-41840: Report module-level globals as both local and global in the symtable module (GH-22391)

[issue40348] Programming FAQ about "What is delegation?": Fix typos

2020-10-03 Thread Irit Katriel
Irit Katriel added the comment: This issue can be closed. -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list

[issue41922] Use PEP 590 vectorcall to speed up calls to reversed()

2020-10-03 Thread Dong-hee Na
Dong-hee Na added the comment: Thank you Victor! -- resolution: fixed -> stage: resolved -> patch review status: closed -> open ___ Python tracker ___

[issue41922] Use PEP 590 vectorcall to speed up calls to reversed()

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

[issue33235] Better help text for dict.setdefault

2020-10-03 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36568] Typo in socket.CAN_RAW_FD_FRAMES library documentation

2020-10-03 Thread Irit Katriel
Irit Katriel added the comment: This issue can be closed. -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list

[issue40202] Misleading grammatically of ValueError Message?

2020-10-03 Thread Irit Katriel
Irit Katriel added the comment: I think this can be closed as a duplicate of 39816. -- nosy: +iritkatriel ___ Python tracker ___

[issue40202] Misleading grammatically of ValueError Message?

2020-10-03 Thread Ammar Askar
Change by Ammar Askar : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> More descriptive error message than "too many values to unpack" ___ Python tracker

[issue41840] [regression] symtable.Symbol.is_local() is no longer True for bound global symbols

2020-10-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +21534 pull_request: https://github.com/python/cpython/pull/22529 ___ Python tracker ___

[issue41840] [regression] symtable.Symbol.is_local() is no longer True for bound global symbols

2020-10-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +21533 pull_request: https://github.com/python/cpython/pull/22528 ___ Python tracker ___

[issue41922] Use PEP 590 vectorcall to speed up calls to reversed()

2020-10-03 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset d646e91f5c4f4b76f96494103d440ed0b6257425 by Dong-hee Na in branch 'master': bpo-41922: Use PEP 590 vectorcall to speed up reversed() (GH-22523) https://github.com/python/cpython/commit/d646e91f5c4f4b76f96494103d440ed0b6257425 --

[issue41922] Use PEP 590 vectorcall to speed up calls to reversed()

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

[issue29986] Documentation recommends raising TypeError from tp_richcompare

2020-10-03 Thread Irit Katriel
Irit Katriel added the comment: Looks like this issue can be closed. -- nosy: +iritkatriel ___ Python tracker ___ ___

  1   2   >