Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-134451: Delete@dataclass
forasyncio.tools.CycleFoundException
class#134513
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
python-cla-botbot commentedMay 22, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
@sobolevn can you see, please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Do we use__hash__
/__eq__
/__gt__
or something with this class?
Uh oh!
There was an error while loading.Please reload this page.
Misc/NEWS.d/next/Library/2025-05-22-14-12-53.gh-issue-134451.M1rD-j.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: sobolevn <mail@sobolevn.me>
No, dataclass was used to just avoid manually writing |
asyncio.tools. CycleFoundException
class@dataclass
forasyncio.tools.CycleFoundException
classf9324cb
intopython:mainUh oh!
There was an error while loading.Please reload this page.
Thanks@RenameMe1 for the PR, and@kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
…ataclass to a regular exception type. (pythonGH-134513)(cherry picked from commitf9324cb)Co-authored-by: Evgeny Demchenko <v1mpire@icloud.com>
GH-134564 is a backport of this pull request to the3.14 branch. |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Oh, never mind - these were just my small nitpicks :) |
I think this change was a mistake, and should be rolled back. A better, more compatible change would be to make it a non-frozen dataclass. |
sobolevn commentedMay 24, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@ericvsmith can you please explain why? Did we miss some extra dataclass-generated methods? Or is |
ericvsmith commentedMay 24, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Because we don't know everywhere it's used. Why take the chance of breaking things? I think it's a good idea to make the smallest possible change to fix the problem, and that would be an unfrozen dataclass. I've broken plenty of things over the years with similar small changes. We should be very careful with any change. |
@ericvsmith I think that it is fine, it was added 3 weeks ago2bc8365#diff-2aec630227e154e015d98ccdb65d86f6ad365e1d029bbe6289933b7ad41b69f3R17 and I think that people did not have time to really use it and attach to small implementation details. In my opinion, it is a right time for this change. But, I am open for other opinions / reverting this, if there are actual things that we broke 🤝 |
I didn't realize it was new. In that case, I'm mostly okay with it. But since it's after Beta 1, you might want to check with the Release Manager. |
cc@hugovk |
Thanks, I think this is fine. |
Uh oh!
There was an error while loading.Please reload this page.