[Python-Dev] String views

skip@pobox.com skip at pobox.com
Tue Sep 6 17:32:22 CEST 2005


 Greg> If a Python function is clearly wrapping a C function, one doesn't
 Greg> expect to be able to pass strings with embedded NULs to it.
 Skip> Isn't that just floating an implementation detail up to the
 Skip> programmer (who may well not be POSIX- or Unix-aware)?
 Fredrik> so if POSIX refuses to deal with, e.g., NUL bytes in file
 Fredrik> names, Python should somehow work around that to avoid
 Fredrik> "exposing implementation details" ?
I don't know what the correct answer is. I suspect the right thing to do
will vary depending on what C function is being wrapped. I was just making
sure I understood correctly that there is a potential problem.
Skip


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /