python - How Does One Handle Identical Method Names when Using Literate Programming? -
i use literate programming tool write python program. tool of choice noweb. ide emacs.
the problem have have classes identical method names. example, python program implements web service clients several web service servers, each of has search service. @ first glance code follows:
class wsca: def search(self, client, searchinput): pass class wscb: def search(self, client, searchinput): pass
the results of weaving show search defined twice, , not possible see in code wsca.search()
called , wscb.search()
called.
to solve this, 1 option can think of give methods unique names, not see acceptable solution.
does have solution problem?
Comments
Post a Comment