Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CamelCase Conversions
#1
i need functions that can convert strings to/from CamelCase and underscore_style. i am planning to code these functions unless someone can show me that they already exist.

"MyFunctionName" <-> "my_function_name"

it needs to support Unicode in Python3, to the extent that .upper() and/or .lower() do. i have no need for it to work in Python2. i am looking for references to pre-existing implementations (i can only use what comes with Python, not what needs something to be installed), not for someone to code it.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
CamelCase Conversions - by Skaperen - Apr-18-2019, 12:57 AM
RE: CamelCase Conversions - by perfringo - Apr-18-2019, 07:58 AM
RE: CamelCase Conversions - by snippsat - Apr-18-2019, 10:01 AM
RE: CamelCase Conversions - by perfringo - Apr-18-2019, 10:12 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020