[elbe-devel] [PATCH 0/1] Finetuning class decorator - PEP3129

dion at linutronix.de dion at linutronix.de
Tue Jun 4 12:23:21 CEST 2019


From: Olivier Dion <dion at linutronix.de>

This patch is a minor improvement to the finetuning implementation.

While I was working on improving the logging in 'finetuning.py', I
decided to make a seperate patch to reduce the cognitive load of the
file.

The rational behind using a decorator is that the registration process
is local to the class declaration, instead of registering after the
class definition.  This is my opinion much easier to read and less
error prone.

Olivier Dion (1):
  Add decorator for FinetuningAction registration

 elbepack/finetuning.py | 183 ++++++++++---------------------------------------
 1 file changed, 36 insertions(+), 147 deletions(-)

-- 
2.11.0




More information about the elbe-devel mailing list