A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-January/131518.html below:

[Python-Dev] magic method __bytes__

[Python-Dev] magic method __bytes__ [Python-Dev] magic method __bytes__R. David Murray rdmurray at bitdance.com
Tue Jan 14 16:58:49 CET 2014
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....
More information about the Python-Dev mailing list

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