[Python-Dev] Null bytes in source code

Greg Ward gward@mems-exchange.org
Tue, 25 Sep 2001 17:25:48 -0400


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

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

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

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

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

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

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

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

Am I on drugs here?

-- 
Greg Ward - software developer                gward@mems-exchange.org
MEMS Exchange                            http://www.mems-exchange.org