-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Open
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
When O_TMPFILE is available:
tempfile.TemporaryFile(mode='wb')opens withO_RDWRinstead ofO_WRONLY, theopenercallback ignoresmodeargument and always use_bin_openflags_bin_openflagshas bothO_CREATandO_EXCLset, theopenercallback removesO_CREATfrom 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
Linked PRs
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error