Python: Inherit from a class from containing class -


when running following code:

class a(object):     class b(object):         pass     class c(object):         class d(a.b):             pass 

i error on creating class d:

nameerror: name 'a' not defined 

is possible create d inherits b without extraction of class outside a?


Comments