2 Replies - 714 Views - Last Post: 01 January 2011 - 07:49 AM Rate Topic: -----

#1 Apprentice123  Icon User is offline

  • D.I.C Regular

Reputation: -16
  • View blog
  • Posts: 265
  • Joined: 30-June 08

self of python

Posted 30 December 2010 - 02:44 PM

How it works and how is the argument self of python?
Is This A Good Question/Topic? 0
  • +

Replies To: self of python

#2 atraub  Icon User is offline

  • Pythoneer
  • member icon

Reputation: 759
  • View blog
  • Posts: 2,010
  • Joined: 23-December 08

Re: self of python

Posted 30 December 2010 - 03:11 PM

Ok, I think I understand this question.

You're asking about the 'self' value in Python classes. Think of self as a way to keep track of attributes of a specific object. Make sure any methods of a given class have self as the first argument. For more information check out helpful python resources. That's all I'm going to say unless you make your question more specific.

By the way:
Aren't you lucky we can't vote down topics anymore?

This post has been edited by atraub: 30 December 2010 - 03:22 PM

Was This Post Helpful? 3
  • +
  • -

#3 Apprentice123  Icon User is offline

  • D.I.C Regular

Reputation: -16
  • View blog
  • Posts: 265
  • Joined: 30-June 08

Re: self of python

Posted 01 January 2011 - 07:49 AM

View Postatraub, on 30 December 2010 - 02:11 PM, said:

Ok, I think I understand this question.

You're asking about the 'self' value in Python classes. Think of self as a way to keep track of attributes of a specific object. Make sure any methods of a given class have self as the first argument. For more information check out helpful python resources. That's all I'm going to say unless you make your question more specific.

By the way:
Aren't you lucky we can't vote down topics anymore?


Thank you
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1