Re:Please fix your Python decorators
by ungzd on Wednesday August 03, 2016 @08:20AM
(#12217363)
> unintentionally changes the signatures of my callables
Why it must not change signatures? Everyone says that it shouldn't, but why? Maybe because named the same as Java/.Net decorator pattern? Decorators in Python is almost just a function composition and it can change signature.
Why it must not change signatures? Everyone says that it shouldn't, but why? Maybe because named the same as Java/.Net decorator pattern? Decorators in Python is almost just a function composition and it can change signature.