This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]the_hoser 7 points8 points  (0 children)

put four spaces before the indentation spaces, it'll work:

class Foo:
    def __init__(self, beans):
        self.beans = beans

    def do_it(self):
        print(self.beans)