[EMAIL PROTECTED] wrote:
>     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.
> 
> Isn't that just floating an implementation detail up to the programmer (who 
> may
> well not be POSIX- or Unix-aware)?

Yes, but in some cases that's unavoidable. It would be
impractical to provide embedded-NUL-capable replacements
for all C functions that someone might want (and flat-out
impossible for some, e.g. os.open()).

Greg
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to