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


Groups > comp.lang.python > #5612 > unrolled thread

Re: Python 3.x and bytes

Started byIan Kelly <ian.g.kelly@gmail.com>
First post2011-05-17 14:51 -0600
Last post2011-05-17 14:51 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Python 3.x and bytes Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-17 14:51 -0600

#5612 — Re: Python 3.x and bytes

FromIan Kelly <ian.g.kelly@gmail.com>
Date2011-05-17 14:51 -0600
SubjectRe: Python 3.x and bytes
Message-ID<mailman.1713.1305665522.9059.python-list@python.org>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web