Inner classes

Andrew Kuchling akuchlin at mems-exchange.org
Wed Jun 13 14:40:07 EDT 2001


xyzmats at laplaza.org (Mats Wichmann) writes:
> Nonetheless, I was challenged by someone to describe how it isn't a
> shorcoming in Python that classes don't work this way and didn't
> convince the guy so I'm looking for a more erudite comparison.

Work *what* way?  It's perfectly legal to do this:

class C: 
    class inner: 
        ... stuff for inner class
    ... stuff for class C

--amk





More information about the Python-list mailing list