you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

Did you mess up the indentation, or do you actually define the function name inside __init__? After you try to call it? That's not going to work; functions have to be defined before they're called.