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
Can we also make __name__ as optional if underlying function misses this.
The text was updated successfully, but these errors were encountered:
ShivKJ
changed the title
Avoiding setting __name__ attribute if it is missing.
Making __name__ optional attribute of decorated-function if underlying function is missing it.
Jan 16, 2023
Hi,
I created a function A, using
decorator.decorator
and applied it on another function B.There were some more decorators (
np.vectorize
here is the detail) applied on function B but decorator A was the top decorator.I got error that function
B
is missing__name__
attribute.I was going through the decorator code and found this,
Can we also make
__name__
as optional if underlying function misses this.The text was updated successfully, but these errors were encountered: