__slot__: what is it good for?
James Mills
prologic at shortcircuit.net.au
Mon Jun 21 10:43:46 EDT 2010
On Tue, Jun 22, 2010 at 12:27 AM, Alexander Eisenhuth
<newsuser at stacom-software.de> wrote:
> Hello out there,
>
> - what is the reason, that __slots__ are introduced in python?
>
> - I want to use slots to define a class where no attributes are added at
> runtime. Is that a good idea to use slots for that?
Here is the relevant documentation:'
http://docs.python.org/reference/datamodel.html#slots
--
--
-- "Problems are solved by method"
More information about the Python-list
mailing list