1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-09-08 13:01:54 +01:00

devlib/utils/misc: improve memoize decorator

Using the wrapt module we can improve the memoize decorator. In fact, it allows
to preserve the attributes of the memoized function, such as signature,
docstring, path to the file where the function is implemented, and so on.

Signed-off-by: Michele Di Giorgio <michele.digiorgio@arm.com>
This commit is contained in:
Michele Di Giorgio
2016-06-22 17:54:59 +01:00
parent ee521f64e6
commit 539e9b34b9
2 changed files with 7 additions and 4 deletions

View File

@@ -69,6 +69,7 @@ params = dict(
'python-dateutil', # converting between UTC and local time.
'pexpect>=3.3', # Send/recieve to/from device
'pyserial', # Serial port interface
'wrapt', # Basic for construction of decorator functions
],
extras_require={
'daq': ['daqpower'],