Inner classes

Andrew Kuchling akuchlin at mems-exchange.org
Wed Jun 13 20:40:07 CEST 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