Python's 8-bit cleanness deprecated?

Brian Quinlan brian at sweetapp.com
Mon Feb 3 21:21:44 CET 2003


> >>>>> "Brian" == Brian Quinlan <brian at sweetapp.com> writes:
>     Brian> The effort required to do that doesn't strike me as
>     Brian> significant.
> 
> Yeah, but you (and me) live in ASCII-land

I've written a lot of Python code but probably <1,000 source files.
Probably about 100 of those are still in use and in my care. I would
imagine that most Python users have generated less code than that.

>     Brian> How many total source files do you have that have non-ASCII
>     Brian> characters in them?
> 
> Probably a fair number, since Roman lives in Russia.

Ah, then it should be easy. The encoding is probably the same for all of
his source files. He could probably write a simple script that inserts
the encoding (being careful to insert the encoding after the shebang
line, if present).

Cheers,
Brian






More information about the Python-list mailing list