Mizipzor:
> To me, the main.py code above looks very ugly.

With time, and looking at other people code, you will learn what
pythonic means, in the meantime you can remember that into your Python
code if you find something that makes you write too much code, or you
see something "ugly", then that's probably the wrong way to write it.
The language is designed in a way that often the simpler and shorter
things are the right ones. There are exceptions to that rule (like
avoiding to use import *, using xrange instead of range, etc), but
it's a stating point.

Bye and welcome here,
bearophile

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to