Eric V. Smith <e...@trueblade.com> added the comment: Your patch would break the usual and useful behavior of x == eval(repr(x))
>>> f = Fraction(1,2) >>> repr(f) 'Fraction(1, 2)' >>> eval(repr(f)) Fraction(1, 2) >>> f == eval(repr(f)) True Plus, I'm sure there's working code that would break as a result of this. I'd suggest having a utility function that provides the functionality that you're after. ---------- nosy: +eric.smith _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33402> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com