The Reader and Writer classes currently uses the python special __call__ method names so instances can be executed as functions. However, these are only called as functions internally from class methods, and therefore the same functionality can be done by a more straightforward public method. This makes it easier to understand the code and maintain.
The
Reader
andWriter
classes currently uses the python special__call__
method names so instances can be executed as functions. However, these are only called as functions internally from class methods, and therefore the same functionality can be done by a more straightforward public method. This makes it easier to understand the code and maintain.