From 84b7ec7b379bc7a41aa120e446f045c07954ec63 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 2 Sep 2013 20:46:51 +0200 Subject: [PATCH] update __slots__ for Option/BaseOption --- tiramisu/option.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tiramisu/option.py b/tiramisu/option.py index f606536..67b2fa5 100644 --- a/tiramisu/option.py +++ b/tiramisu/option.py @@ -96,7 +96,9 @@ class BaseOption(BaseInformation): in options that have to be set only once, it is of course done in the __setattr__ method """ - __slots__ = ('_readonly', '_state_consistencies', '_state_requires') + __slots__ = ('_name', '_requires', '_properties', '_readonly', + '_consistencies', '_calc_properties', '_state_consistencies', + '_state_requires') def __init__(self, name, doc, requires, properties): if not valid_name(name): @@ -230,10 +232,8 @@ class Option(BaseOption): Reminder: an Option object is **not** a container for the value """ - __slots__ = ('_name', '_requires', '_multi', '_validator', - '_default_multi', '_default', '_properties', '_callback', - '_multitype', '_master_slaves', '_consistencies', - '_calc_properties', '__weakref__') + __slots__ = ('_multi', '_validator', '_default_multi', '_default', '_callback', + '_multitype', '_master_slaves', '__weakref__') _empty = '' def __init__(self, name, doc, default=None, default_multi=None,