Home Python class inherits object
Reply: 0

Python class inherits object

user257
1#
user257 Published in June 24, 2018, 3:07 am

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.394476 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO