[issue46136] "dh low key " issue when try to connect mysql

2021-12-19 Thread Ajith MsM
New submission from Ajith MsM : i have tried to connect my db using python 3.10. import module is mysql.connector. db has installed in AWS. while excuting pycharm able to connect the db to get the output. using CMD prompt in windows not able to execute facing error like "dh low key" error

[issue46106] OpenSSL 1.1.1m is now available

2021-12-19 Thread Kumar Aditya
Change by Kumar Aditya : -- keywords: +patch nosy: +kumaraditya303 nosy_count: 8.0 -> 9.0 pull_requests: +28432 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/30211 ___ Python tracker

[issue46104] Reduce use of old-style syntax in typing docs

2021-12-19 Thread Alex Waygood
Change by Alex Waygood : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46104] Reduce use of old-style syntax in typing docs

2021-12-19 Thread miss-islington
miss-islington added the comment: New changeset 0c0bd78ccf8e1eb1d8ecfce423daf2a2f8ca6d3b by Miss Islington (bot) in branch '3.10': [3.10] bpo-46104: Fix example broken by GH-30148 (GH-30203) (GH-30209) https://github.com/python/cpython/commit/0c0bd78ccf8e1eb1d8ecfce423daf2a2f8ca6d3b

[issue46104] Reduce use of old-style syntax in typing docs

2021-12-19 Thread miss-islington
miss-islington added the comment: New changeset 8e4564d14ae0fc97cfea4de9e271468d4c28a6fe by Miss Islington (bot) in branch '3.9': [3.9] bpo-46104: Fix example broken by GH-30148 (GH-30203) (GH-30210) https://github.com/python/cpython/commit/8e4564d14ae0fc97cfea4de9e271468d4c28a6fe

[issue46132] Consider adding __slots__ to enums?

2021-12-19 Thread Ethan Furman
Ethan Furman added the comment: Some testing reveals that `__slots__` is not a good option for Enum -- it makes it impossible to mix in in other types such as `int`. -- ___ Python tracker

[issue46104] Reduce use of old-style syntax in typing docs

2021-12-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +28431 pull_request: https://github.com/python/cpython/pull/30210 ___ Python tracker ___

[issue46104] Reduce use of old-style syntax in typing docs

2021-12-19 Thread Ken Jin
Ken Jin added the comment: New changeset 7c5c3f7254d78babcaf7a2ec187fd6ec53b8403c by Alex Waygood in branch 'main': bpo-46104: Fix example broken by GH-30148 (GH-30203) https://github.com/python/cpython/commit/7c5c3f7254d78babcaf7a2ec187fd6ec53b8403c --

[issue46104] Reduce use of old-style syntax in typing docs

2021-12-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +28430 pull_request: https://github.com/python/cpython/pull/30209 ___ Python tracker ___

[issue23224] bz2/lzma: Compressor/Decompressor objects are only initialized in __init__

2021-12-19 Thread Ma Lin
Ma Lin added the comment: These can be done in .__new__() method: - create thread lock - create (de)?compression context - initialize (de)?compressor states In .__init__() method, only set (de)?compression parameters. And prevent .__init__() method from being called multiple times. This

[issue45996] Worse error from asynccontextmanager in Python 3.10

2021-12-19 Thread Dima Tisnek
Dima Tisnek added the comment: I'm fine with guarding both. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45996] Worse error from asynccontextmanager in Python 3.10

2021-12-19 Thread Thomas Grainger
Thomas Grainger added the comment: > Actually I don't agree with Thomas's logic... his argument feels like > consistency for its own sake. Do you expect sync and async contextmanagers to act differently? Why would sync contextmanagers raise AttributeError and async contextmanagers raise a

[issue45996] Worse error from asynccontextmanager in Python 3.10

2021-12-19 Thread Dima Tisnek
Dima Tisnek added the comment: Andrew, I see that you've closed this issue as "fixed". I'm a little confused by that. If you mean that 3.10 behaviour is better than 3.9, than perhaps "not a bug / rejected / wont fix" would make more sense. Actually I don't agree with Thomas's logic... his

