This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients eric.smith, ethan.furman, gvanrossum, mark.dickinson, pitrou, rhettinger, serhiy.storchaka, skrah, vstinner
Date 2013-12-16.15:49:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20131216154859.GA10578@sleipnir.bytereef.org>
In-reply-to <1387208530.39.0.478755317431.issue19995@psf.upfronthosting.co.za>
Content
Ethan Furman <report@bugs.python.org> wrote:
> The current meaning is unfortunate in that it is possible to want a type that
> can be used as an index or slice but that is still not a number, and in fact
> won't be used as a number in any scenario _except_ bin(), hex(), and oct().

memoryview, struct and probably also array.array accept __index__.
History
Date User Action Args
2013-12-16 15:49:00skrahsetrecipients: + skrah, gvanrossum, rhettinger, mark.dickinson, pitrou, vstinner, eric.smith, ethan.furman, serhiy.storchaka
2013-12-16 15:49:00skrahlinkissue19995 messages
2013-12-16 15:49:00skrahcreate