predefined empty base class ??

I

iwl

Hi,

is there an predefined empty base class
which I can instanziate to have an
container i can copy attributes in?
 
D

Diez B. Roggisch

is there an predefined empty base class
which I can instanziate to have an
container i can copy attributes in?

No, but you can always do

class Foo(object):
pass

foo = Foo()

foo.attribute = value

Diez
 
G

Gabriel Genellina

At said:
I think that's a two-liner...

... 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,135
Latest member
VeronaShap
Top