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 jyasskin
Recipients Somelauw, benjamin.peterson, jyasskin, mark.dickinson, rhettinger
Date 2009-01-20.19:55:17
SpamBayes Score 3.966419e-09
Marked as misclassified No
Message-id <1232481318.65.0.335609080372.issue4998@psf.upfronthosting.co.za>
In-reply-to
Content
Rational has default definitions for some of its methods and properties.
If Fraction inherits from Rational, it gets those definitions
implicitly. If it's registered with Rational, it has to define them itself.

I don't know that much about __slots__ (or I'd have known that just
defining it on Fraction wouldn't work :-/) but if it doesn't prevent
subclasses from having dicts, it seems like a good idea to add an empty
__slots__ to most classes in the ABC hierarchy, and definitely the
numeric ones.
History
Date User Action Args
2009-01-20 19:55:18jyasskinsetrecipients: + jyasskin, rhettinger, mark.dickinson, benjamin.peterson, Somelauw
2009-01-20 19:55:18jyasskinsetmessageid: <1232481318.65.0.335609080372.issue4998@psf.upfronthosting.co.za>
2009-01-20 19:55:17jyasskinlinkissue4998 messages
2009-01-20 19:55:17jyasskincreate