[Python-Dev] Supporting raw bytes data in urllib.parse.* (was Re: Polymorphic best practices)
solipsis at pitrou.net
Tue Sep 21 17:26:51 CEST 2010
On Wed, 22 Sep 2010 00:10:01 +0900
"Stephen J. Turnbull" <stephen at xemacs.org> wrote:
> But I don't know whether the web apps programmers will be satisfied
> with such a minimal API.
Web app programmers will generally go through a framework, which
handles encoding/decoding for them (already so in 2.x).
> And there are a lot of APIs that probably should be considered
> candidates for polymorphic versions (regexp matching and searching,
> for example).
As a matter of fact, the re module APIs are already polymorphic,
all the while disallowing any mixing of bytes and unicode.
More information about the Python-Dev