Changes between Initial Version and Version 1 of Ticket #31949, comment 5
- Timestamp:
- Aug 27, 2020, 11:07:13 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31949, comment 5
initial v1 1 Yeah, while you can technically apply enough async/sync things to decorators to make them work directly, only the style that adds attributes to the wrapped function is actually going to work natively; we should at least have the core Django ones detect what they're wrapping and do the right thing, though due to Python this is impossible to do perfectly (but we "can"make them perfectly raise nice errors if they're not wrapped right)1 Yeah, while you can technically apply enough async/sync things to decorators to make them work directly, only the style that adds attributes to the wrapped function is actually going to work natively; we should at least have the core Django ones detect what they're wrapping and do the right thing, though due to Python this is impossible to do perfectly (but we ''can'' make them perfectly raise nice errors if they're not wrapped right)