Python Forum

Full Version: list of compliances of all special methods - examples
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello,
we know that in the documentation of python3x all special methods of all data-types are listed in '3.3. Special method names'. but i was wondering is there in the internet a list of all ... compliances, substituents of all special methods which shows what stands behind every special method ( what operation corresponds with certain special method ) with examples like this:
__add__ - '+' - operator for lists and strings
>>> a
[1, 2, 3, 4, 9]
>>> b
[[1], [2], [3], [4], [9]]
>>> c = a + b
>>> c
[1, 2, 3, 4, 9, [1], [2], [3], [4], [9]]

and so on and so forth?
thanks in advance
There is a tutorial here!