To simplify the code, we should create a new class Scientist() from which Original() inherits. Scientist() would provide the information getting engine, i.e. it fills the internal variables currently stored in in __init__. It should also include the check for the field-source list.
In a second step, the class should be applied to the matches in order to transparently gather their information.
To simplify the code, we should create a new class
Scientist()
from whichOriginal()
inherits.Scientist()
would provide the information getting engine, i.e. it fills the internal variables currently stored in in__init__
. It should also include the check for the field-source list.In a second step, the class should be applied to the matches in order to transparently gather their information.