I recently came across this interesting article on class attributes v/s instance attributes in Python.
References:
- https://www.toptal.com/python/python-class-attributes-an-overly-thorough-guide
- This actually let me to 2 other guides which are very interesting:
- https://pythonconquerstheuniverse.wordpress.com/2012/02/15/mutable-default-arguments/
- https://timothyawiseman.wordpress.com/2012/10/06/class-and-instance-variables-in-python-2-7/
- http://www2.lib.uchicago.edu/keith/courses/python/class/5/##classinst
- This is a very thorough guide. Highly recommended!
Code: