[issue24416] Return a namedtuple from date.isocalendar()
Tal Einat
report at bugs.python.org
Tue Jun 9 21:51:36 CEST 2015
Tal Einat added the comment:
> First, if pickle a namedtuple, it can't be unpickled in previous versions.
True, but I don't think Python goes as far as to promise that objects pickled in one version can be unpickled in previous versions.
> Second, namedtuple is slower and larger than tuple, so it shouldn't be used in memory or performance critical code.
True, but I doubt that such tuples are often used extensively in performance-critical areas of code. Also, code which does care about this could immediately convert these namedtuples into plain tuples, which would be backwards compatible.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24416>
_______________________________________
More information about the Python-bugs-list
mailing list