On Mon, Sep 20, 2010 at 2:12 PM, Glyph Lefkowitz
<gl...@twistedmatrix.com> wrote:
> While I don't like the email6 precedent as such (that there would be
> different parsed objects, based on whether you started parsing with bytes or
> with strings), the idea that when you are working directly with bytes or
> text, you should have to know which one you have, is a good one.  +1 for
> keeping the APIs separate with 'urlsplitb' etc.

It's primarily the "am I dealing with bytes" or "am I dealing with
text" precedent that I'm copying. That said, I'm not personally
opposed to that distinction propagating to higher level data
structures when it makes sense (e.g., to some degree it will propagate
naturally in urllib.parse, since the tuples of URL fragments can be
seen as higher level data structures analogous to the data structures
in email6).

Cheers,
Nick.

-- 
Nick Coghlan   |   ncogh...@gmail.com   |   Brisbane, Australia
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to