Python Class Attributes: An Overly Thorough Guide
This article is originally published at Toptal.
I had a programming interview recently, a phone-screen in which we used a collaborative text editor.
I was asked to implement a certain API, and chose to do so in Python. Abstracting away the problem statement, let’s say I needed a class whose instances stored some
1
|
and some
1
|
.
Continue reading