predefined empty base class ??

Gabriel Genellina gagsl-py at yahoo.com.ar
Wed Jan 17 16:55:52 EST 2007


At Wednesday 17/1/2007 15:34, Dennis Lee Bieber wrote:

> > is there an predefined empty base class
> > which I can instanziate to have an
> > container i can copy attributes in?
>
>         I think that's a two-liner...
>
> >>> class EmptyBase(object):
>...     pass

Do you want a one liner?

class EmptyBase(object): pass

:)


-- 
Gabriel Genellina
Softlab SRL 


	

	
		
__________________________________________________ 
Preguntá. Respondé. Descubrí. 
Todo lo que querías saber, y lo que ni imaginabas, 
está en Yahoo! Respuestas (Beta). 
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas 




More information about the Python-list mailing list