-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
PEP 557 interop namespace #686
Comments
I think that if we did that, we should have an The reason for that is that if we start down that path and set and expectations that Attrs is PEP 557 (plus whatever extra awesome) then (a) we might get cornered into design decisions made elsewhere in order to maintain this expectation (b) we might have used a name that conflicts with some future dataclass addition and (c) compatibility may require contortions that would be better contained in a compatibility namespace. |
agreed – I think it should actually be |
This content likely belongs with the discussion in #565. +1 to this idea, given what we've seen in #795, I think there are now more knock-on benefits than ever to adding a "dataclass compatible namespace". A few potential benefits would include:
The goal of the namespace would be to provide an attrs mode that is superset of Differences for existing features are blocking changes that prevent an application from directly converting from
Missing features are non-blocking changes that would require an application to reduce their use of
|
Notes on private attributes handling filed under #945. |
Extracted from #408 (comment)
It would be good for migrating from large codebases where
dataclasses
are already used, or for pythonistas who want codebases/apis that stick close to the PEP specifications where possible.The text was updated successfully, but these errors were encountered: