PYTHON PROGRAMMING

Overwriting in Python: Tricky. Dangerous. Powerful

Although overwriting objects is a typical Python coding technique, it can lead to unexpected effects. You need to know how to use it to utilize its strengths.

Marcin Kozak
Towards Data Science
27 min readApr 10, 2024

--

Overwriting in Python: Do not enter without reconsideration. Can be dangerous.
Overwriting in Python can be dangerous: Don’t enter without reconsideration. Photo by Raúl Nájera on Unsplash

--

--

A full professor, interdisciplinary researcher, data scientist, statistician, Python, R and Go developer, open-source contributor — and a devoted writer