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 benjamin.peterson
Recipients benjamin.peterson, pitrou
Date 2011-08-16.23:29:44
SpamBayes Score 2.2799322e-06
Marked as misclassified No
Message-id <1313537385.33.0.73710514572.issue12766@psf.upfronthosting.co.za>
In-reply-to
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.
History
Date User Action Args
2011-08-16 23:29:45benjamin.petersonsetrecipients: + benjamin.peterson, pitrou
2011-08-16 23:29:45benjamin.petersonsetmessageid: <1313537385.33.0.73710514572.issue12766@psf.upfronthosting.co.za>
2011-08-16 23:29:44benjamin.petersonlinkissue12766 messages
2011-08-16 23:29:44benjamin.petersoncreate