Re: [pypy-dev] CPython compatibility in the fractions module

2014-04-10 Thread Armin Rigo
Hi Naftali, On 10 April 2014 21:05, Naftali Harris wrote: > I'd like to report a compatibility issue between CPython and PyPy in the > fractions module. In short, CPython coerces Fraction objects into int's in > strings formatted with "%d", but PyPy throws a TypeError. It seems that "%d" % x

[pypy-dev] CPython compatibility in the fractions module

2014-04-10 Thread Naftali Harris
Hi everyone, I'd like to report a compatibility issue between CPython and PyPy in the fractions module. In short, CPython coerces Fraction objects into int's in strings formatted with "%d", but PyPy throws a TypeError. Here's an example reproducing this: ~/Downloads/pypy-2.2.1-linux64/bin$ ./py