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

On Thu, 18 Aug 2011 17:49:28 +0200 benjamin.peterson <python-checkins@python.org> wrote:
- PyErr_SetString(PyExc_TypeError, "embedded NUL character"); + PyErr_SetString(PyExc_TypeError, "embedded NULL character");
Are you sure? IIRC, NUL is the little name of ASCII character 0 (while NULL would be the NULL pointer). Regards Antoine.

Antoine Pitrou <solipsis@pitrou.net> wrote:
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

On 18Aug2011 20:51, Stefan Krah <stefan@bytereef.org> wrote: | Antoine Pitrou <solipsis@pitrou.net> wrote: | > On Thu, 18 Aug 2011 17:49:28 +0200 | > benjamin.peterson <python-checkins@python.org> wrote: | > > - PyErr_SetString(PyExc_TypeError, "embedded NUL character"); | > > + PyErr_SetString(PyExc_TypeError, "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. +1 from me, too. -- Cameron Simpson <cs@zip.com.au> DoD#743 http://www.cskk.ezoshosting.com/cs/ I like to keep an open mind, but not so open my brains fall out. - New York Times Chairman Arthur Sulzberger

Antoine Pitrou <solipsis@pitrou.net> wrote:
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

On 18Aug2011 20:51, Stefan Krah <stefan@bytereef.org> wrote: | Antoine Pitrou <solipsis@pitrou.net> wrote: | > On Thu, 18 Aug 2011 17:49:28 +0200 | > benjamin.peterson <python-checkins@python.org> wrote: | > > - PyErr_SetString(PyExc_TypeError, "embedded NUL character"); | > > + PyErr_SetString(PyExc_TypeError, "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. +1 from me, too. -- Cameron Simpson <cs@zip.com.au> DoD#743 http://www.cskk.ezoshosting.com/cs/ I like to keep an open mind, but not so open my brains fall out. - New York Times Chairman Arthur Sulzberger
participants (6)
-
Antoine Pitrou
-
Benjamin Peterson
-
Cameron Simpson
-
Eric V. Smith
-
Nick Coghlan
-
Stefan Krah