Python initialization pitfalls
There are at least two not obvious class initialization mechanisms in Python, especially if your background is in different programming languages 😉 Class field initialization If you assign a class value outside __init__ method like here (see class_field): You should get: So be careful – class fields initialized outside __init__ are initialized only once (when …