What's wrong with this?
class Cat():
parent = Cat()
NameError: name 'Cat' is not defined
All I wanted to do was to create a class that could be nested to create a tree of category objects. What's the standard way of doing this?
I will eventually be putting this in Django as a Model and syncing with SQLite3. I am a Python newbie. Sorry...