2 ms·
Also, I recently learned that only leading __ are considered special, whereas both sets of __ go back to being a public method due to the dunder magic methods s
by mdaniel 1y ago
Also, I recently learned that only leading __ are considered special, whereas both sets of __ go back to being a public method due to the dunder magic methods such as __add__, __eq__, etc
- callc 1y agoOh yeah, I didn’t even notice. Much worse than I thought! Imagine explaining these rules to a beginner learning programming.
- Doxin 1y agoIt should be mentioned that within the python community using __ for extra private is widely seen as a misfeature that shouldn't've been added and shouldn't be used.