[issue39783] Optimize construction of Path from other Paths by just returning the same object?

Raymond Hettinger report at bugs.python.org
Fri Feb 28 11:07:14 EST 2020


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

Possibly this could be done just by adding @lru_cache to the __new__() method.

----------
nosy: +rhettinger

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


More information about the Python-bugs-list mailing list