[Python-3000] Support for PEP 3131

Josiah Carlson jcarlson at uci.edu
Sun Jun 3 02:59:27 CEST 2007


"Rauli Ruohonen" <rauli.ruohonen at gmail.com> wrote:
> 
> On 6/2/07, Josiah Carlson <jcarlson at uci.edu> wrote:
> > Whether or not there exists a tool to convert from Python 2.6 to
> > Python 3.0 (2to3), every tool that currently handles Python source
> > code encodings via the method specified in the documentation
> > (just about every Python-centric editor I know) would need to be
> > changed.
> 
> How so? The old regexp can still match the encoding tag unless
> the user insists on using it in an incompatible way. As syntax
> changes go, this one causes little trouble for editors.

As per the spec, only the first two lines need to be scanned.  By your
change, any editor of Python that wanted to follow the spec (like Vim
and Emacs, which helped *define* the spec), would need to scan until
comments stopped being found at the beginning of the source file. 
Further, some editors that don't even understand Python are currently
able to handle alternate encodings precisely because there is exactly
one true way to define encodings: the way Emacs and Vim have defined it,
which Python adopted.


> > Guido doesn't always overrule everyone.
> 
> Yet he makes the decisions. That's why i used his latest comments
> on the topic to set the defaults in the suggestion. These are
> easily changed when necessary, and the whole issue of
> defaults is quite minor. What matters more is having a convenient
> way of setting the character set restrictions of a module. The
> reason I quoted him at such length was that I thought that you
> might have missed some of his posts because you simply ignored
> what he had to say (and no, I generally don't remember people's
> names).

Guido last replied before some 30+ messages more or less closed out the
discussion, of which were replies that addressed precisely those issues
that you quoted to bring up as "proof". If you aren't even going to be
bothered to read the thread, I'm not going to bother replying to you. As
I said before, and as I'm saying again, read the thread.  Until then,
you aren't bringing up anything new to the discussion and are just
wasting everyone's time.

 - Josiah



More information about the Python-3000 mailing list