[issue46127] Missing HTML span element in exceptions.html

2021-12-19 Thread Vivek Vashist
Vivek Vashist added the comment: Thanks for the information Daniel. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46132] Consider adding __slots__ to enums?

2021-12-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: > In which case: consider this a feature request to > consider adding __slots__ ... A few thoughts: * Enumerations tend to be small, so a space savings likely isn't relevant. * In Python 3.11, the speed advantage of slots is now much smaller. * The code

[issue46132] Consider adding __slots__ to enums?

2021-12-19 Thread Alex Waygood
Alex Waygood added the comment: Ah, of course, I'm an idiot — I forgot that a class could not prevent the creation of __dict__ unless the parent class also had __slots__. Thanks, Christian. In which case: consider this a feature request to consider adding __slots__ to enum.Enum: for faster

[issue46132] Attempting to create an enum with slots silently fails

2021-12-19 Thread Christian Heimes
Christian Heimes added the comment: The primary purpose of __slots__ is not to limit attribute assignment. Slots are useful to define types that have a smaller memory footprint than types. You are getting the expected behavior. Enum parent class does not have __slots__ and therefore

[issue46100] Simplify readline / editline detection

2021-12-19 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > I propose to simplify the checks and require a readline 4.2 compatible API. +1 BTW: > GNU readline was released in 2001 (20 years ago). FTR, GNU Readline _4.2_ was released in 2001 ;) -- ___ Python tracker

[issue46134] Confusing error message for AttributeError with dataclasses

2021-12-19 Thread Eric V. Smith
Eric V. Smith added the comment: Please show the error you're getting, including the traceback. -- status: pending -> open ___ Python tracker ___

[issue46135] Changing a label's text is not working properly on transparent widgets

2021-12-19 Thread Ned Deily
Ned Deily added the comment: PyQT is a third-party product and not part of Python or the Python Standard Library. Suggest you contact that project and/or ask on one of the general assistance forums, like Stack Overflow. Good luck! https://riverbankcomputing.com/software/pyqt/

[issue46135] Changing a label's text is not working properly on transparent widgets

2021-12-19 Thread MB SANTALU
New submission from MB SANTALU : Updating a label's text on a transparent widget in MacOS behaves strangely, previous text remains partially visible (see screenshot) System Specs: MacOS Monterey 12.0.1 and Python 3.10 Code: import sys from PyQt6 import QtWidgets, QtCore from PyQt6.QtCore

[issue46076] Document using __slots__ to provide per-attribute docstrings

2021-12-19 Thread Alex Waygood
Alex Waygood added the comment: Thanks for taking the time to review and merge :) -- ___ Python tracker ___ ___ Python-bugs-list

[issue46076] Document using __slots__ to provide per-attribute docstrings

2021-12-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 8bfb11a791679a33024c9857e082afed0d71e0b4 by Miss Islington (bot) in branch '3.9': bpo-46076: Improve documentation for per-attribute docstrings with `__slots__` (GH-30109) (GH-30207)

[issue46076] Document using __slots__ to provide per-attribute docstrings

2021-12-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset d7537ac8e3a3ef15d2c5f3fe90e998618b6a97b9 by Miss Islington (bot) in branch '3.10': bpo-46076: Improve documentation for per-attribute docstrings with `__slots__` (GH-30109) (GH-30206)

[issue46131] Add PyType_FastSubclass for float

2021-12-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: That would not change that slot space is at a premium and that we prefer to use that space for high payoff optimizations. -- ___ Python tracker

[issue46131] Add PyType_FastSubclass for float

2021-12-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 29ea68bd1dcf30842c2ed908a6d815bc1d90f484 by Raymond Hettinger in branch 'main': Revert "bpo-46131: add fastpath for PyFloat_Check() (GH-30200)" (GH-30208) https://github.com/python/cpython/commit/29ea68bd1dcf30842c2ed908a6d815bc1d90f484

