Message148917
> Personally I'm not at all sure why str takes encoding and errors
> arguments (I never use them).
Probably because the unicode type also did in 2.x.
And also because it makes it compatible with arbitrary buffer objects:
>>> str(memoryview(b"foo"), "ascii")
'foo' |
|
| Date |
User |
Action |
Args |
| 2011-12-06 13:14:32 | pitrou | set | recipients:
+ pitrou, r.david.murray, docs@python, Guillaume.Bouchard |
| 2011-12-06 13:14:32 | pitrou | set | messageid: <[email protected]> |
| 2011-12-06 13:14:31 | pitrou | link | issue13538 messages |
| 2011-12-06 13:14:31 | pitrou | create | |
|