Message284767
@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
.. |
|
Date |
User |
Action |
Args |
2017-01-05 19:17:35 | belopolsky | set | recipients:
+ belopolsky, ncoghlan, methane, serhiy.storchaka |
2017-01-05 19:17:35 | belopolsky | set | messageid: <1483643855.26.0.735993882341.issue29159@psf.upfronthosting.co.za> |
2017-01-05 19:17:35 | belopolsky | link | issue29159 messages |
2017-01-05 19:17:35 | belopolsky | create | |
|