overriding methods - two questions

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Sat Nov 17 11:46:37 CET 2007

On Sat, 17 Nov 2007 12:19:07 +0200, Donn Ingle wrote:

>> BTW, it is a convention for method names to be lower case, and classes
>> to be Title case. Seeing something like obj.Draw, most(?) Python
>> developers will expect that the Draw attribute of obj is itself a
>> class:
> Thanks, I'm pretty damn unorganized in that way. Is it convention to do:
> class BigLetterAndCamels():
>  def smallLetterAndCamels()
> or
>  def smallletterandnocamels()
> ?

See the PEP and Guido's essay for recommended conventions:



More information about the Python-list mailing list