3 ms·
> Is that a C-string? It's a Python bytestring. > Does it crash if one forgets the null byte? No. But in that case it will crash when you use it as CPython (
by masklinn 10y ago
> Is that a C-string?
It's a Python bytestring.
> Does it crash if one forgets the null byte?
No. But in that case it will crash when you use it as CPython (and most FS APIs, and most FS) don't allow NUL in filenames.
- pvg 10y agoIt's not going to crash. You'll get an error.