Overriding Built-in Classes (Python)
Posted
by Yipeng
on Stack Overflow
See other posts from Stack Overflow
or by Yipeng
Published on 2010-05-07T16:20:37Z
Indexed on
2010/05/07
16:38 UTC
Read the original article
Hit count: 162
How can I view and override the full definition for built in classes? I have seen the library docs but am looking for something more.
For e.g. is it possible to override the Array Class such that the base index starts from 1 instead of 0, or to override .sort()
of list to a sorting algorithm of my own liking?
© Stack Overflow or respective owner