2 Replies - 308 Views - Last Post: 29 December 2012 - 03:36 PM Rate Topic: -----

#1 XxLegendxX  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 81
  • Joined: 10-April 12

Magic Methods ?

Posted 29 December 2012 - 12:42 PM

Does anyone know a good website to find great code examples of magic methods like __getattr__, __setattr__, __str__, __getitem__, and __setitem__
Is This A Good Question/Topic? 0
  • +

Replies To: Magic Methods ?

#2 sepp2k  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2090
  • View blog
  • Posts: 3,185
  • Joined: 21-June 11

Re: Magic Methods ?

Posted 29 December 2012 - 12:49 PM

There's a list (with explanations) in the Python language reference, chapter 3.3.

This post has been edited by sepp2k: 29 December 2012 - 12:50 PM

Was This Post Helpful? 2
  • +
  • -

#3 Simown  Icon User is offline

  • Blue Sprat
  • member icon

Reputation: 319
  • View blog
  • Posts: 650
  • Joined: 20-May 10

Re: Magic Methods ?

Posted 29 December 2012 - 03:36 PM

This is a good link also: Python __Underscore__ Methods, although seems quite similar information given in the previous post.

Well, your pick :)

This post has been edited by Simown: 29 December 2012 - 03:37 PM

Was This Post Helpful? 1
  • +
  • -

Page 1 of 1