-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-134451: Delete @dataclass
for asyncio.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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb 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?
Misc/NEWS.d/next/Library/2025-05-22-14-12-53.gh-issue-134451.M1rD-j.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: sobolevn <[email protected]>
No, dataclass was used to just avoid manually writing |
asyncio.tools. CycleFoundException
class@dataclass
for asyncio.tools.CycleFoundException
class
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 commit f9324cb) Co-authored-by: Evgeny Demchenko <[email protected]>
GH-134564 is a backport of this pull request to the 3.14 branch. |
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. |
@ericvsmith can you please explain why? Did we miss some extra dataclass-generated methods? Or is |
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 ago 2bc8365#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. |
Uh oh!
There was an error while loading. Please reload this page.