Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Open
Description
Bug report
WhenO_TMPFILE
is available:
tempfile.TemporaryFile(mode='wb')
opens withO_RDWR
instead ofO_WRONLY
, theopener
callback ignoresmode
argument and always use_bin_openflags
_bin_openflags
has bothO_CREAT
andO_EXCL
set, theopener
callback removesO_CREAT
from flags but leaveO_EXCL
, this is an undefined behavior according to Linuxopen(2)
manpage
Your environment
- CPython versions tested on: 3.10
- Operating system and architecture: Linux x86_64