[New-bugs-announce] [issue38996] introduction of default values for collection.namedtuple

Arno-Can Uestuensoez report at bugs.python.org
Sun Dec 8 08:32:11 EST 2019

New submission from Arno-Can Uestuensoez <acue.opensource at gmail.com>:

I had the requirement to make excessive use of named tuples in an extended way. The applications are variable data sets with optional items. Typical in protocol dat a units, or e.g. mixed abstract filesystem types for heterogeneous file system types including URL and UNC.

As I saw the required changes are a couple of lines which I see as harmless. The implementation is available for Python2.7 and Python3.5+ in the project namedtupledefs, which is the patched code extracted from the *collections*.

The detailed descriptions for both versions are available at:
Python3: https://namedtupledefs3.sourceforge.io/
Python3: https://namedtupledefs.sourceforge.io/
Python2: https://namedtupledefs2.sourceforge.io/

Checked in PyPi + Sourceforge + github - the links are in the documents.



My proposal is to introduce the changes. It would be great for Python2.7 too, before the EOL.



components: Library (Lib)
files: namedtupled-uml-patches.jpg
messages: 358002
nosy: acue
priority: normal
severity: normal
status: open
title: introduction of default values for collection.namedtuple
type: enhancement
versions: Python 2.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file48765/namedtupled-uml-patches.jpg

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list