Snake_case or CamelCase

Hey guys, regards!
I’ve become new with python language and I have one doubt about “cases”:
Have I a technical problem I wrote variables with camelCase em PyQt?

I wanna share and publish my plugin (Layers with Blending Modes - #20 by Rafael_Teixeira) and I thought to rewrite the variables that use camelCase to snake_case in my code. Do I need it?

That’s it,
good week for everyone

snake_case is was Python PEP recommends and Camel/PascalCase is what Qt uses. It’s mostly because the bindings are made from the underling C-Code with the same naming convention, to keep naming consistent. Its totally fine to have everything Qt related in their style and keep the rest, your code that is pure Python in Pythons style. Everyone who as worked with Python and Qt will understand and not bat an eye.

1 Like

Thanks Takiro! I’m feels more peaceful

Snake case is the only way

1 Like

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.