Oct-30-2019, 07:45 PM
Alternatively you can define it as a static method:
>>> class Foo(object): ... @staticmethod ... def bar(): ... print('bar') ... >>> f = Foo() >>> f.bar() bar
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures