[issue24416] Have date.isocalendar() return a structseq instance

STINNER Victor report at bugs.python.org
Mon Sep 2 06:52:44 EDT 2019


STINNER Victor <vstinner at python.org> added the comment:

> By contrast, returning a plain tuple from `isocalendar()` is the easier *and* more performant thing to do, and given that any benefits seem marginal I'm against the switch.

Does someone have benchmark numbers? If we go with structseq, creating a new instance should be almost as efficient as creating a tuple, no?

----------

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


More information about the Python-bugs-list mailing list