Tuesday, 6 August 2013

Python visibility to pass in function

Python visibility to pass in function

In A.py
class A
blah = some_fun(d) <----- needs d
def __init__
def a
def b
def c
def d <---- d is inside c
is it possible to pass in d because currently blah cannot see d for
obvious reasons?

No comments:

Post a Comment