Python's 8-bit cleanness deprecated?

Brian Quinlan brian at sweetapp.com
Tue Feb 4 12:59:20 EST 2003


> >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?

No:

1. That system would not interoperate with editors very well (the 
   current encoding system can be recognized by both VIM and Emacs)
2. It would make it more difficult to distribute single source files
3. It would require more work because the parser would need more context
   when parsing source files

Cheers,
Brian






More information about the Python-list mailing list