This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients benjamin.peterson, pitrou
Date 2011-08-16.23:32:05
SpamBayes Score 3.3011966e-07
Marked as misclassified No
Message-id <1313537397.3531.5.camel@localhost.localdomain>
In-reply-to <1313537385.33.0.73710514572.issue12766@psf.upfronthosting.co.za>
Content
> I'm afraid that's not (easily) possible. Using __slots__ implicitly
> gives classes attributes, so what you are seeing is the effect of
> toying with that. It's not really possible to pretend there are
> different attributes on the class than the descriptors. We can:
> 
> - Silently override slot descrs with attributes (as currently done).
> - Warn or error out on conflicts.
> - Just override other class attributes with the descrs.

Erroring on conflicts would seem reasonable. If that threatens to break
existing code, at least improving the current error message would be
nice.
History
Date User Action Args
2011-08-16 23:32:05pitrousetrecipients: + pitrou, benjamin.peterson
2011-08-16 23:32:05pitroulinkissue12766 messages
2011-08-16 23:32:05pitroucreate