[Python-Dev] Attributes access with dict
Eugene Toder
eltoder at gmail.com
Fri Mar 25 01:10:45 CET 2011
More information about the Python-Dev mailing list
Fri Mar 25 01:10:45 CET 2011
- Previous message: [Python-Dev] Attributes access with dict
- Next message: [Python-Dev] Attributes access with dict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Although we do something similar with namedtuple (instead of using a > dict), so it's not like we have a strict distinction. Named tuple is a convenience to avoid creating boilerplate classes (or resorting to use dict with well-known keys). Names in named tuple are not data, only values. In dict, names are data too. Eugene
- Previous message: [Python-Dev] Attributes access with dict
- Next message: [Python-Dev] Attributes access with dict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list