Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
scoutoss11235
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
scoutoss11235
10y ago
In general, classmethod and staticmethod and property should almost always be the last decorator applied if you decorate a method multiple times in Python. This is because, unlike most decorators, classmethod/staticmethod/property
2.
▲
by
scoutoss11235
10y ago
For what it's worth, the classmethod issue that concerns the author is mostly a non-issue if you apply your decorator before you wrap your function in a classmethod: In [1]: def my_decorator(f): ...: def wrapped(*args, **k
3.
▲
by
scoutoss11235
10y ago
I looked at it briefly over the weekend and then got distracted trying to make numpy.isfinite() work on datetimes :(. It's still in the queue though! Feel encouraged to gently bump it if I don't get back to you in the next day o