[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 code 2055. 


But able to connect and execute on python 3.9.9 verision could you please fix 
the 3.10 and above versions.

--
assignee: christian.heimes
components: SSL
files: issue.txt
messages: 408947
nosy: ajithmsm555, christian.heimes
priority: normal
severity: normal
status: open
title: "dh low key " issue when try to connect mysql
type: resource usage
versions: Python 3.10
Added file: https://bugs.python.org/file50504/issue.txt

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mode works fine in my pyzstd module (A Python bindings to zstd library).
But I think very few people will encounter this problem, we can leave it.

--
nosy: +malin

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

If it's sensible to guard against invalid re-entry for async contextmanagers 
then I think it's sensible to apply the same guard to sync contextmanagers.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 argument feels like 
consistency for its own sake.

I agree with the intention of the change for the arguments to be released 
(https://bugs.python.org/issue30306) but I disagree with the cryptic error.

I'm sure we could have both argument release and readable exception, e.g.:


try:
del self.args, ...
except AttributeError:
raise RuntimeError("anext(): asynchronous generator is already running")

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 for Enum is already complex and has a lot of magic.  Adding slots to 
the equation may make it even harder to reason about the internals.
* It not even clear that __slots__ would or could play nice with existing code. 
 Even if it does, it may tie our hands for other avenues of development such as 
a custom a __getattribute__ or use of @cached_property.

Please consider a more use case driven development approach to working on the 
core.  We have no known problems with Enum at this point that need to be 
solved.  A general notion that __slots__ should be used in more places is a 
reasonable topic for python-ideas.  The tracker is more suitable for targeted 
proposals like, "my company needs enums to work with tool x but it won't unless 
slot support is added", "my real-world app must support enormous enumerations 
that lead to memory problems unless slots are added", "i tried adding slots to 
Enum and found it was easy, didn't cause problems, and sped-up common cases by 
22%".

I mostly agree with Christian except that limiting attribute access is a 
legitimate reason to use slots.  However, in the case of Enums that isn't a 
known issue.  Also, it is something that would need to done when a tool is 
first released.  Generally, we can't add it afterwards because that would be a 
breaking change (some applications may be legitimately adding additional 
attributes).

For now, I'll close this.  If Ethan thinks there is some fruit on this tree, he 
can reopen it.  Also if a specific real world use case arises, it can be 
reopened.

--
nosy: +rhettinger
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 attribute access, lower memory footprint, and the ability 
to define __slots__ in custom Enum classes.

--
title: Attempting to create an enum with slots silently fails -> Consider 
adding __slots__ to enums?
type: behavior -> enhancement
versions:  -Python 3.10, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 automatically has a __dict__. You could make an 
argument to add __slots__ to Enum, but that would be a new feature for 3.11.

--
nosy: +christian.heimes

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/
https://www.python.org/about/help/

--
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 import QTimer
from PyQt6.QtGui import QFont
from PyQt6.QtWidgets import QLabel, QFrame
def update_label():
l1.setText("Bye!")
l1.update()
window.repaint()
app = QtWidgets.QApplication(sys.argv)
window = QtWidgets.QWidget()
window.setAttribute(QtCore.Qt.WidgetAttribute.WA_TranslucentBackground)
window.setWindowFlag(QtCore.Qt.WindowType.FramelessWindowHint)
window.setFixedSize(800, 600)
font = QFont()
font.setPointSize(72)
l1 = QLabel(window)
l1.setText("Hello World")
l1.setFont(font)
l1.setStyleSheet("color:red")
window.show()
timer = QTimer()
timer.setInterval(1000)
timer.timeout.connect(update_label)
timer.start()
app.exec()

--
components: macOS
files: sof.png
messages: 408931
nosy: mbsantalu, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Changing a label's text is not working properly on transparent widgets
type: behavior
versions: Python 3.10
Added file: https://bugs.python.org/file50503/sof.png

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/8bfb11a791679a33024c9857e082afed0d71e0b4


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/d7537ac8e3a3ef15d2c5f3fe90e998618b6a97b9


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/aeb9ef4c7287fe367b6e9adcf1c5f994d5bc1a09


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 = field(init=False, repr=False)
... intelligence: int
... def __post_init__(self):
... self.sortindex = self.intelligence
... 
>>> c = Character(intelligence=50)
>>> c
Character(intelligence=50)
>>> c.sortindex
50
>>> c.sort_index
AttributeError: 'Character' object has no attribute 'sort_index'. Did you mean: 
'sortindex'?
```

This seems like the correct error message to me.

The issue is that your "Character" class has a field named "sort_index", but 
that field is never assigned to. Instead, you assign an attribute named 
"sortindex" in your __post_init__ method. So the error message is correct: an 
instance of your Character class has no attribute "sort_index" (it only has a 
field named "sort_index"), but it *does* have an attribute "sortindex".

--
nosy: +AlexWaygood, eric.smith
status: open -> pending
title: Dataclass Suggestion reversed: sortindex / sort_index -> Confusing error 
message for AttributeError with dataclasses

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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):
object.__setattr__(self, 'sortindex', self.intelligence)

Description:
using sortindex instead of sort_index gave the following suggestion: 

Current:
AttributeError: 'Character' object has no attribute 'sort_index'. Did you mean: 
'sortindex'?


Expected: 
AttributeError: 'Character' object has no attribute 'sortindex'. Did you mean: 
'sort_index'?

--
components: Library (Lib)
messages: 408919
nosy: landonjpginn
priority: normal
severity: normal
status: open
title: Dataclass Suggestion reversed: sortindex / sort_index
type: behavior
versions: Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 docs from other importlib docs -> Separate 
resources docs from other importlib docs

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--
nosy: +AlexWaygood
resolution:  -> rejected
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 exposing those 
classes from that module would be preferable (since that was the expectation 
from the start).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the concerns (namely, should users be 
directed _away_ from `importlib.abc` for these classes), I'm uncertain whether 
it's worth the effort to make that transition, and certainly not in haste, so 
this effort can proceed to document the status quo (ABCs presented primarily in 
`importlib.abc`).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/f8fce5e4e4338fbe49e5e7a5a856101f69081a08


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

I may have misread, but pdb *seems* to lean on inspect.findsource which 
eventually excludes sources that match `^<.*>$` (like ``).

Running attached test_case.py:

% python test_case.py
> (4)foo()
(Pdb) l
[EOF]
(Pdb) c
inspect.getfile(): 
calling inspect.findsource() ...
Traceback (most recent call last):
  File "/Users/matt/Documents/dev/numerary/test_case.py", line 12, in 
foo()
  File 
"/Library/Frameworks/MacPorts-20200907/Python.framework/Versions/3.9/lib/python3.9/inspect.py",
 line 835, in findsource
raise OSError('could not get source code')
OSError: could not get source code

--
files: test_case.py
messages: 408910
nosy: posita
priority: normal
severity: normal
status: open
title: Unclear whether one can (or how to) provide source to exec-generated code
Added file: https://bugs.python.org/file50502/test_case.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 character. But you know that this new attempt must 
fail, so you can force the regular expression engine to discard the attempt 
immediately.

Here's an illustration in a simpler setting, where we are looking for all 
strings of 'a' followed by 'b':

>>> import re
>>> from timeit import timeit
>>> text = 'a' * 10
>>> timeit(lambda:re.findall(r'a+b', text), number=1)
6.64353118114

We know that any successful match must be preceded by a character other than 
'a' (or the beginning of the string), so we can reject many unsuccessful 
matches like this:

>>> timeit(lambda:re.findall(r'(?:^|[^a])(a+b)', text), number=1)
0.00374348114981

In your case, a successful match must be preceded by [^a-zA-Z0-9_.+-] (or the 
beginning of the string).

--
nosy: +g...@garethrees.org

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--
dependencies:  -Document lack of support for keyword arguments in C functions
nosy: +AlexWaygood
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/cdb4579607ad5e0a3978ec29b8407bea4d19b4fa


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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" class for 
them.

A PR for Pygments adding EncodingWarning could be interesting, but I'm not sure 
the doc build process would pick it up and fix the 3.10 docs issue.

For 3.11, the diagram drawing was changed so no highlighting happens anymore, 
which fixes the issue for us in the long run.

[0] 
https://github.com/pygments/pygments/blob/8630e033313647d9579e314f3e8e2882f4558933/pygments/lexers/python.py#L225

--
nosy: +ajaksu2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--
nosy: +kj

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 import Enum
>>> class Color(Enum):
... __slots__ = ()
... RED = 0
... BLUE = 1
...
>>> Color.RED.foo = 'bar'
>>>


Given that enums are rather special, I didn't exactly *expect* this to work -- 
but it might be good to raise some kind of error if a user attempts to specify 
__slots__, instead of having it fail silently.

--
messages: 408898
nosy: AlexWaygood, ethan.furman
priority: normal
severity: normal
status: open
title: Attempting to create an enum with slots silently fails
type: behavior
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 parameters and revert issue12376 changes. Michael?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 first place and I think that 
they are still valid.

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/da4b214304df38cf1831071804a2b83938f95923


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 implement PyType_FastSubclass for float.

--
components: C API
messages: 408890
nosy: mattip
priority: normal
severity: normal
status: open
title: Add PyType_FastSubclass for float

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 page with this name.

The issue with this link text is that translators should translate it (in 
python-doc organization in Transifex) but warning as errors will pop up if 
translated. For example, in Portuguese:

> Para mais alterações, veja `Novos recrusos relacionados a dicas de tipo`_

or to

> Para mais alterações, veja `Novos recrusos relacionados a dicas de tipo  Features Related to Type Hints>`_

Sphinx would complain with:

Doc/whatsnew/3.10.rst:1432: WARNING: inconsistent references in translated 
message. original: ['`New Features Related to Type Hints`_'], translated: []

To solve this issue, I see two solutions:

1- Create an anchor for "New Features Related to Type Hints" section in this 
page (let's say, "new-feat-related-type-hints") and then call it like 
:ref:`new-feat-related-type-hints` so that it gets the section title name 
automatically. Translators won't need to edit it in order to get translated 
title name. (recommended)

2- Rewrite the source string adding the internal link to the paragraph using 
`New Features Related to Type Hints <#new-features-related-to-type-hints>`_, so 
that it can be translated without popping up the warning message.

--
assignee: docs@python
components: Documentation
messages: 408889
nosy: docs@python, rffontenelle
priority: normal
severity: normal
status: open
title: Untranslatable link text in whatsnew/3.10
versions: Python 3.10, Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: normal
severity: normal
status: open
title: Strip IsolatedAsyncioTestCase frames from reported stacktraces
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com