]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39142: Avoid converting namedtuple instances to ConvertingTuple. (GH-17773)
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Wed, 1 Jan 2020 19:32:11 +0000 (19:32 +0000)
committerGitHub <noreply@github.com>
Wed, 1 Jan 2020 19:32:11 +0000 (19:32 +0000)
commit46abfc1416ff8e450999611ef8f231ff871ab133
tree9e5ed3f91d0aa64434d1c05067b70648e0147fa2
parent22424c02e51fab3b62cbe255d0b87d1b55b9a6c3
bpo-39142: Avoid converting namedtuple instances to ConvertingTuple. (GH-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.
Lib/logging/config.py
Lib/test/test_logging.py
Misc/NEWS.d/next/Library/2019-12-31-19-27-23.bpo-39142.oqU5iD.rst [new file with mode: 0644]