Named Tuples 1.9

Operating systemsOS : Windows / Linux / Mac OS / BSD / Solaris
Program licensingScript Licensing : Other Free / Open Source License - Python License
CreatedCreated : Jun 7, 2007
Size downloadDownloads : 3
Program licensing
Thank you for voting...

This script allows you a fast, lightweight ...

This script allows you a fast, lightweight attribute-style access to tuples. It contains a function that returns a new subclass of tuple with named fields.
The principal features are:
- Easy to type/read/modify function signature: NamedTuple('Person', 'name age sex height nationality')
- C-speed attribute lookup using property and itemgetter.
- No instance dictionary means that instances take no more space than a regular tuple.
- Nice docstring is helpful with an editor's tooltips.
- Optional keywords in the contructor for readability and to allow variable order of specifying arguments: Person(name='susan', height=60, nationality='english', sex='f', age=30).
- Key/Value style repr for clearer error messages and for usability at the interactive prompt.
- named_tuples by Raymond Hettinger are picklable.
- Clean error messages for missing or misnamed arguments.
- A method similar to str. replace() using a field name (used instead of slicing for updating fields -- instead of t[:2] newval t[3:], write t. replace('f', newval)).

Named Tuples 1.9 scripting tags: subclass, access, age, messages, named tuples, tuple script, error, fields, tuple subclass, arguments, tuples access. What is new in Named Tuples 1.9 software script? - Unable to find Named Tuples 1.9 news. What is improvements are expecting? Newly-made Named Tuples 1.10 will be downloaded from here. You may download directly. Please write the reviews of the Named Tuples. License limitations are unspecified.