[Python-Dev] Symmetry arguments for API expansion

Tim Peters tim.peters at gmail.com
Tue Mar 13 18:29:19 EDT 2018


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

[Greg Ewing]
> Why not __as_integer_ratio__?

Because. at this point, that would be beating a dead horse ;-)


More information about the Python-Dev mailing list