[Python-Dev] magic method bytes (original) (raw)
R. David Murray rdmurray at bitdance.com
Tue Jan 14 16:58:49 CET 2014
- Previous message: [Python-Dev] magic method __bytes__
- Next message: [Python-Dev] magic method __bytes__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, 13 Jan 2014 17:38:38 -0800, Ethan Furman <ethan at stoneleaf.us> wrote:
Has anyone actually used bytes yet? What for?
bytes(email.message.Message()) returns the message object serialized to "wire format".
--David
PS: I've always thought of "wire format" as including files...a file is a just a "wire" with an indefinite destination and transmission time....
- Previous message: [Python-Dev] magic method __bytes__
- Next message: [Python-Dev] magic method __bytes__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]