Message273008
I can look at enhancing the tests at some stage, but it isn’t a high priority for me.
Regarding translate() with no arguments, it makes sense if you see it as a kind of degenerate case of neither using a translation table, nor any set of bytes to delete:
x.translate() == x.translate(None, b"")
I admit it reads strange and probably isn’t useful. If people dislike it, it might be easiest to just add the keyword support and keep the first parameter as mandatory:
without_nulls = bytes_with_nulls.translate(None, delete=b"\x00") |
|
Date |
User |
Action |
Args |
2016-08-18 01:00:29 | martin.panter | set | recipients:
+ martin.panter, r.david.murray, serhiy.storchaka, xiang.zhang |
2016-08-18 01:00:28 | martin.panter | set | messageid: <1471482028.98.0.695620864739.issue27506@psf.upfronthosting.co.za> |
2016-08-18 01:00:28 | martin.panter | link | issue27506 messages |
2016-08-18 01:00:28 | martin.panter | create | |
|