News for hackers. Stuff that matters.
Re:A Guide to Python's Magic Methods by Ingaz on Sunday March 18, 2012 @05:13PM (#3720994)
I like underscores for all magic methods.

And I think you're right about __init__ - constructors are not magic.

But in fact, I like "word" __init__ even more outside of python.

I use it to name directories for all new, incoming, uncategorized stuff.

For example: I have "music" with subdirectories named by artist, and I have __init__ where I put all artists I found recently. Same for "books", "docs", "work", etc.

I like it because "__init__" is always on top. Compare it with "new", "incoming", "now", "unclassified".

There are no comments on this comment yet.