[issue46131] Add PyType_FastSubclass for float

2021-12-19 Thread mattip
mattip added the comment: What do ya'all think of widen the flags field to int64_t so that there is more room for optimizations like this? -- ___ Python tracker ___

[issue46131] Add PyType_FastSubclass for float

2021-12-19 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +28429 pull_request: https://github.com/python/cpython/pull/30208 ___ Python tracker ___

[issue46131] Add PyType_FastSubclass for float

2021-12-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 2ef06d412531d1163dbc72877c88aedf3ed82a25 by Matti Picus in branch 'main': bpo-46131: add fastpath for PyFloat_Check() (#30200) https://github.com/python/cpython/commit/2ef06d412531d1163dbc72877c88aedf3ed82a25 --

[issue46131] Add PyType_FastSubclass for float

2021-12-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the suggestion, but I also concur with Serhiy. -- nosy: +rhettinger resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue46076] Document using __slots__ to provide per-attribute docstrings

2021-12-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the PR. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46076] Document using __slots__ to provide per-attribute docstrings

2021-12-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset aeb9ef4c7287fe367b6e9adcf1c5f994d5bc1a09 by Alex Waygood in branch 'main': bpo-46076: Improve documentation for per-attribute docstrings with `__slots__` (GH-30109)

[issue46076] Document using __slots__ to provide per-attribute docstrings

2021-12-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +28428 pull_request: https://github.com/python/cpython/pull/30207 ___ Python tracker ___

[issue46076] Document using __slots__ to provide per-attribute docstrings

2021-12-19 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +28427 pull_request: https://github.com/python/cpython/pull/30206 ___ Python tracker

[issue46134] Confusing error message for AttributeError with dataclasses

2021-12-19 Thread Alex Waygood
Alex Waygood added the comment: Thanks for the bug report, Landon! I think I can reproduce this with a slightly shorter code snippet, but I don't think this is a bug: ``` >>> from dataclasses import dataclass, field >>> @dataclass ... class Character: ... sort_index: int =

[issue46134] Dataclass Suggestion reversed: sortindex / sort_index

2021-12-19 Thread Landon Ginn
New submission from Landon Ginn : from dataclasses import dataclass, field @dataclass(order=True, frozen=True) class Character: sort_index: int = field(init=False, repr=False) name: str job: str age: int intelligence: int = 50 def __post_init__(self):

[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase

2021-12-19 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +28426 pull_request: https://github.com/python/cpython/pull/30205 ___ Python tracker ___

[issue46132] Attempting to create an enum with slots silently fails

2021-12-19 Thread Ethan Furman
Change by Ethan Furman : -- assignee: -> ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46109] Separate resources docs from other importlib docs

2021-12-19 Thread Jason R. Coombs
Jason R. Coombs added the comment: I realize, I can limit the scope of this issue to address 'resources' alone, leaving ABCs where they are except for resource-related ones, allowing us to defer a larger refactoring to a separate issue/effort. -- title: Separate resources and abc

[issue29328] struct module should support variable-length strings

2021-12-19 Thread Alex Waygood
Alex Waygood added the comment: I am closing this issue as "rejected", given the consensus that writing a patch could be a major undertaking, the lack of such a patch, and the fact that there has been no activity on the issue thread (or the python-ideas mailing list) for nearly 5 years.

[issue46118] Migrate importlib.resources into a package

2021-12-19 Thread Jason R. Coombs
Jason R. Coombs added the comment: I recently noticed that some docs already refer to `importlib.resources.abc` even though it doesn't currently exist (https://github.com/python/cpython/blame/main/Doc/library/importlib.rst#L948). That finding leads me to adjust my expectation that perhaps

[issue46109] Separate resources and abc docs from other importlib docs

