@classmethod question

Arnaud Delobelle arnodel at googlemail.com
Thu Apr 24 10:53:19 CEST 2008


Scott SA <pydev at rscorp.ab.ca> writes:

A side note
>     class RecipieClass:

Recipe is a more widespread spelling, I believe.  Moreover it is the
convention in python that only class names are capitalized, so you
don't need to append a 'Class'.

    class Recipe:
        ...
    clafoutis = Recipe('eggs', 'spam')

-- 
Arnaud



More information about the Python-list mailing list