[issue24416] Return a namedtuple from date.isocalendar()

Tal Einat report at bugs.python.org
Tue Jun 9 23:35:32 CEST 2015


Tal Einat added the comment:

Now for the color of the bike-shed: What should the namedtuple returned by date.isocalendar() be named? Perhaps CalendarDate or DateTuple?

Baptiste's patches use ISOCalendarResult. In my opinion that is a poor name since it does not tell you anything about what it represents (you have to know or look up what isocalendar() returns).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24416>
_______________________________________


More information about the Python-bugs-list mailing list