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

List:       pykde
Subject:    Re: [PyKDE] camel/under style
From:       Kevin Cureton <kevin () bang-splat ! com>
Date:       2006-10-20 5:34:30
Message-ID: C66BCD22-3256-4209-B756-15C28E318831 () bang-splat ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I use lowercase/underscores for everything except class names. Those  
I use mixed case on (it just felt more proper that way).

A nice bonus of coding this way is that I can quickly tell when I am  
calling my code versus a method in Qt or one of the python libraries.

--kev

--
kevin at bang-splat dot com
The tools for managing paradox are still undeveloped. --Kevin Kelly



On Oct 19, 2006, at 1:13 PM, Patrick Stinson wrote:

> 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?
>
>
> -- 
> 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


[Attachment #5 (unknown)]

<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: \
after-white-space; ">I use lowercase/underscores for everything except class names. \
Those I use mixed case on (it just felt more proper that way).<DIV><BR \
class="khtml-block-placeholder"></DIV><DIV>A nice bonus of coding this way is that I \
can quickly tell when I am calling my code versus a method in Qt or one of the python \
libraries.</DIV><DIV><BR \
class="khtml-block-placeholder"></DIV><DIV>--kev</DIV><DIV><BR \
class="khtml-block-placeholder"><DIV><DIV> <SPAN class="Apple-style-span" \
style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); \
font-family: Helvetica; font-size: 11px; font-style: normal; font-variant: normal; \
font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; \
-khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: \
auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: \
0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; \
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: \
11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: \
normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: \
none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: \
2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>--</DIV><DIV>kevin at \
bang-splat dot com</DIV><DIV>The tools for managing paradox are still undeveloped. \
--Kevin Kelly</DIV><DIV><BR class="khtml-block-placeholder"></DIV></SPAN><BR \
class="Apple-interchange-newline"></SPAN> </DIV><BR><DIV><DIV>On Oct 19, 2006, at \
1:13 PM, Patrick Stinson wrote:</DIV><BR \
class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: \
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">pythonic purists use \
underscores and lowercase as described in the</DIV><DIV style="margin-top: 0px; \
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">python style guide, qt/C++ \
people use camel casing to remain</DIV><DIV style="margin-top: 0px; margin-right: \
0px; margin-bottom: 0px; margin-left: 0px; ">consistent with Qt.</DIV><DIV \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; \
min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px; ">What do PyQt people use?</DIV><DIV \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; \
min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; \
">--<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; \
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Patrick Kidd \
Stinson</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; "><A \
href="http://www.patrickkidd.com">http://www.patrickkidd.com</A>/</DIV><DIV \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A \
href="http://pkaudio.sourceforge.net">http://pkaudio.sourceforge.net</A>/</DIV><DIV \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A \
href="http://pksampler.sourceforge.net">http://pksampler.sourceforge.net</A>/</DIV><DIV \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; \
min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px; \
">_______________________________________________</DIV><DIV style="margin-top: 0px; \
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">PyKDE mailing list<SPAN \
class="Apple-converted-space">    </SPAN><A \
href="mailto:PyKDE@mats.imk.fraunhofer.de">PyKDE@mats.imk.fraunhofer.de</A></DIV><DIV \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A \
href="http://mats.imk.fraunhofer.de/mailman/listinfo/pykde">http://mats.imk.fraunhofer.de/mailman/listinfo/pykde</A></DIV> \
</BLOCKQUOTE></DIV><BR></DIV></DIV></BODY></HTML>



_______________________________________________
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