Message284767
| 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: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 |
|