const-correctness

Why no 'const' in Python?

Why no 'const' in Python? Question: I come from C background and am learning Python. The lack of explicit type-safety is disturbing, but I am getting used to it. The lack of built-in contract-based programming (pure abstract classes, interfaces) is something to get used to, in the face of all the advantages of a dynamic …

Total answers: 2