Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #63734
| Date | 2014-01-11 16:24 -0800 |
|---|---|
| From | Ethan Furman <ethan@stoneleaf.us> |
| Subject | Python 3 __bytes__ method |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5344.1389487577.18130.python-list@python.org> (permalink) |
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~
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll 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