Number methods

Nick Maclaren nmm1 at cus.cam.ac.uk
Wed Jan 17 09:24:53 EST 2007


I can't find any description of these.  Most are obvious, but some
are not.  Note that this is from the point of view of IMPLEMENTING
them, not USING them.  Specifically:

Does Python use classic division (nb_divide) and inversion (nb_invert)
or are they entirely historical?  Note that I can very easily provide
the latter.

Is there any documentation on the coercion function (nb_coerce)?  It
seems to have unusual properties.

Thanks for any hints.


Regards,
Nick Maclaren.



More information about the Python-list mailing list