Python's 8-bit cleanness deprecated?

Bengt Richter bokr at oz.net
Tue Feb 4 12:04:01 EST 2003


On Mon, 03 Feb 2003 12:21:44 -0800, Brian Quinlan <brian at sweetapp.com> wrote:

>> >>>>> "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).
>
Wouldn't it be nicer just to collect them in a tree under a directory
with a __init__.py that specifies default encoding for the lot?

Regards,
Bengt Richter




More information about the Python-list mailing list