pyguides

Reference

Dunder Index

Python Dunder Index reference.

  1. __index__

    Convert an object to an integer for use as a sequence index.