Contribute Media
A thank you to everyone who makes this possible: Read More

Oh the (Methods) You Can (Make): By Dunder Seuss

Translations: en en

Description

You can make many methods Over 100 to be exact That start with two underscores What do you think of that?

The runtime, it calls these At points A or B To do special magic At runtime, you see.

You may have seen __getattr__ or __init__ But __rfloordiv__? What’s the point of it?

Come take a quick tour, your mother won’t mind And hear a talk that’s one-of-a-kind About how Python uses them under-the-hood And how _you_ can use them to write code that's real good

Details

Improve this page