I would like to use a literate programming tool to write a python program. My tool of choice is noweb. My IDE is emacs.
The problem I have is that I have classes with identical method names. For example, the python program implements web service clients to several web service servers, each of which has a search service. At first glance I would code this as follows:
class wsca:
def search(self, client, searchInput):
pass
class wscb:
def search(self, client, searchInput):
pass
The results of weaving this show that search is defined twice, and it is not possible to see where in the code wsca.search()
is called and where wscb.search()
is called.
To solve this, one option I can think of is to give the methods unique names, but I do not see this as an acceptable solution.
Does anyone have a solution to this problem?