bpo-44977: Deprecate delegation of int to __trunc__ (GH-31031)
Calling int(a) when type(a) implements __trunc__ but not __int__ or __index__ now raises a DeprecationWarning.
Z
Zackery Spytz committed
b4bd1e1422997de61faf506b4916e83013bc7d21
Parent: 7ffe7ba
Committed by GitHub <noreply@github.com>
on 2/3/2022, 9:43:25 AM