[Python-Dev] cpython (3.2): NUL -> NULL (original) (raw)

Stefan Krah stefan at bytereef.org
Thu Aug 18 20:51:21 CEST 2011


Antoine Pitrou <solipsis at pitrou.net> wrote:

On Thu, 18 Aug 2011 17:49:28 +0200 benjamin.peterson <python-checkins at python.org> wrote: > - PyErrSetString(PyExcTypeError, "embedded NUL character"); > + PyErrSetString(PyExcTypeError, "embedded NULL character");

Are you sure? IIRC, NUL is the little name of ASCII character 0 (while NULL would be the NULL pointer).

Yes, that's the traditional name. I was surprised that the C99 standard uses "null character" in almost all cases. Example:

"The construction '\0' is commonly used to represent the null character."

So I think it should be either NUL or "null character" with the lower case spelling.

Stefan Krah



More information about the Python-Dev mailing list