Hi everyoen,

say in some module I have defined a class Pen
and I want an alias for the class name, say
Turtle

I can do this:

class Turtle(Pen):
    pass

or simply (after having defined Pen):

Turtle = Pen

Are those two variants different in effect?
Are there pros or cons for one of both
variants?

Regards,
Gregor
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to