Python 3 __bytes__ method

Daniel da Silva var.mail.daniel at gmail.com
Sat Jan 11 19:53:06 EST 2014


Where did you read this? I can't find any documentation about __bytes__ on
google.

Regards,
Daniel


On Sat, Jan 11, 2014 at 7:24 PM, Ethan Furman <ethan at stoneleaf.us> wrote:

> Python 3 has a new method, __bytes__.  The docs say: Called by bytes() to
> compute a byte-string representation of an object. This should return a
> bytes object.
>
> I must admit I'm not entirely clear how this should be used.  Is anyone
> using this now?  If so, how?
>
> --
> ~Ethan~
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20140111/20e8885e/attachment.html>


More information about the Python-list mailing list