[issue42160] unnecessary overhead in tempfile

Eric Wolf report at bugs.python.org
Sat Oct 31 10:15:00 EDT 2020


Eric Wolf <robo-eric at gmx.de> added the comment:

>>> timeit(os.getpid)
0.08990733299999931

Considering the reference leaks, os.getpid() seems to be the better solution.

----------

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


More information about the Python-bugs-list mailing list