A newbie doubt on methods/functions calling

mr.puneet.goyal at gmail.com mr.puneet.goyal at gmail.com
Thu Oct 6 13:06:29 EDT 2016


Hi 

I just started learning python. Is there any way to call functions in different way ?

Rather calling obj.function(arg1, arg2) I would like to call like below 

"obj function arg1 arg2" 

this function is part of a class.

class myClass:
    def function(arg1, arg2):
         # do something

Is it possible to do in python ? May be not directly but using some other methods. 

Regards, Puneet



More information about the Python-list mailing list