Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #29826 > unrolled thread
| Started by | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| First post | 2012-09-23 12:53 -0400 |
| Last post | 2012-09-23 12:53 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Capitalization for variable that holds a class Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-23 12:53 -0400
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2012-09-23 12:53 -0400 |
| Subject | Re: Capitalization for variable that holds a class |
| Message-ID | <mailman.1129.1348419201.27098.python-list@python.org> |
On Sun, 23 Sep 2012 16:48:38 +0100, Joshua Landau
<joshua.landau.ws@gmail.com> declaimed the following in
gmane.comp.python.general:
> Simple question:
>
> [myClass() for myClass in myClasses]
> vs
> [MyClass() for MyClass in myClasses]
>
The recommended naming scheme for Python is that class DEFINITIONS
begin capitalized. Instances, methods/attributes, functions begin
lowercase.
I abstain from the argument about camel-case vs _ (Ada "pretty
printers" automatically capitalize at _, so _ is common in Ada)
class MyClass(object):
def myMethod(self):
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Back to top | Article view | comp.lang.python
csiph-web