/
home
/
Programming
/
Python
/
Const basically makes data "Read-Only". Its an important feature to help prevent developers from changing data they were not supposed to, and to informing other developers that data marked const
will not change.
Python | Qt/Cpp |
---|---|
|
|
Read as: |
|
|
|
Benefits: |
|
|
|
Drawbacks: |
|
|
|
const
in Python.const
' with Python developers, a constant refrain is, "Just don't change the variable".