Skip to content
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

[3.7] bpo-39142: Avoid converting namedtuple instances to ConvertingTuple. (GH-17773) #17786

Merged
merged 1 commit into from Jan 1, 2020

Conversation

@miss-islington
Copy link

miss-islington commented Jan 1, 2020

This uses the heuristic of assuming a named tuple is a subclass of
tuple with a _fields attribute. This change means that contents of
a named tuple wouldn't be converted - if a user wants to have
ConvertingTuple functionality from a namedtuple, they will have to
implement it themselves.
(cherry picked from commit 46abfc1)

Co-authored-by: Vinay Sajip vinay_sajip@yahoo.co.uk

https://bugs.python.org/issue39142

…H-17773)

This uses the heuristic of assuming a named tuple is a subclass of
tuple with a _fields attribute. This change means that contents of
a named tuple wouldn't be converted - if a user wants to have
ConvertingTuple functionality from a namedtuple, they will have to
implement it themselves.
(cherry picked from commit 46abfc1)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
@miss-islington

This comment has been minimized.

Copy link
Author

miss-islington commented Jan 1, 2020

@vsajip: Status check is done, and it's a success .

1 similar comment
@miss-islington

This comment has been minimized.

Copy link
Author

miss-islington commented Jan 1, 2020

@vsajip: Status check is done, and it's a success .

@vsajip vsajip merged commit 0e0e4ac into python:3.7 Jan 1, 2020
5 checks passed
5 checks passed
Azure Pipelines PR #20200101.15 succeeded
Details
bedevere/issue-number Issue number 39142 found
Details
bedevere/maintenance-branch-pr Valid maintenance branch PR title.
bedevere/news News entry found in Misc/NEWS.d
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@miss-islington miss-islington deleted the miss-islington:backport-46abfc1-3.7 branch Jan 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.