Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Python Programming Tutorial - 33 - Classes and Self

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
65,695
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 26, 2009

Part 34 - http://www.youtube.com/watch?v=pVjHVfzYKn0

More on classes and self

  • likes, 11 dislikes

Link to this comment:

Share to:

Top Comments

  • This should be a TV show;

    PROGRAMMING IN PLAIN ENGLISH!

  • let me resay that. If you have power over the computer, you can make ANYTHING and i mean ABSOLUTELY ANYTHING possible in the little dream world i like to call the virtual space that is not really existant but changes lives. If anyone understands that, give it a thumbs up lol.

see all

All Comments (162)

Sign In or Sign Up now to post a comment!
  • for some reason keep getting this

    

    AttributeError: cn instance has no attribute 'dn' please help

  • I hope no one sees me watching this... -.-

  • @Nikotiini69 Same with cvs333. I don't get it; what is the purpose of classes? What do they do?

  • @cvs333 Why are you confused? It is quite clear I think. Rewatch and try it out couple of times. It's really easy.

  • Python 3 adds (self) automatically so it's just funny how he stresses the importance of it :) This is the case atleast on Eclipse with Pydev.

  • great tutorial! makes me less intimidated to try to program in object oriented after getting so used to structured programming.

  • This is the first time I've been really confused in python.

  • @ all the people who have been having the problem when they get to first.displayname() after you enter self.name=name, when your creating the class, when you return hit your left direction arrow and it will align the methods your making and should fix your problem if this makes sense and fixes your problem thumbs up so others can see

  • @TheNanoStuff I got the same problem, the problem is you're not putting in the empty (), hope this helps!

  • make sure you have ' name = "" ' after the 'class className:' statement

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more