[Python-ideas] Add additional special method lookups to math module

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Nov 10 04:11:23 CET 2011


On 10/11/11 15:17, Jim Jewett wrote:

> And frankly, "import funkymathtype.math as math" probably is the right
> answer, in the short run, but that is still pretty fragile against
> other modules having imported math themselves.

The monkeypatching idea doesn't entirely avoid that problem either,
since you would have to make sure the module doing the monkeypatching
was imported before any other module imported stuff from math.

-- 
Greg



More information about the Python-ideas mailing list