Skip to content

[3.7] bpo-33100: Dataclasses now handles __slots__ and default values correctly. (GH-6152)#6153

Merged
ericvsmith merged 1 commit into
python:3.7from
miss-islington:backport-7389fd9-3.7
Mar 20, 2018
Merged

[3.7] bpo-33100: Dataclasses now handles __slots__ and default values correctly. (GH-6152)#6153
ericvsmith merged 1 commit into
python:3.7from
miss-islington:backport-7389fd9-3.7

Conversation

@miss-islington

@miss-islington miss-islington commented Mar 20, 2018

Copy link
Copy Markdown
Contributor

If the class has a member that's a MemberDescriptorType, it's not a default value, it's from that member being in slots.
(cherry picked from commit 7389fd9)

Co-authored-by: Eric V. Smith ericvsmith@users.noreply.github.com

https://bugs.python.org/issue33100

…ctly. (pythonGH-6152)

If the class has a member that's a MemberDescriptorType, it's not a default value, it's from that member being in __slots__.
(cherry picked from commit 7389fd9)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
@miss-islington

Copy link
Copy Markdown
Contributor Author

@ericvsmith: Backport status check is done, and it's a success ✅ .

@ericvsmith
ericvsmith merged commit 3d41f48 into python:3.7 Mar 20, 2018
@miss-islington

Copy link
Copy Markdown
Contributor Author

Thanks, @ericvsmith!

@miss-islington
miss-islington deleted the backport-7389fd9-3.7 branch March 20, 2018 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants