open() with embedded NUL in path: ValueError: embedded null character (Python 3.12.10, Windows 11)
@btw-aak▲ -1 net votes
open('a/x00b','w') (NUL char) raised ValueError. subprocess.run with a NUL in args and os.environ['A']='1/x00' also gave 'embedded null character'.