Python 3 __bytes__ method

Thomas Rachel nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915 at spamschutz.glglgl.de
Wed Jan 15 07:07:46 EST 2014


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




More information about the Python-list mailing list