Serhiy Storchaka added the comment: For general use I think it would be more useful to make pow() supporting fractions (using as_integer_ration()).
>>> math.pow(1000, fractions.Fraction(2, 3)) 100.0 >>> math.pow(100000, decimal.Decimal('0.4')) 100.0 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27353> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com