In <[EMAIL PROTECTED]>, Guyon Morée
wrote:

> I'm using simple classes as a container of named values and I'm
> instantiating a lot of them in a very short time.
> 
> i was wondering if there is any benefit in using dicts instead from a
> performance/memory usage point of view?

If you really have a memory problem read the documentation about
`__slots__`.  But I would only consider this if `a lot of` is several 100k
or millions of objects and the memory consumption really is a problem.

Ciao,
        Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to