[Tutor] Style query

dave s pythontut at pusspaws.net
Sun Aug 13 13:33:00 CEST 2006


As my programs become more complex I am aware of the need to adopt a 
consistent style. To differentiate between classes, instances & objects I use 
capital letters for example:

A class uses 'MyClass'
A class instance 'myInstance'
A def uses 'myDef'
An object 'myobject' or 'my_object' etc 

Can any of you more experienced programmers outline your style or critique my 
way of doing this ? Tell me if you have a different system - I am trying to 
get myself into good habits :)

Is there a Python style guide anywhere ?

Cheers

Dave


PS

I have started using packages, so much easier and more flexable than long 
PYTHONPATH declarations and am now proramming with QT :).


More information about the Tutor mailing list