Properties

bruno at modulix onurb at xiludom.gro
Mon Mar 27 15:04:27 CEST 2006


Ronny Mandal wrote:
> Is there a way of checking whether the call to a set-function is
> called from within the class, e.g. the __init__() contra
> <object>.set()?

import inspect
help(inspect.stack)


-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list