[Python-Dev] Symmetry arguments for API expansion

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Mar 13 18:23:47 EDT 2018


Tim Peters wrote:
> An obvious way to extend it is for Fraction() to look for a special
> method too, say "_as_integer_ratio()".

Why not __as_integer_ratio__?

-- 
Greg



More information about the Python-Dev mailing list