[Python-Dev] Null bytes in source code

Barry A. Warsaw barry@zope.com
Tue, 25 Sep 2001 17:41:18 -0400


>>>>> "GW" == Greg Ward <gward@mems-exchange.org> writes:

    GW> Weird: in the current CVS, certain files in Lib have null
    GW> bytes (ASCII 0) in them.  Install-time byte-compilation
    GW> complains about this, so "make install" fails.

    GW> Eg. here's what "less Lib/reconvert.py" shows me me:

    GW> ------------------------------------------------------------------------
    GW> #! /usr/bin/env python1.5

    GW> r"""Convert old ("regex") regular expressions to new syntax
    GW> ("re").

    GW> When imported as a module, there are two functions, with their
    GW> own strings:

    GW>   convert(s, syntax=None) -- convert a regex regular
    GW> expression to re syntax

    GW>  ^@^@^@^@te(s) -- return a quoted string literal [...]
    GW> ------------------------------------------------------------------------

    GW> Those "^@"'s are really ASCII 0 -- I checked with "od -c".

    GW> Am I on drugs here?

Probably!  A cvs update as of 2 minutes ago showed nothing like this
in the file for me.

say-hi-to-the-flying-pink-elephants-for-me-ly y'rs,
-Barry