On 1/17/06, Guido van Rossum <[EMAIL PROTECTED]> wrote:
> On 1/17/06, Jim Jewett <[EMAIL PROTECTED]> wrote:
> > Guido wrote:
> >
> > > more important to implement __index__() in Python 2.5.
> > > This behaves like __int__() for integral types, but is not
> > > defined for float or Decimal.
> >
> >
On 1/17/06, Jim Jewett <[EMAIL PROTECTED]> wrote:
> Guido wrote:
>
> > more important to implement __index__() in Python 2.5.
> > This behaves like __int__() for integral types, but is not
> > defined for float or Decimal.
>
> Why not for Decimal, or even float? I would not be surprised
> if 10.79
Guido wrote:
> more important to implement __index__() in Python 2.5.
> This behaves like __int__() for integral types, but is not
> defined for float or Decimal.
Why not for Decimal, or even float? I would not be surprised
if 10.798 failed, but I would expect 1000D to work.
If indexing worked