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

Cameron Simpson cs at zip.com.au
Sat Aug 20 03:14:19 CEST 2011


On 18Aug2011 20:51, Stefan Krah <stefan at bytereef.org> wrote:
| Antoine Pitrou <solipsis at pitrou.net> wrote:
| > On Thu, 18 Aug 2011 17:49:28 +0200
| > benjamin.peterson <python-checkins at 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 at 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


More information about the Python-Dev mailing list