-
-
Notifications
You must be signed in to change notification settings - Fork 32k
Using a frozen attributes to Exception class #134451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
@sobolevn can you see, please? |
I think that we can simplify this, yes. There are known problems with frozen dataclasses on exceptions. PR is welcome. |
kumaraditya303
pushed a commit
that referenced
this issue
May 23, 2025
…ss to a regular exception type. (#134513)
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 23, 2025
…ataclass to a regular exception type. (pythonGH-134513) (cherry picked from commit f9324cb) Co-authored-by: Evgeny Demchenko <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
CycleFoundException
in asyncio has frozen attributes, which has a problem related #99856cpython/Lib/asyncio/tools.py
Lines 16 to 20 in e1f8914
Do I need to fix this without using @DataClass?
CPython versions tested on:
3.11
Operating systems tested on:
No response
Linked PRs
@dataclass
forasyncio.tools.CycleFoundException
class #134513asyncio.tools.CycleFoundException
from dataclass to a regular exception type. (GH-134513) #134564The text was updated successfully, but these errors were encountered: