[Distutils] Distributes from pkg_resources.resource_string returns bytes under Python 3

Lennart Regebro regebro at gmail.com
Sun Mar 13 14:52:27 CET 2011


Distributes from pkg_resources.resource_string returns bytes under
Python 3, which is pretty surprising. :-)
Should we fix this? That would mean that we need to introduce a
pkg_resources.resource_bytes that returns bytes under Python 3 and str
(again) in Python 2. And probably we also need a
pkg_resources.resource_unicode that returns Unicode under Python 2 and
str under Python 3...


Opinions on that?


More information about the Distutils-SIG mailing list