Python: How can I subclass a class I'm nesting in?

Posted by singpolyma on Stack Overflow See other posts from Stack Overflow or by singpolyma
Published on 2010-05-22T21:00:03Z Indexed on 2010/05/22 22:01 UTC
Read the original article Hit count: 153

Filed under:

I am trying to do the following in a bit of python code:

class Parent:
    class Child(Parent):
        pass

And it does not work. Is there any python syntax I can use to achieve the same result?

Thanks.

© Stack Overflow or respective owner

Related posts about python