You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following ipython session demonstrates the issue:
In [8]: def s_plain(y):
...: "square a number"
...: return y * y
...:
In [9]: s_plain.__doc__
Out[9]: 'square a number'
In [10]: s_plain.__name__
Out[10]: 's_plain'
In [11]: @lrudecorator(100)
def s(x):
"square a number"
return x * x
....:
In [12]: s.__doc__
In [13]: s.__name__
Out[13]: 'wrapped'
The text was updated successfully, but these errors were encountered:
See https://docs.python.org/2/library/functools.html#functools.wraps for details.
The following ipython session demonstrates the issue:
The text was updated successfully, but these errors were encountered: