recursiondepthexceeded while calling a Python object' in <type 'exceptions.RuntimeError'> ignoredException RuntimeError: 'maximumrecursiondepthexceeded while calling a Python object' in <type '
任何帮助,以使这工作,并指出错误/s将不胜感激。isinstance(value, str) or isinstance(value, collections.Callable) or hasattr(value, 'match')
RuntimeError: maximumrecursiondepthexceeded while calling a Python object
我正在运行一个递归循环来实现某些东西的最大优化,并且到达了代码命中RuntimeError: maximumrecursiondepthexceeded while calling a Python这是意料之中的,但我想在代码命中那个错误之前停止代码,这样我就可以在这个点上查看我的数据。
有没有可能有一个while循环来表达类似的东西呢?类似于“嘿,运行这个循环直到你达到最大的递归深度。