New submission from Raymond Hettinger <>:

Goal:  make int() more interoperable with float by making a float/Decimal 
method also available on ints.  This will let mypy treat ints as a subtype of 


Open question:  Is this also desired for fractions.Fraction and 

assignee: Nofar Schnider
components: Library (Lib)
messages: 313780
nosy: Nofar Schnider, gvanrossum, rhettinger
priority: normal
severity: normal
status: open
title: Add as_integer_ratio() to int() objects
type: enhancement
versions: Python 3.8

Python tracker <>
Python-bugs-list mailing list

Reply via email to