Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5612
| References | <4DD2C2A5.3080403@stoneleaf.us> <4DD2D175.30506@aim.com> |
|---|---|
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | 2011-05-17 14:51 -0600 |
| Subject | Re: Python 3.x and bytes |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1713.1305665522.9059.python-list@python.org> (permalink) |
On Tue, May 17, 2011 at 1:50 PM, Corey Richardson <kb1pkl@aim.com> wrote: > - From help(bytes): > | bytes(iterable_of_ints) -> bytes > | bytes(string, encoding[, errors]) -> bytes > | bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer > | bytes(memory_view) -> bytes > > Looks like you're using the fourth when you want the first, possibly? Nope, he's using the fifth form, bytes(int), which is listed in the PEP but not in the help.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python 3.x and bytes Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-17 14:51 -0600
csiph-web