Python Learning Resources

Free Resources for Learning Python Programming

Resource Links

  • Home
  • Python Resources for Beginners and Professionals
  • Python Websites and Blogs
  • Librarys
  • PythonByteSize
  • Problem Solving with Algorithms and Data Structure...
  • Python Practice Book

Monday, July 21, 2014

Guide to Pythons Magic Methods

Rafe Kettler

Copyright © 2012 Rafe Kettler
Version 1.17


A PDF version of this guide can be obtained from my site or Github.
The magic methods guide has
a git repository at http://www.github.com/RafeKettler/magicmethods.

Any issues can be reported there, along with comments, (or even contributions!).

Table of Contents
  1. Introduction
  2. Construction and Initialization
  3. Making Operators Work on Custom Classes
    • Comparison magic methods
    • Numeric magic methods
  4. Representing your Classes
  5. Controlling Attribute Access
  6. Making Custom Sequences
  7. Reflection
  8. Abstract Base Classes
  9. Callable Objects
  10. Context Managers
  11. Building Descriptor Objects
  12. Copying
  13. Pickling your Objects
  14. Conclusion
  15. Appendix 1: How to Call Magic Methods
  16. Appendix 2: Changes in Python 3
Posted by Johnny at 6:24 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Click Image for Python.org

Online Python Lessons

  • 50 Free Python Books
  • 45 Free Python Books Online
  • FREE PDF Python Book Downloads
  • Learn Python The Hard Way
  • Online Lessons List 1

Free Online Python Courses

  • Code Academy
  • Coursera College Classes
  • Dr. Chuck Online
  • EdX Courses
  • Google Python Class
  • MIT Courseware
  • Udacity Courses

Video Python Lessons

  • Best Tech Videos (Python)
  • Khan Academy Python Lessons
  • Python 3 Essential Training Course
  • Show Me Do (500+ Python Videos)
  • Up and Running with Python Course

Blog Archive

  • ▼  2014 (1)
    • ▼  July (1)
      • Guide to Pythons Magic Methods
  • ►  2013 (11)
    • ►  September (11)

About Me

My photo
Johnny
Just traveling through life one day at a time.
View my complete profile
Awesome Inc. theme. Powered by Blogger.