[Python-checkins] r77717 - in python/trunk: Lib/distutils/command/register.py Lib/distutils/command/upload.pyLib/distutils/dist.py Lib/distutils/tests/test_register.py Lib/distutils/tests/test_upload.py Misc/NEWS

Antoine Pitrou solipsis at pitrou.net
Sun Jan 24 23:08:08 CET 2010


> Even if it's not really documented, the
> DistributionMetada class in 2.7 is supposed to hold only utf-8
> strings.

Well, as you say, it's not documented, so the current behaviour serves
as a specification :-)

> Then are then serialized in a file (PKG-INFO) or in a HTTP
> request that is pushed at PyPI.

Shouldn't the encoding step be done when serializing instead?
It's not obvious that all transports would require utf-8.

> But those commands should not be responsible for that,

Why? Dialoguing with PyPI is their job, they know what encoding to use.




More information about the Python-checkins mailing list