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


Groups > comp.lang.python > #63973

Re: Python 3 __bytes__ method

From Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de>
Newsgroups comp.lang.python
Subject Re: Python 3 __bytes__ method
Date 2014-01-15 13:07 +0100
Organization A not so newly installed InterNetNews server
Message-ID <lb5tmn$heh$1@r01.glglgl.de> (permalink)
References <mailman.5344.1389487577.18130.python-list@python.org>

Show all headers | View raw


Am 12.01.2014 01:24 schrieb Ethan Furman:

> I must admit I'm not entirely clear how this should be used.  Is anyone
> using this now?  If so, how?

I am not, as I currently am using Py2, but if I would, I would do it e. 
g. for serialization of objects in order to send them over the line or 
to save them into a file. IOW, the same purpose as we havd on __str__ in 
Py2.


Thomas

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


Thread

Python 3 __bytes__ method Ethan Furman <ethan@stoneleaf.us> - 2014-01-11 16:24 -0800
  Re: Python 3 __bytes__ method Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2014-01-15 13:07 +0100

csiph-web