On Mon, Sep 20, 2010 at 2:12 PM, Glyph Lefkowitz <glyph at 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 | ncoghlan at gmail.com | Brisbane, Australia
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4