Skip to content Skip to sidebar Skip to footer
Showing posts with the label Namedtuple

Is `namedtuple` Really As Efficient In Memory Usage As Tuples? My Test Says No

It is stated in the Python documentation that one of the advantages of namedtuple is that it is as … Read more Is `namedtuple` Really As Efficient In Memory Usage As Tuples? My Test Says No

How Named Tuples Are Implemented Internally In Python?

Named tuples are easy to create, lightweight object types. namedtuple instances can be referenced … Read more How Named Tuples Are Implemented Internally In Python?

Creating A Namedtuple From A List

Consider a list variable t In [55]: t Out[55]: ['1.423', '0.046', '98.521&#… Read more Creating A Namedtuple From A List

Python: Easy Way To Replace Attribute On Nested Namedtuple?

I'm creating a data structure with nested namedtuples (practicing my immutable functional progr… Read more Python: Easy Way To Replace Attribute On Nested Namedtuple?

Python Collections.namedtuple() Confusion

The documentation says that any python valid identifier can be a field_name, except those which sta… Read more Python Collections.namedtuple() Confusion