Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
valdemar Moberg
1,303 Pointsdef __init__(self, master):?
can someone explain what this means (i asume if pydoro is somehow beeing run then it dose the code under here(Y/N))
1 Answer
Mark Chesney
11,747 PointsHi Valdemar,
This is the initial constructor. When you define a class, this is very often the first function to appear. When you create the instance of a class object, then this init function gets called automatically. I don't know what master is though; there doesn't seem to be context for it. Does any of that help?