Use the super() builtin function. It returns an object that has the ability
to instantiate your parent class. see sample code:
class Animal(object):
def __init__(self,*args,**kwargs):
pass
#print(types,'Base class with Animal')
class Mammal(Animal):
def __init__(self):
supe
how i can call super class instance varibles in subclass (python3)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To
2 matches
Mail list logo