[issue40437] add string.snake function

jeffolsi10 report at bugs.python.org
Wed Apr 29 11:56:50 EDT 2020


jeffolsi10 <yirage2897 at coalamails.com> added the comment:

snake case has very specific definition :
https://en.wikipedia.org/wiki/Snake_case
I expect the function to implement the definition and not something that I or someone else desire.

As for your question about '$' char I could ask the same thing for lower()
The snake case convert only letters and space. It doesn't handle spacial chars. it ignores them.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40437>
_______________________________________


More information about the Python-bugs-list mailing list