[issue4998] __slots__ on Fraction is useless

Benjamin Peterson report at bugs.python.org
Mon Jan 19 16:33:36 CET 2009


Benjamin Peterson <benjamin at python.org> added the comment:

The problem is that Fraction inherits from a class without __slots__
(Rationale), so it's useless. I suggest that the __slots__ be removed or
Rationale.register() is used instead of inheritance.

----------
assignee:  -> jyasskin
nosy: +benjamin.peterson, jyasskin
title: fractions are mutable -> __slots__ on Fraction is useless

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4998>
_______________________________________


More information about the Python-bugs-list mailing list