logoalt Hacker News

mdaniellast Wednesday at 2:39 AM1 replyview on HN

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


Replies

callclast Wednesday at 3:31 AM

Oh yeah, I didn’t even notice. Much worse than I thought!

Imagine explaining these rules to a beginner learning programming.

show 1 reply