Newbie observations

Peter Otten __peter__ at web.de
Wed Dec 19 06:59:59 EST 2007


MartinRinehart wrote:

> 10 days is not enough. But I don't have any more clarity in my Python
> classes than I did in Java. Just more "self"s.

Watch your classes evolve over the next weeks. They will get smaller,
with less state and fewer methods with less code. Occasionally you will use
a function or generator instead of a class, an inlined expression where
you used to write a custom function. You'll ditch code as you
discover that the standard library already provides a more general
way to achieve what you wanted.

If you don't share the experience sketched above you are likely moving in
the wrong direction.

Peter



More information about the Python-list mailing list