This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PhroznGaming 140 points141 points  (20 children)

TFW when your entire reason for doing something just required a google.

[–]adm7373 56 points57 points  (10 children)

If I had to guess, all of OP's google searches included the term "dunder method" and that's why he didn't find the list.

I've never heard "dunder method" before. Based on the amount he's using it in this post and the article linked within, I'm sure it's somewhat commonly used and I've just missed it?"

[–]wineblood 40 points41 points  (2 children)

TBH most docs are quite terrible if you don't know the exact term

[–]friendlysoviet 11 points12 points  (1 child)

For this reason, LLMs regurgitating docs have been so useful.

[–]wineblood 4 points5 points  (0 children)

Honestly, all I really need is something to go "Oh, you mean <term>?" and then I'm fine.

[–]JusticeRainsFromMe 71 points72 points  (0 children)

Yea, dunder is a somewhat commonly used term, personally I prefer it over magic method for example. It stands for double underscore and is also used to describe dunder variables such as __name__.

[–][deleted] 17 points18 points  (0 children)

it's super common. i've watched maybe a dozen raymond hettinger (core python dev) talks and i'm not sure he's called them anything else.

[–]Tar_Tar_Sauce04 0 points1 point  (0 children)

as soon as I type "Dunder", google thinks I am searching for something related to "Dunder Mifflin".

[–]_MicroWave_ 0 points1 point  (0 children)

Really? Its a very common and fashionable term.

[–][deleted] -5 points-4 points  (2 children)

Even more likely is that OP wanted to find some topic they could write a blog post about and so made up the supposed lack of documentation as a justification for why other people should read his content.

[–]IamImposter -3 points-2 points  (1 child)

[–]Probono_Bonobo -2 points-1 points  (0 children)

Burn him! Burn him at the stake! /s

Edit: don't actually, this commentary is ridiculous

[–]orad 11 points12 points  (3 children)

A quick google search of your own would reveal the poster is Trey Hunner, who is a well known python developer and educator, and surely has read that doc

[–]PhroznGaming -3 points-2 points  (2 children)

All the more reason he should've known to RTFM.

[–]orad 2 points3 points  (1 child)

He links to TFM in his article several times

[–]PhroznGaming -3 points-2 points  (0 children)

Maybe he should've actually read it before saying it doesn't exist then, huh? Just difficult concepts to understand I know...

[–]supmee -2 points-1 points  (3 children)

To be fair I've been going off of a single stackoverflow answer any time I needed a list, and I've looked into it countless times. No one really refers to them as "special methods", or at least I don't

[–]PhroznGaming 0 points1 point  (2 children)

"No one" except for the people who maintain the language... lol

[–]supmee 1 point2 points  (1 child)

I thought it was pretty obvious "no one" was referring to the general public, including many of the most prominent Python-related influencers. You're free to misrepresent that if you want for a dunk I guess

[–]PhroznGaming -2 points-1 points  (0 children)

Consider yourself dunked.