On Wed, 20 Jul 2005 14:06:57 GMT,
flupke <[EMAIL PROTECTED]> wrote:

> file class_name.py
> ========================
> class A(object):
>      def __init__(self):
>          print "I'm A"

>      def printclass(self):
>          print "Name ",__name__
>          print "Class ",A.__name__

Why "A.__name__" and not "self.__class__.__name__"?

Regards,
Dan

-- 
Dan Sommers
<http://www.tombstonezero.net/dan/>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to