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
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