Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #63737

Re: Python 3 __bytes__ method

References <52D1E0CE.5030906@stoneleaf.us>
Date 2014-01-11 19:53 -0500
Subject Re: Python 3 __bytes__ method
From Daniel da Silva <var.mail.daniel@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.5347.1389489890.18130.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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@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
>

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Python 3 __bytes__ method Daniel da Silva <var.mail.daniel@gmail.com> - 2014-01-11 19:53 -0500

csiph-web