[Tutor] 'module' object has no attribute (setting a class attribute)

Emile van Sebille emile at fenx.com
Sat Oct 16 22:19:39 CEST 2010

On 10/16/2010 8:35 AM Tim Johnson said...
> * Dave Angel<davea at ieee.org>  [101016 03:45]:
>> 1) The code is correct.  But it'd be much clearer if you followed
>> conventions and named your class with a leading uppercase.  So the
>> module would be called tmpl, and the class would be called Tmpl.
>   <blush>  I didn't know there was such a convention. Serves me right
>   for being self-taught and self-employed</blush>

Pep 8 is the generally accepted style guide.


Although there are few recommendations I don't follow, it's good to 
write in the style most everyone else strives for.


More information about the Tutor mailing list