Changes between Initial Version and Version 1 of Ticket #36487, comment 2


Ignore:
Timestamp:
Jul 1, 2025, 10:35:07 AM (2 months ago)
Author:
Krishnaprasad MG

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36487, comment 2

    initial v1  
    1 This also can be done, the current fix effectively prints the wrapped function name in case of partial, but yes may be this is fine (copied from the tests)
    2 
    3 `def robust_callback():`
    4 `  raise ForcedError("robust callback")`
    5 
    6 `robust_callback_partial = partial(robust_callback)`
    7 
    8 `>>> getattr(robust_callback_partial, "__qualname__", robust_callback_partial)`
    9 `functools.partial(<function robust_callback at 0x101287600>)`
    10 `>>> getattr(robust_callback, "__qualname__", robust_callback)`
    11 `'robust_callback'`
    12 
    13 I could update the PR
     1This also can be done, the current fix effectively prints the wrapped function name in case of partial, but yes may be this is fine. Updated the PR.
Back to Top