New submission from Pyry Pakkanen <[EMAIL PROTECTED]>:

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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3753>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to