[New-bugs-announce] [issue15958] bytes.join() should allow arbitrary buffer objects

Antoine Pitrou report at bugs.python.org
Mon Sep 17 20:03:30 CEST 2012


New submission from Antoine Pitrou:

This should ideally succeed:

>>> b''.join([memoryview(b'foo'), b'bar'])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: sequence item 0: expected bytes, memoryview found

(ditto for bytearray.join)

----------
components: Interpreter Core
messages: 170618
nosy: pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: bytes.join() should allow arbitrary buffer objects
type: enhancement
versions: Python 3.4

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


More information about the New-bugs-announce mailing list