Classes & Instances

John Machin sjmachin at lexicon.net
Fri Jan 11 05:38:16 EST 2002


"Roman Yakovenko" <romany at actimize.com> wrote in message news:<mailman.1010000523.32431.python-list at python.org>...
> May be this will be helpfull for you
> >>> class Obj:
> 	def Class(self):
> 		return Obj
> 
> 	
> >>> f = Obj()
> >>> f_class = f.Class()
> >>> f_class
> <class   main  .Obj at 0x0092C7D8>

What's wrong with

>>> f_class = f.__class__

???



More information about the Python-list mailing list