Home Python class inherits object
Reply: 0

Python class inherits object

user257 Published in March 19, 2018, 6:02 pm

Is there any reason for a class declaration to inherit from object?

I just found some code that does this and I can't find a good reason why.

class MyClass(object):
    # class code follows...
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.876618 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO