What is the reason for defining classes within classes in Python?

vasudevram vasudevram at gmail.com
Tue Apr 23 17:50:22 EDT 2013


Hi list,

I saw an example of defining a class within another class, here, in the docs for peewee, a simple ORM for Python:

http://peewee.readthedocs.org/en/latest/peewee/quickstart.html

In what way is this useful?

Thanks,
Vasudev



More information about the Python-list mailing list