[Python-Dev] Indexing builtin sequences with objects which supply __int__

Martin v. Loewis martin@v.loewis.de
21 Jun 2002 10:36:14 +0200


Todd Miller <jmiller@stsci.edu> writes:

> That makes sense.    What if we specifically excluded Float objects
> from the conversion?   Are there any types that need to be excluded?
> If there's a chance of getting a patch for this accepted,  STSCI is
> willing to do the work.

Perhaps an __index__ conversion could work?

Regards,
Martin