Re: [Python-3000] Implementing Abstract Interface for Numbers

2007-09-20 Thread Thomas Wouters
On 9/19/07, Rob Crowther <[EMAIL PROTECTED]> wrote: > > This is the documentation for PyNumberMethods right now. > > PyNumberMethods *tp_as_number; > XXX > > > I've managed to wrap GNU MP floats and add rich comparisons, but there's a > sore lack of documentation on how to implement the Number inte

[Python-3000] Implementing Abstract Interface for Numbers

2007-09-19 Thread Rob Crowther
This is the documentation for PyNumberMethods right now. PyNumberMethods *tp_as_number; XXX I've managed to wrap GNU MP floats and add rich comparisons, but there's a sore lack of documentation on how to implement the Number interface. Given a bit of pointers on where to look, an alpha version o