method names nounVerb or verbNoun
clp2 at rebertia.com
Fri Feb 5 21:26:38 CET 2010
On Fri, Feb 5, 2010 at 11:53 AM, Wanderer <wanderer at dialup4less.com> wrote:
> Which is the more accepted way to compose method names nounVerb or
> For example voltageGet or getVoltage? getVoltage sounds more normal,
> but voltageGet is more like voltage.Get. I seem to mix them and I
> should probably pick one way and stick with it.
Use properties and just call it `voltage`. Python is not Java ;
explicit getters/setters are unpythonic.
More information about the Python-list