PythonTidy

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Thu Nov 30 08:47:48 EST 2006


In <ekmmu4$8ii$1 at upsn250.cri.u-psud.fr>, Laurent Pointal wrote:

> Roberto Bonvallet a écrit :
>> # vim: set fileencoding=utf-8 :
> ...
>> # -*- coding: utf-8 -*-
> ...
>> About changing the shebang line:  I'll take it as a bug.
>> About changing the encoding declaration from vim-style to emacs-style:
>> I'll take it as an insult :)
> 
> This is not "emacs-style", this is Python normalized source encoding
> directive for correct interpretation of u"..." strings by Python
> interpreter.
> 
> See http://www.python.org/dev/peps/pep-0263/

Where does it say it has to be emacs-style?  It just uses that style as
example as far as I can see.  The real definition is a regexp:

  coding[:=]\s*([-\w.]+)

So the vim-style is fine.  No need to replace it.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list