Recently I have started working on machine learning with Python, however I'm very new to this language. I know that "Readability counts", so I have been trying to get myself familiar with the
PEP 8 coding conventions. I know where to use
joined_lower
, StudlyCaps
and ALL_CAPS
naming conventions, however I didn't quite get in which situations I can use the camelCase
.
According to the PEP 8 guide:
mixedCase is allowed only in contexts where that’s already the prevailing style (e.g. threading.py), to retain backwards compatibility.
but this statement isn't saying much to me. What does it mean by "prevailing style"? What could be an applicable case that would require this backward compatibility?
I couldn't find a single example on the web that used naming style to conform to pre-existing conventions.