Skip to content
Advertisement

Tag: python-3.9

Python 3.9: unpickling of IsoCalendarDate data returns a tuple

Consider the following discussion / feature in Python3.9: https://bugs.python.org/issue24416 In short, it was decided that the result of datetime.date.isocalendar would be changed to a namedtuple instead of tuple. Now, I can see the benefit in doing that, but they also decided “to pickle” the new object (datetime.IsoCalendarDate) as a tuple: https://github.com/python/cpython/commit/1b97b9b0ad9a2ff8eb5c8f2e2e7c2aec1d13a330#diff-2a8962dcecb109859cedd81ddc5729bea57d156e0947cb8413f99781a0860fd1R1214 So my question is, why did they make it

Advertisement