Author vstinner
Recipients hroncok, mark.dickinson, vstinner
Date 2020-02-06.14:19:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I managed to test my PR with numpy:

$ env/bin/python 
>>> import fractions
>>> import numpy
>>> f=fractions.Fraction(numpy.int64(1*3), numpy.int64(2*3))
>>> f
Fraction(1, 2)
>>> type(f.numerator)
<class 'numpy.int64'>
>>> type(f.denominator)
<class 'numpy.int64'>

So it works as expected: numerator and denominator have the expected type, and there is no exception ;-)

I used the following commands to get numpy in a Python 3.9 virtual environment:

./python -m venv env
env/bin/python -m pip install --install-option="--no-cython-compile"
curl -O
unzip -d .
cd numpy-1.18.1/
../env/bin/python install
Date User Action Args
2020-02-06 14:19:57vstinnersetrecipients: + vstinner, mark.dickinson, hroncok
2020-02-06 14:19:57vstinnersetmessageid: <>
2020-02-06 14:19:57vstinnerlinkissue39350 messages
2020-02-06 14:19:56vstinnercreate