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.
On 08/18/2011 02:19 PM, Antoine Pitrou 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).
That's my understanding, too. Eric.
2011/8/18 Antoine Pitrou <solipsis@pitrou.net>:
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).
NUL is the abbreviation of the "Null character". -- Regards, Benjamin
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. 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