I am using a module by another party (from github) and I installed it via its setup.py. Now I wanted to change some things and test my changes, similarly to this:
def function(a, testA=False, testB=False):
print(a)
if testA:
print('test A true')
if testB:
print('test B true')
In the original code, only test A exists. Now I removed the installed module according to the accepted answer of this question: python setup.py uninstall
Afterwards I reinstalled the module with setup.py, this time I had included my change. The module again works as expected, but when I call:
function('a', testB=True)
I get a TypeError function() got an unexpected keyword argument 'testB'. This doesn't make sense to me. It behaves as if I never had changed anything. Can anybody explain what I am probably missing here?