+ 6

What in python slang means "dunder"?

deep-under? dual-under? do you need her?

3rd Sep 2020, 11:08 AM
Shadoff
Shadoff - avatar
3 Answers
+ 11
Double UNDERscore such as __ __init__()
3rd Sep 2020, 11:47 AM
ChaoticDawg
ChaoticDawg - avatar
+ 6
__thanks__()
3rd Sep 2020, 11:53 AM
Shadoff
Shadoff - avatar
+ 1
Dunder or magic methods in Python are the methods having two prefix and suffix underscores in the method name. Dunder here means “Double Under (Underscores)”. These are commonly used for operator overloading. 
 These methods are the reason we can add two strings with '+' operator without any explicit typecasting. See: https://slangsearch.org/
2nd Aug 2022, 8:16 AM
Jack Brooks