[issue24416] Return a namedtuple from date.isocalendar()
Baptiste Mispelon
report at bugs.python.org
Tue Jun 9 23:06:36 CEST 2015
Baptiste Mispelon added the comment:
Here's a second attempt at a patch which seems to work.
I don't know C at all but I used _decimal.c to try and figure out how to use namedtuple in C.
The code compiles and the datetime test suite runs.
I've added a test for the new feature and a note in Misc/NEWS as well as a versionadded note in the relevant documentation.
Let me know if I've missed anything.
----------
keywords: +patch
Added file: http://bugs.python.org/file39667/issue24416_2.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24416>
_______________________________________
More information about the Python-bugs-list
mailing list