[Python-Dev] Impact of Namedtuple on startup time
Antoine Pitrou
solipsis at pitrou.net
Mon Jul 17 09:11:51 EDT 2017
On Mon, 17 Jul 2017 15:03:26 +0200
Ivan Levkivskyi <levkivskyi at gmail.com> wrote:
> Interesting coincidence, just two days ago I have heard that a team at one
> large company completely abandoned namedtuple because of the creation time
> problem.
>
> Concerning _source, why it is not possible to make it a property so that
> all the string formatting will happen on request, thus saving some time for
> users who doesn't need it?
It was proposed in https://bugs.python.org/issue19640 but rejected.
Regards
Antoine.
More information about the Python-Dev
mailing list