[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: Re: [PyKDE] camel/under style
From:       "Patrick Stinson" <patrickkidd.lists () gmail ! com>
Date:       2006-10-21 19:46:28
Message-ID: 664bf2b80610211246q5de54bc3kfa44d0740d12c3bb () mail ! gmail ! com
[Download RAW message or body]

that's what I do as well. the line is blurred between modue-level
methods and class methods, because in python they are all just
methods... But, I really like the idea of striving for single-word
method names and therefore avoiding camel case or
underscore-seperation at all. Funny, All of my concept of 'style'
disappeared when I started this commercial C++ project...

On 10/21/06, Torsten Marek <shlomme@gmx.net> wrote:
> -----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@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-----
>
> _______________________________________________
> PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
> http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
>


-- 
Patrick Kidd Stinson
http://www.patrickkidd.com/
http://pkaudio.sourceforge.net/
http://pksampler.sourceforge.net/

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic