Author belopolsky
Recipients belopolsky, methane, ncoghlan, serhiy.storchaka
Date 2017-01-05.19:17:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483643855.26.0.735993882341.issue29159@psf.upfronthosting.co.za>
In-reply-to
Content
@inada.naoki

Sorry, I still don't understand the role of OverflowError.

With respect to my earlier suggestion that buffer protocol should have priority over __index__, note that the documentation implies the same order:

>>> help(bytes)

class bytes(object)
 |  bytes(iterable_of_ints) -> bytes
 |  bytes(string, encoding[, errors]) -> bytes
 |  bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer
 |  bytes(int) -> bytes object of size given by the parameter initialized with null bytes
 |  bytes() -> empty bytes object
 |
 |  Construct an immutable array of bytes from:
 |    - an iterable yielding integers in range(256)
 |    - a text string encoded using the specified encoding
 |    - any object implementing the buffer API.
 |    - an integer
..
History
Date User Action Args
2017-01-05 19:17:35belopolskysetrecipients: + belopolsky, ncoghlan, methane, serhiy.storchaka
2017-01-05 19:17:35belopolskysetmessageid: <1483643855.26.0.735993882341.issue29159@psf.upfronthosting.co.za>
2017-01-05 19:17:35belopolskylinkissue29159 messages
2017-01-05 19:17:35belopolskycreate