namedtupledefs2 - field defaults for Python2.7

For Python3 refer to namedtupledefs [namedtupledefs] or namedtupledefs3 [namedtupledefs3]. For the standard library collections.namedtuple see Python documentation [namedtuple].

Abstract

The namedtupledefs package provides a patched version of the original collections.namedtuple. The namedtupledefs package introduces:

  • field defaults

    Default values for the fields in function style see [PYFUNC] The implementation is pure dynamic by generated default values for the method __new__, thus has no impact on the created namedtuple class. Neither on resources, nor on performance. See __new__.

  • merge

    In addition the method _merge is added to the created named tuple class. This provides the concatination of multiple results from namedtuple into a new instance of a new class. See _merge, Python2, and Python3.

_images/structure.png

Figure: Class Diagram of namedtupledefs zoom more…

For an overview with additional details refer to the following section Blueprint.

For the standard library collections.namedtuple see Python documentation [namedtuple]. For the release for Python3 refer to namedtupledefs [namedtupledefs] or namedtupledefs3 [namedtupledefs3].

Start Here

Cockpit

API

For an overview of the call interfaces and their valid call parameters refer to

Call interfaces:

For implementation details refer to “The SW-Design of namedtupledefs”.

Functions

Documents

Artifacts Shortcuts
Concepts and Design The SW-Design of namedtupledefs
Programming Interfaces Documents

Application

Licenses

Product Data

  • MISSION=Extended ‘namedtuple’ by default values.
  • AUTHOR=Arno-Can Uestuensoez
  • PROJECT=namedtupledefs2
  • COPYRIGHT=(C)2019 Arno-Can Uestuensoez
  • LICENSE=Artistic-License-2.0 + Forced-Fairplay-Constraints
  • VERSION=0.1.21
  • RELEASE=0.1.21
  • STATUS=Unknown
  • BUILDDATE=2019.12.13-12:29

profileinfoidx0 [xkcd] Support the OpenSource Authors

The Original Code and Documentation

The original license is preserved for the used parts of the original artifacts.

The Patches

The patches are provided by two licenses.

  • For the Original Author

    For the original author of the patched code:

    The same license as the original code.

  • For Others

    For others - commercial and private:

Configuration Files

The configuration files 0 if not noted else - are licensed by MIT License.

This document

For this document - either as a whole or partial:

ccby

Creative Commons license - CC BY [CCBY] - requires to add the authors name and the preservation of the license of the patches for derived works of any level.

Modified Artistic License

The modified Artistic License is based on the ArtisticLicense2.0, but adds the amendmend of “Forced-Fairplay-Constraints” for peer-to-peer fairplay rules. The modification restricts, and even revokes the permission including the open source attribution in case of breaches, including the past.

License:ModifiedArtisticLicense2.0 = ArtisticLicense2.0 + Forced-Fairplay-Constraints
From Ingenieurbuero Arno-Can Uestuensoez
Name  ModifiedArtisticLicense2.0

This is perfectly allright, as you may refer to cases like the faith of Andreas Pavel [AndreasPavel], or even my own - UnifiedSessionsManager (C) 2008 Arno-Can Uestuensoez [UnifiedSessionsManager] - the first multivendor cloud management system, capable of distributed hybrid clouds including virtual desktops. The UnifiedSessionsManager was originally licensed as GPL3.

So the software is OpenSource as long as you comply to basic rules - else not.