Sep-28-2020, 02:56 PM
I'm somewhat new to Python. I see there is a convention to use CamelCase for classes, UPPER_CASE for constants, and snake_case for pretty much everything else. But I see many names, even in the standard library, that just run words together. For example, Python 3.9 adds the string methods removeprefix and removesuffix. Is there some guideline that leads to that convention? Seems like it would be hard to guess when underscores will be used and when they will be omitted.