Day 38/100 of #100DaysOfPythonTips
π: Why __name gets mangled to _Class__name
Itβs not for security.
Itβs not real privacy.
Itβs simply to prevent accidental overrides in subclasses.
#Python#pythonlearn#100DaysOfCode
Day 27/100 of #100DaysOfPythonTips. What is SimpleNamespace? Let's use dot notation like in JS to access attributes of a mapping type, instead of square bracket notation.
#Python#Python3#100DaysOfCode
Day 24/100 of #100DaysOfPythonTips. Yesterday we saw shallow copying in Python. Today we go deep into this subject and explore π§ deep copying in Python. Simplest explanation ever π
Follow me for more Python tips every day π₯³
#Python#Python3#100DaysOfCode#100DaysOfCode