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 tnaheusnthanstu hn
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/
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 tnaheusnthanstu hn
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/
Comment