[New-bugs-announce] [issue25981] Intern namedtuple field names

Serhiy Storchaka report at bugs.python.org
Wed Dec 30 15:05:39 EST 2015


New submission from Serhiy Storchaka:

If intern field names in namedtuple, this will speed up the access to them, because names could be compared just by identity in dict lookup. This can also make pickles containing namedtuples more compact.

----------
assignee: rhettinger
components: Library (Lib)
files: namedtuple_intern_field_names.patch
keywords: patch
messages: 257238
nosy: rhettinger, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Intern namedtuple field names
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file41452/namedtuple_intern_field_names.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25981>
_______________________________________


More information about the New-bugs-announce mailing list