You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 16, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 16, 2022. It is now read-only.
@jwilk That doesn't seem particularly performant or elegant though. It seems that there is a package on PyPI that provides bindings for this call, however, that would be quite a microdependency.
Activity
[-]Use Linux' API for tmpfiles[/-][+]Use Linux' O_TMPFILE for tmpfiles[/+]untitaker commentedon Feb 6, 2015
Unsure how to call
linkatin Python.AndCycle commentedon Apr 28, 2016
https://docs.python.org/3/library/os.html#os.O_TMPFILE
jwilk commentedon Jul 15, 2016
Something like this seems to work since Python 3.4:
untitaker commentedon Jul 28, 2016
@jwilk That doesn't seem particularly performant or elegant though. It seems that there is a package on PyPI that provides bindings for this call, however, that would be quite a microdependency.
earonesty commentedon Dec 6, 2017
AFAICT NamedTemporaryFile already sets this flag
jwilk commentedon Dec 6, 2017
I think you meant (unnamed)
TemporaryFile, which indeed tries to useO_TMPFILEsince Python 3.5:https://bugs.python.org/issue21515