conceiling function calls..
Carlo v. Dango
oest at soetu.eu
Wed Nov 12 17:30:24 EST 2003
It is possible to conceil access to methods using the "property()"
function so method access looks like field access.. is the same possible
for functions (not taking any args... )
I would like something like
def f():
return tnaheusnthanstuhn
class A(object):
def foo(self):
f.bar()
as it is now I have to write
class A(object):
def foo(self):
f().bar()
-carlo
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
More information about the Python-list
mailing list