-
Notifications
You must be signed in to change notification settings - Fork 41
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
Extend find-slots-inconsistencies #403
Labels
Comments
I think this is still valid in June 2017:
Note that it's possible that the secondary output (about 56 child classes without own slots implementation) may be answering the request in this issue. In which case empty |
trevorbaca
added a commit
that referenced
this issue
Jul 4, 2017
This closes #403, open since August 2014.
Done in 2.21. |
trevorbaca
added a commit
that referenced
this issue
Jul 31, 2017
This closes #403, open since August 2014.
trevorbaca
added a commit
that referenced
this issue
Jul 31, 2017
This closes #403, open since August 2014.
trevorbaca
added a commit
that referenced
this issue
Jul 31, 2017
This closes #403, open since August 2014.
trevorbaca
added a commit
that referenced
this issue
Jul 31, 2017
This closes #403, open since August 2014.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The script is already very useful.
We need to extend it to demand that the following condition hold for all classes systemwide: if a baseclass defines
__slots__
then all concrete inheritors need to also implement__slots__
.What happens when this condition fails to hold?
Nothing for months on end. But then when it becomes necessary to implement
__getstate__()
,__setstate__()
or__copy__()
then the concrete inheritors almost always fail the parameterized copy and deepcopy tests.The fix is straightforward: make sure concrete inheritors implement
__slots__
.The text was updated successfully, but these errors were encountered: