Read the error, it tells you what you've done wrong and why it won't work. I don't think you can do it, just instantiate an object.
I've personally never understood why people use "class methods" in other languages, unless it's simply because they don't have support for namespaces like python does.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.