diff options
| author | Michele Simionato <michele.simionato@gmail.com> | 2015-03-16 15:08:58 +0100 |
|---|---|---|
| committer | Michele Simionato <michele.simionato@gmail.com> | 2015-03-16 15:08:58 +0100 |
| commit | 6f3bf75e285f6632d5be0201d090ea158f18ad7c (patch) | |
| tree | 66aecc0e6b9cd35c9810654725e9a1c37ed7662f /src | |
| parent | 45f13531def0ea450899f0cd50697d1c79f2bf7a (diff) | |
| download | python-decorator-git-6f3bf75e285f6632d5be0201d090ea158f18ad7c.tar.gz | |
The decorated function dictionary is a copy of the original function dictionary
Diffstat (limited to 'src')
| -rw-r--r-- | src/decorator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decorator.py b/src/decorator.py index 4ed7247..ece2488 100644 --- a/src/decorator.py +++ b/src/decorator.py @@ -111,7 +111,7 @@ class FunctionMaker(object): allshortargs.append('**' + self.varkw) self.signature = ', '.join(allargs) self.shortsignature = ', '.join(allshortargs) - self.dict = func.__dict__ + self.dict = func.__dict__.copy() # func=None happens when decorating a caller if name: self.name = name |
