[PyKDE] camel/under style

Torsten Marek shlomme at gmx.net
Sat Oct 21 18:19:40 BST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Patrick Stinson schrieb:
> pythonic purists use underscores and lowercase as described in the
> python style guide, qt/C++ people use camel casing to remain
> consistent with Qt.
> 
> What do PyQt people use?
> 
> 
Hi,

for classes, "public" methods and functions, I use camel case. For everything
else (internal functions/apis, variable and arg names), I sometimes use
lowercase/underscore. I used to have camel-casing everywhere, but somehow I
switched over. Maybe it was because I saw all these underscores in other
people's Python code. Still, class or method names with underscores would look
unbelievable odd to me...

best,

Torsten
- --
Torsten Marek <shlomme at gmx.net>
ID: A244C858 -- FP: 1902 0002 5DFC 856B F146  894C 7CC5 451E A244 C858
Keyserver: subkeys.pgp.net

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFOlasfMVFHqJEyFgRAkZjAJ9DYWASvmjxFxMGov/NuPiLg8K5CgCfX+jU
uaP0eoaDKGVHucoGtmb+kG8=
=vxTs
-----END PGP SIGNATURE-----




More information about the PyQt mailing list