[issue27506] make bytes/bytearray deletechars a keyword argument named delete

2016-07-13 Thread Xiang Zhang

Xiang Zhang added the comment:

Hmm, David, that may be not quite right. Users only reading the doc never know 
it's deletechars not delete. The doc is always delete, though conflicting with 
__doc__.

>>> print(bytes.translate.__doc__)
B.translate(table[, deletechars]) -> bytes
...

I deliberately change deletechars to delete to keep consistent with doc. But 
actually I think using deletechars won't break backwards compatibility too.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27506] make bytes/bytearray deletechars a keyword argument named delete

2016-07-13 Thread R. David Murray

Changes by R. David Murray :


--
title: bytes/bytearray delete acts as keyword argument -> make bytes/bytearray 
deletechars a keyword argument named delete

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com