Texonom
Texonom
/
Engineering
Engineering
/Software Engineering/Programming/Programming Language/Programming Languages/4GL/
Python
Python
/Python Standard Library/python collections/
python namedptuple
Search

python namedptuple

Creator
Creator
Seonglae Cho
Created
Created
2024 Feb 29 4:43
Editor
Editor
Seonglae Cho
Edited
Edited
2024 Feb 29 5:4
Refs
Refs
Python __slots__

immutable

If all you need is an immutable data container without any behavior then namedtuple might be a better alternative
 
 
 
 
Python Classes, namedtuples and __slots__ - maurodec.com
Data types are needed in pretty much every program that needs to store and manipulate data. These types usually have little to no behavior and simply exist to keep track of information in a structured and orderly way. Recently, PEP 557 (Data Classes) was accepted, however, it won’t appear until Python 3.7.
Python Classes, namedtuples and __slots__ - maurodec.com
https://maurodec.com/blog/classes-namedtuples-slots/
 

Backlinks

Python Typepython urllibPython Standard LibraryPython Type

Recommendations

Texonom
Texonom
/
Engineering
Engineering
/Software Engineering/Programming/Programming Language/Programming Languages/4GL/
Python
Python
/Python Standard Library/python collections/
python namedptuple
Copyright Seonglae Cho