I noticed all 3 -> class foo, class foo() and class foo(object) can be used but i am confused as to what is the difference between these 3, if there is any? (I mean in properties mainly, python3)
Let's break them down:
class foo:
object as the base class for you. classobj that will cause you all sorts of headaches.class foo(): 
class foo for both Python versions, trim it off, it looks ugly and makes no difference. class foo(object):
2 too, explicitly inheriting from object causes the class to be new style in Python 2 and makes no difference in 3 (apart from some extra typing).If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With