2021-12-19 Thread Jason R. Coombs
Jason R. Coombs added the comment: As I'm exploring this issue, I notice that currently, the docs refer to :class:`importlib.resources.abc.Traversable` (even though that doesn't currently exist) (https://github.com/python/cpython/blame/main/Doc/library/importlib.rst#L948). --

[issue45996] Worse error from asynccontextmanager in Python 3.10

2021-12-19 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase

2021-12-19 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46109] Separate resources and abc docs from other importlib docs

2021-12-19 Thread Jason R. Coombs
Jason R. Coombs added the comment: > a ToC at the top of the main page which identifies the submodules (and > provides a brief summary for each) would be extra helpful. I've added this in the latest commit (1adefaf552). -- ___ Python tracker

[issue46109] Separate resources and abc docs from other importlib docs

2021-12-19 Thread Jason R. Coombs
Jason R. Coombs added the comment: The reason I wanted to consider issue46118 first was because I wanted to explore whether the ABCs from `importlib_resources.abc` should be _documented_ as `importlib.resources.abc` or `importlib.abc` (as they are now). After filing the issue and exploring

[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase

2021-12-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset f8fce5e4e4338fbe49e5e7a5a856101f69081a08 by Andrew Svetlov in branch '3.9': [3.9] bpo-46129: Rewrite asyncio.locks tests with IsolatedAsyncioTestCase (GH-30198) (GH-30204)

[issue46065] re.findall takes forever and never ends

2021-12-19 Thread Gareth Rees
Gareth Rees added the comment: This kind of question is frequently asked (#3128, #29977, #28690, #30973, #1737127, etc.), and so maybe it deserves an answer somewhere in the Python documentation. -- resolution: -> wont fix stage: -> resolved status: open -> closed

[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase

2021-12-19 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +28425 pull_request: https://github.com/python/cpython/pull/30204 ___ Python tracker ___

[issue46133] Unclear whether one can (or how to) provide source to exec-generated code

2021-12-19 Thread Matt B
Change by Matt B : -- components: +Library (Lib) type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___

[issue46133] Unclear whether one can (or how to) provide source to exec-generated code

2021-12-19 Thread Matt B
New submission from Matt B : Unless I missed it, looking at https://github.com/python/cpython/blob/main/Lib/pdb.py, https://github.com/python/cpython/blob/main/Lib/inspect.py, and https://docs.python.org/3/library/pdb.html doesn't give much of a clue how to provide sources to exec-generated

[issue46065] re.findall takes forever and never ends

2021-12-19 Thread Gareth Rees
Gareth Rees added the comment: The way to avoid this behaviour is to disallow the attempts at matching that you know are going to fail. As Serhiy described above, if the search fails starting at the first character of the string, it will move forward and try again starting at the second

[issue10789] Lock.acquire documentation is misleading

2021-12-19 Thread Alex Waygood
Alex Waygood added the comment: I am closing this issue. The original topic of discussion (Lock.acquire documentation) has been resolved, and there were other issues opened to discuss the more general issue. There has also been no real activity in this issue thread for a decade. --

[issue29971] threading.Lock.acquire() not interruptible on Windows

2021-12-19 Thread Alex Waygood
Change by Alex Waygood : -- stage: -> needs patch versions: +Python 3.11 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

[issue46104] Reduce use of old-style syntax in typing docs

2021-12-19 Thread Alex Waygood
Change by Alex Waygood : -- resolution: fixed -> stage: resolved -> patch review status: closed -> open ___ Python tracker ___ ___

[issue46104] Reduce use of old-style syntax in typing docs

2021-12-19 Thread Alex Waygood
Change by Alex Waygood : -- pull_requests: +28424 pull_request: https://github.com/python/cpython/pull/30203 ___ Python tracker ___

[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase

2021-12-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset cdb4579607ad5e0a3978ec29b8407bea4d19b4fa by Andrew Svetlov in branch '3.10': [3.10] bpo-46129: Rewrite asyncio.locks tests with IsolatedAsyncioTestCase (GH-30198) (GH-30202)

[issue23224] bz2/lzma: Compressor/Decompressor objects are only initialized in __init__

2021-12-19 Thread Daniel Diniz
Change by Daniel Diniz : -- versions: +Python 3.10, Python 3.11 -Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

[issue46106] OpenSSL 1.1.1m is now available

2021-12-19 Thread Steve Dower
Steve Dower added the comment: I've put up the builds for 1.1.1m (and double checked everything after last time - it's definitely "m" :) ), so anyone can do the PR to change Python itself. Otherwise I'll probably get time this week. -- ___ Python

[issue46123] _freeze_module on Windows can be built faster with no optimization

2021-12-19 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46123] _freeze_module on Windows can be built faster with no optimization

2021-12-19 Thread Steve Dower
Steve Dower added the comment: New changeset 0b582a4a1b24472a35ed7fc973728ac9d595f123 by neonene in branch 'main': bpo-46123: Disable optimizations for _freeze_module.exe on MSVC for faster building (GH-30181) https://github.com/python/cpython/commit/0b582a4a1b24472a35ed7fc973728ac9d595f123

[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase

2021-12-19 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +28423 pull_request: https://github.com/python/cpython/pull/30202 ___ Python tracker ___

[issue46130] Untranslatable link text in whatsnew/3.10

2021-12-19 Thread Ken Jin
Ken Jin added the comment: Thanks Rafael for your efforts in docs translations. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase

2021-12-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 9c06fd89514a9a2865e2adcc472095f6949cecb2 by Andrew Svetlov in branch 'main': bpo-46129: Rewrite asyncio.locks tests with IsolatedAsyncioTestCase (GH-30198) https://github.com/python/cpython/commit/9c06fd89514a9a2865e2adcc472095f6949cecb2

[issue46130] Untranslatable link text in whatsnew/3.10

2021-12-19 Thread miss-islington
miss-islington added the comment: New changeset 9a28cf19b5d5f79eb072afc582f7baa9e7bd3ac2 by Miss Islington (bot) in branch '3.10': bpo-46130: [docs] Add anchor for whatsnew/3.10 type hint section (GH-30199) https://github.com/python/cpython/commit/9a28cf19b5d5f79eb072afc582f7baa9e7bd3ac2

[issue46127] Missing HTML span element in exceptions.html

2021-12-19 Thread Daniel Diniz
Daniel Diniz added the comment: That happens because EncodingWarning isn't highlighted as an Exception by Pygments[0]. The doc page gets its exceptions diagram by: ".. literalinclude:: ../../Lib/test/exception_hierarchy.txt" and all other entries are recognized by Pygments, so we get the "ne"

[issue46130] Untranslatable link text in whatsnew/3.10

2021-12-19 Thread Ken Jin
Ken Jin added the comment: New changeset 3d3615f41f4ea73fe6707eb3673dfab482cb6a2b by Rafael Fontenelle in branch 'main': bpo-46130: [docs] Add anchor for whatsnew/3.10 type hint section (GH-30199) https://github.com/python/cpython/commit/3d3615f41f4ea73fe6707eb3673dfab482cb6a2b --

[issue46130] Untranslatable link text in whatsnew/3.10

2021-12-19 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +28422 pull_request: https://github.com/python/cpython/pull/30201 ___ Python tracker

[issue46132] Attempting to create an enum with slots silently fails

2021-12-19 Thread Alex Waygood
New submission from Alex Waygood : Attempting to create an enum with __slots__ silently fails. No error is raised if __slots__ are specified, but the usual behaviour of __slots__ does not work as expected. Attributes that are not specified in __slots__ can be freely set: >>> from enum

[issue46094] Missing unit test on unittest.TestResult to check for required arguments

2021-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: These parameters were added in d99ef9a9df093d3443996725cd9dcac5f113f176, but they were not tested nor documented. An indirect test was added later in issue12376. If it is an official feature it needs documentation and tests. Otherwise we can remove these

[issue46131] Add PyType_FastSubclass for float

2021-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is because PyFloat_Check() and PyComplex_Check() are rarely used in comparison with checks for integers, strings, etc. The flags space is limited, so it is better to use it for something more important. There were reasons for not adding such flags at

[issue46128] Strip IsolatedAsyncioTestCase frames from reported stacktraces

2021-12-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: `__unittest = True` flag doesn't work smoothly with async functions, unfortunately. Need to investigate why. -- ___ Python tracker ___

[issue42413] Replace custom exceptions for timeouts with TimeoutError

2021-12-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: Done. Thanks, Kumar! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42413] Replace custom exceptions for timeouts with TimeoutError

2021-12-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset da4b214304df38cf1831071804a2b83938f95923 by Kumar Aditya in branch 'main': bpo-42413: Replace `concurrent.futures.TimeoutError` and `asyncio.TimeoutError` with builtin `TimeoutError` (GH-30197)

[issue46130] Untranslatable link text in whatsnew/3.10

2021-12-19 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +mdk type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46131] Add PyType_FastSubclass for float

2021-12-19 Thread mattip
Change by mattip : -- keywords: +patch pull_requests: +28421 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30200 ___ Python tracker ___

[issue46128] Strip IsolatedAsyncioTestCase frames from reported stacktraces

2021-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you. I knew about this issue but forgot to fix it. I think it is also needed in _log.py. Not sure about mock.py. -- nosy: +serhiy.storchaka ___ Python tracker

[issue46131] Add PyType_FastSubclass for float

2021-12-19 Thread mattip
mattip added the comment: "complex" is also missing a fast path -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46131] Add PyType_FastSubclass for float

2021-12-19 Thread mattip
New submission from mattip : The basic classes int, dict, list, tuple ... all have a fast path for Py_*Check(obj): #define PyLong_Check(op) \ PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS) except for float. I propose to add a Py_TPFLAGS_FLOAT_SUBCLASS enum and use it to

[issue46130] Untranslatable link text in whatsnew/3.10

2021-12-19 Thread Rafael Fontenelle
Change by Rafael Fontenelle : -- keywords: +patch pull_requests: +28420 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30199 ___ Python tracker

[issue46130] Untranslatable link text in whatsnew/3.10

2021-12-19 Thread Rafael Fontenelle
New submission from Rafael Fontenelle : The following string can be found in What's New in Python 3.10 source file (Doc/whatsnew/3.10.rst): > For major changes, see `New Features Related to Type Hints`_. where "`New Features Related to Type Hints`_" is a link to a section in the very same

[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase

2021-12-19 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase

2021-12-19 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +28419 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30198 ___ Python tracker ___

[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase

2021-12-19 Thread Andrew Svetlov
New submission from Andrew Svetlov : The change makes tests much better readable. -- components: Tests, asyncio messages: 40 nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Rewrite asyncio.locks tests with IsolatedAsyncioTestCase versions: Python

[issue42413] Replace custom exceptions for timeouts with TimeoutError

2021-12-19 Thread Kumar Aditya
Change by Kumar Aditya : -- nosy: +kumaraditya303 nosy_count: 13.0 -> 14.0 pull_requests: +28418 pull_request: https://github.com/python/cpython/pull/30197 ___ Python tracker

[issue46128] Strip IsolatedAsyncioTestCase frames from reported stacktraces

2021-12-19 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +28417 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30196 ___ Python tracker ___

[issue46128] Strip IsolatedAsyncioTestCase frames from reported stacktraces

2021-12-19 Thread Andrew Svetlov
New submission from Andrew Svetlov : #7815 supports `__unittest = True` module globals to stripping unittest framework calls from a stacktrace reported by a test failure. IsolatedAsyncioTestCase missed this setup. -- components: Library (Lib) messages: 408887 nosy: asvetlov priority:

[issue23819] test_asyncio fails when run under -O

2021-12-19 Thread Kumar Aditya
Change by Kumar Aditya : -- pull_requests: +28416 pull_request: https://github.com/python/cpython/pull/30195 ___ Python tracker ___