我是靠谱客的博主 正直冬日,这篇文章主要介绍RuntimeError: maximum recursion depth exceeded while getting the repr of an object,现在分享给大家,希望可以做个参考。

threading.Timer格式写错。
例如:

复制代码
1
2
timers[seq] = threading.Timer(time_limit, send_pkt())

应该改成:

复制代码
1
2
timers[seq] = threading.Timer(time_limit, send_pkt)

再如:

复制代码
1
2
timers[seq] = threading.Timer(time_limit, send_pkt(seq, data))

应该改成:

复制代码
1
2
timers[seq] = threading.Timer(time_limit, send_pkt, (seq, data))

最后

以上就是正直冬日最近收集整理的关于RuntimeError: maximum recursion depth exceeded while getting the repr of an object的全部内容,更多相关RuntimeError:内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(64)

评论列表共有 0 条评论

立即
投稿
返回
顶部