On 18/05/2019 17:21, Arup Rakshit wrote:

> class Role(db.Model):
> 
>     def __init__(self, **kwargs):
>         super(Role, self).__init__(**kwargs)
> 
> Here, why super(Role, self).__init__(**kwargs) is used instead 
> of super().__init__(**kwargs) ? 

I suspect you are reading an older tutorial. It used to be the
case that you had to provide the class and instance values to
super() but that's no longer needed in the latest versions.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to