Is there a way to override Python's built-in function int() and float()?

后端 未结 0 1866
日久生厌
日久生厌 2021-01-29 11:30

I want to override Python\'s built-in int() function such that:

  1. When the argument to int(), say x, is an instance of my own t
相关标签:
回答
  • 消灭零回复
提交回复
热议问题