4 ms·
Like many similar articles, it seems to be missing the very important `next`. I understand it didn't actually gain underscores until Python 3, but it's still be
by agf 10y ago
Like many similar articles, it seems to be missing the very important `next`. I understand it didn't actually gain underscores until Python 3, but it's still been part of one of the most important protocols in Python for many years (the iterator protocol).
Discussion of similar article: https://news.ycombinator.com/item?id=6886411 https://news.ycombinator.com/item?id=6886411
Direct link to the article from that discussion (original no longer available): https://github.com/RafeKettler/magicmethods/blob/master/magicmethods.markdown https://github.com/RafeKettler/magicmethods/blob/master/magi...