H
Hellmut Weber
Hi,
i would liek to define an error routine which print amongs other things
the name of the function from which it has been called.
Having tried
def foo():
print dir()
and all other ideas which came to my (rather python newbie) mind.
Googling too did not show me a possibility.
IOW what I'm looking for is:
def bar():
name = some_function(some-parameter)
print name
should print 'bar'
Any ideas appreciated
Hellmut
i would liek to define an error routine which print amongs other things
the name of the function from which it has been called.
Having tried
def foo():
print dir()
and all other ideas which came to my (rather python newbie) mind.
Googling too did not show me a possibility.
IOW what I'm looking for is:
def bar():
name = some_function(some-parameter)
print name
should print 'bar'
Any ideas appreciated
Hellmut