On Mar 8, 2015 9:13 PM, "Steven D'Aprano" <steve at pearwood.info> wrote: > > There's no built-in way of calling __index__ that I know of (no > equivalent to int(obj)), There's operator.index(obj), at least. > but slicing at the very least will call it, > e.g. seq[a:] will call type(a).__index__. -n -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20150308/5f07c12b/attachment.html>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4