0
r in magic methods
Could someone explain me in detail the functionality of 'r' at the beginning of magic methods? I dont get it Example: x.__radd__(y)
1 Answer
0
Check the following Reddit thread.
https://www.google.com.mx/amp/s/amp.reddit.com/r/learnpython/comments/3cvgpi/can_someone_explain_radd_to_me_in_simple_terms_i/
You can also check the Python Docs.
https://docs.python.org/3/reference/datamodel.html#object.__radd__