homepage

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 strangefeatures
Recipients georg.brandl, strangefeatures
Date 2008年07月09日.07:22:55
SpamBayes Score 0.00094963086
Marked as misclassified No
Message-id <1215588179.05.0.980604972121.issue3323@psf.upfronthosting.co.za>
In-reply-to
Content
Suggest clarification on behaviour of the __slots__ attribute when
inheriting from classes that don't have __slots__ defined. Obviously the
superclass automatically creates __dict__, and it seems the subclass
inherits this. I presume this is expected behaviour, but I think it
would be worth clarifying in the 'Notes on using __slots__' section -
perhaps add something like:
"If you define __slots__ on a subclass when its superclass doesn't have
__slots__ defined, the superclass will automatically create a __dict__
instance which will be inherited by the subclass (as will other instance
attributes). Defining __slots__ on the subclass doesn't block this
inheritance."
History
Date User Action Args
2008年07月09日 07:22:59strangefeaturessetspambayes_score: 0.000949631 -> 0.00094963086
recipients: + strangefeatures, georg.brandl
2008年07月09日 07:22:59strangefeaturessetspambayes_score: 0.000949631 -> 0.000949631
messageid: <1215588179.05.0.980604972121.issue3323@psf.upfronthosting.co.za>
2008年07月09日 07:22:57strangefeatureslinkissue3323 messages
2008年07月09日 07:22:56strangefeaturescreate

AltStyle によって変換されたページ (->オリジナル) /