[issue40437] add string.snake function
Eric V. Smith
report at bugs.python.org
Wed Apr 29 10:08:17 EDT 2020
Eric V. Smith <eric at trueblade.com> added the comment:
What would be the full specification of this? If you want to use it for column names, what happens if the string starts with a $, or some character that can't be used by your particular database?
I'm skeptical that this could be general purpose enough to be used in a wide range of situations, without having a dozen or so parameters to it.
I'm thinking of things like:
- ascii-only?
- result must be a valid python identifier
- certain special characters not allowed anywhere
- certain other special characters not allowed at the start of the string
etc.
We'd need a full specification before deciding to accept this.
----------
nosy: +eric.smith
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40437>
_______________________________________
More information about the Python-bugs-list
mailing list