This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients chris.jerdonek, docs@python, eric.araujo, ezio.melotti, flox, pitrou, python-dev, r.david.murray, rhettinger, serhiy.storchaka, skrah, terry.reedy
Date 2014-10-05.17:40:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412530856.49.0.29315089778.issue16518@psf.upfronthosting.co.za>
In-reply-to
Content
There are other unfixed messages (may be introduced after 3.3):

>>> b''.join([''])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: sequence item 0: expected bytes, bytearray, or an object with the buffer interface, str found
>>> str(42, 'utf8')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: coercing to str: need bytes, bytearray or buffer-like object, int found
>>> import array; array.array('B').frombytes(array.array('I'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: string/buffer of bytes required.
>>> import socket; print(socket.socket.sendmsg.__doc__)
sendmsg(buffers[, ancdata[, flags[, address]]]) -> count

Send normal and ancillary data to the socket, gathering the
non-ancillary data from a series of buffers and concatenating it into
a single message.  The buffers argument specifies the non-ancillary
data as an iterable of buffer-compatible objects (e.g. bytes objects).
The ancdata argument specifies the ancillary data (control messages)
as an iterable of zero or more tuples (cmsg_level, cmsg_type,
cmsg_data), where cmsg_level and cmsg_type are integers specifying the
protocol level and protocol-specific type respectively, and cmsg_data
is a buffer-compatible object holding the associated data.  The flags
argument defaults to 0 and has the same meaning as for send().  If
address is supplied and not None, it sets a destination address for
the message.  The return value is the number of bytes of non-ancillary
data sent.

And there are several mentions of "buffer-like" or "buffer-compatible" in the documentation.
History
Date User Action Args
2014-10-05 17:40:56serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, terry.reedy, pitrou, ezio.melotti, eric.araujo, r.david.murray, skrah, flox, chris.jerdonek, docs@python, python-dev
2014-10-05 17:40:56serhiy.storchakasetmessageid: <1412530856.49.0.29315089778.issue16518@psf.upfronthosting.co.za>
2014-10-05 17:40:56serhiy.storchakalinkissue16518 messages
2014-10-05 17:40:56serhiy.storchakacreate