I was just starting to use Python, and I was thinking about which notation to use. I read the PEP 8 notation guide for Python, and I agree with most things there, except for function names (which I prefer in the mixedCase style).
In C ++, I use a modified version of the Hungarian notation, in which I do not indicate the type information, but only the scope of the variable (for example, lVariable for a local variable and mVariable for a member variable of a class, g for global, s for static, for function input and output for function output.)
I don’t know if this notation style has a name, but I was wondering if I should use this notation style in Python. I am not very familiar with Python, so you guys / girls can see problems that I still cannot imagine.
I’m also interested to know what you think about it in general :) Some people may say that the code makes it less readable, but I'm used to it, and code written without these labels is code that is less readable for me.
source
share