[英]Process finished with exit code -107341571 (0xC00000FD)
I am getting我正进入(状态
Process finished with exit code -107341571 (0xC00000FD)
进程结束,退出代码为 -107341571 (0xC00000FD)
With no stack trace, or any other indication of an error, in a rather large code-base.在相当大的代码库中没有堆栈跟踪或任何其他错误指示。
I can't create a reproducible, or I would be able to solve this.我无法创建可复制的,否则我将能够解决这个问题。
What's causing this?这是什么原因造成的?
For me, this happened with the following code in some class:对我来说,这发生在一些 class 中的以下代码中:
class A():
@property
def points_limits(self):
return self.points_limits
Calling a.points_limits
crashed Python. This is an obvious name-clash, and I expected some compilation error in such cases, but apparently this is not caught.调用
a.points_limits
崩溃 Python。这是一个明显的名称冲突,我预计在这种情况下会出现一些编译错误,但显然这没有被捕获。
don't call a property within itself - return a member variable instead, notice the leading underscore:不要在自身内部调用属性 - 而是返回一个成员变量,注意前导下划线:
@property
def points_limits(self):
return self._points_limits
Why there is nothing more indicative, or why Google doesn't find this is beyond me.为什么没有更多的指示性,或者为什么谷歌没有发现这超出了我的范围。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.