Message128739
| Author |
vstinner |
| Recipients |
docs@python, vstinner |
| Date |
2011年02月17日.16:46:43 |
| SpamBayes Score |
0.008545269 |
| Marked as misclassified |
No |
| Message-id |
<1297961204.12.0.402679870877.issue11231@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
There are 5 different usages of the bytes() constructor:
1) bytes(iterable_of_ints) -> bytes
2) bytes(string, encoding[, errors]) -> bytes
3) bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer
4) bytes(memory_view) -> bytes
5) bytes(int) <=> b'0円' * size
The docstring describes the four first usages, the documentation only (3).
http://docs.python.org/dev/library/functions.html#bytes
Note: bytes(3) accepts 2 other arguments, but I don't think that they are used: bytes(3, 'unused encoding', 'unused errors'). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年02月17日 16:46:44 | vstinner | set | recipients:
+ vstinner, docs@python |
| 2011年02月17日 16:46:44 | vstinner | set | messageid: <1297961204.12.0.402679870877.issue11231@psf.upfronthosting.co.za> |
| 2011年02月17日 16:46:43 | vstinner | link | issue11231 messages |
| 2011年02月17日 16:46:43 | vstinner | create |
|