[New-bugs-announce] [issue3753] bytearray incompatible with bytes

Pyry Pakkanen report at bugs.python.org
Mon Sep 1 18:03:43 CEST 2008


New submission from Pyry Pakkanen <frostburn at suomi24.fi>:

I was expecting that the API function PyArg_ParseTuple(args, "y#:foo",
&cp, &size) would accept a bytearray and implicitly convert it to bytes.
Currently it throws the error:
TypeError: foo() argument 1 must be bytes or read-only buffer, not bytearray

----------
messages: 72266
nosy: Frostburn
severity: normal
status: open
title: bytearray incompatible with bytes
type: behavior
versions: Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3753>
_______________________________________


More information about the New-bugs-announce mailing list