[Python-ideas] URLs/URIs + pathlib.Path + literal syntax = ?
Random832
random832 at fastmail.com
Tue Mar 29 12:49:27 EDT 2016
On Tue, Mar 29, 2016, at 12:44, Koos Zevenhoven wrote:
> > Although read_text might come in handy as an alias for "GET". :)
> > That is when you don't care if you read locally or remotely. So, I can see
> > room for this.
>
> Yes :).
What about a read_json? Should the underlying request set Accept types
accordingly (read_json demands text/json or application/json, read_text
demands text/plain? what if I want HTML? Need another method for that?)
What if content-transfer-encoding isn't set, or the data contains bytes
that aren't valid for it?
More information about the Python-ideas
mailing list