[Python-Dev] Py2.3 Todo List

M.-A. Lemburg mal@lemburg.com
Mon, 23 Jun 2003 11:22:19 +0200


Martin v. L=F6wis wrote:
> "M.-A. Lemburg" <mal@lemburg.com> writes:
>=20
>=20
>>Why is that ? The proposed APIs will work just like their
>>counterparts for the internal Unicode/string conversion which
>>have proven to quiet down discussions about choosing ASCII
>>as default encoding. I expect the same to happen for the
>>Python source code encoding default.
>=20
>=20
> It just occurred to me that these people can put
>=20
> import warnings
> warnings.filterwarnings("ignore", ".*pep-0263", DeprecationWarning)
>=20
> into site.py to achieve nearly the same effect that they would get
> with sys.setsourceencoding.

I know, but that trick only works in Python 2.3. In Python 2.4 they
would get a SyntaxError and their scripts would simply fail to load.

> People are probably concerned about the flood of warnings, and they
> want to silence them, so that everything continues to work as it did
> before. Ignoring those warnings appears to be the right solution,
> then.

If they are only concerned about the warnings in 2.3, yes,...

> If they want to make use of the new features (i.e. non-ASCII in
> Unicode literals), they still need to put an encoding declaration into
> the file. However they are probably willing to do that, as they are
> editing the file, anyway.

... but some of them are also worried about raising the bar
teaching Python to newbies. They don't want to start the
Python course explaining advanced features like source code
encodings.

--=20
Marc-Andre Lemburg
eGenix.com

Professional Python Software directly from the Source  (#1, Jun 23 2003)
 >>> Python/Zope Products & Consulting ...         http://www.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________
EuroPython 2003, Charleroi, Belgium:                        one day left