creating class objects inside methods

Rhodri James rhodri at wildebst.demon.co.uk
Sun Oct 4 14:35:47 CEST 2009


On Sun, 04 Oct 2009 07:14:08 +0100, horos11 <horos11 at gmail.com> wrote:

> Carl,
>
> Thanks for the info, but a couple of points:
>
>     1. it wasn't meant to be production code, simply a way to teach
> python.

Speaking as someone who does teach Python, "Ew, no!"  If you start by
teaching people bad habits, every educator who comes along afterwards
will curse your name.  That includes teaching yourself.

-- 
Rhodri James *-* Wildebeest Herder to the Masses



More information about the Python-list mailing list