TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A guide to Python's magic methods.

67 pointsby experiment0over 12 years ago

6 comments

jmountover 12 years ago
The ongoing obsession with direct to github store links is irritating. Why not post a link to a designed start of reading point like: <a href="http://www.rafekettler.com/magicmethods.html" rel="nofollow">http://www.rafekettler.com/magicmethods.html</a> ? Or to <a href="https://github.com/RafeKettler/magicmethods/raw/master/magicmethods.pdf" rel="nofollow">https://github.com/RafeKettler/magicmethods/raw/master/magic...</a> so we can share the pleasure of the Scribd cabal screwing up the link and "annoyance wall" the content.
DasIchover 12 years ago
The official language reference[1] covers this, provides the most recent information and is undoubtedly correct.<p>Why would I use this instead? In fact looking at the description of `__del__` there is some very crucial information missing regarding access to globals and circular references.<p>[1]: <a href="http://docs.python.org/3/reference/datamodel.html" rel="nofollow">http://docs.python.org/3/reference/datamodel.html</a>
评论 #4828151 未加载
评论 #4828102 未加载
experiment0over 12 years ago
The actual website is down at the moment but heres a link to the full PDF.<p><a href="https://github.com/RafeKettler/magicmethods/blob/master/magicmethods.pdf?raw=true" rel="nofollow">https://github.com/RafeKettler/magicmethods/blob/master/magi...</a>
TommyDANGerousover 12 years ago
Thanks for the read.
captn3m0over 12 years ago
Thanks a lot! This is the one reason that keeps me from using python.
wildranterover 12 years ago
Here's a link that reveals a little bit more [1]. Cool stuff. Thanks for making this!<p>[1] <a href="https://raw.github.com/RafeKettler/magicmethods/master/magicmethods.html" rel="nofollow">https://raw.github.com/RafeKettler/magicmethods/master/magic...</a>