Eric V. Smith <e...@trueblade.com> added the comment:

> One can also argue why python need to maintain str conversion at all if we 
> have such good extensions in different libs.

Back when we were starting python 3.x there was discussion or removing these 
from str and bytes, but it was decided that breaking existing code just wasn't 
worth it. You can imagine how rarely b"Some String".swapcase() is used.

As I said, if we were designing the language from scratch today I doubt we 
would include swapcase, title, and capitalize, at least. I don't think using 
their existence as an argument to add more methods like them is very convincing.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40437>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to