On Monday, October 10, 2016 at 7:45:40 PM UTC+5:30, mr.pune...@gmail.com wrote:
> Hi
>
> Is there any way to capture syntax errors and process them ? I want to write
> a function which calls every time whenever there is syntax error in the
> program.
>
> For example,
>
> inside example.py
>
Hi All
Its really good to see that some discussion happening around this topic. Sorry
I was out from my work for sometime so couldn't follow up but I really find it
useful. It gives me good opportunity to know python better as I recently
started learning python.
Ok so I tell you why I need to
Hi
Is there any way to capture syntax errors and process them ? I want to write a
function which calls every time whenever there is syntax error in the program.
For example,
inside example.py
I just mention below line
Obj = myClass()
Obj xyz
Obj is instance of a class. But there is synt
Let me rephrase my question in other way.
class myClass:
def __init__(self, var):
self.var = var
myObj = myClass(abc)
# I am calling instance with function name and arguments
myObj func1 arg1 arg2
Can i associate any function like __init__ with instance ? Means if I just use
in
Well I jump from TCL to Python. And found that it was very convenient to use
Procs there. So I was looking for that luxury in Python.
I am not trying to reinvent the wheel. I was just curious to know if there is
any possibility to create a caller function in my way (TCL) where I can call
pyth
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