Re: How to call the super class instance variables in sub class in python3

2018-10-04 Thread daniel main
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 to call the super class instance variables in sub class in python3

2018-10-03 Thread nagarjuna . j
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