当在 IronPython 脚本中实例化 collections.OrderedDict() 时,我得到以下信息:
System.MissingMemberException: 'NoneType' object has no attribute 'f_back'
at logging$33.findCaller$1681(PythonFunction $function, Object self) in C:\Python26\Lib\logging\__init__.py:line 1101
at logging$33._log$1683(PythonFunction $function, Object self, Object level, Object msg, Object args, Object exc_info, Object extra) in C:\Python26\Lib\logging\__init__.py:line 1129
at logging$33.info$1675(PythonFunction $function, Object self, Object msg, Object args, Object kwargs) in C:\Python26\Lib\logging\__init__.py:line 1021
调用它的脚本在其他 Windows 机器上运行良好,只出现在我的机器上。我根本不熟悉日志记录功能 - 任何人都可以解释一下吗?
Python 2.6 版
IronPython 2.7.1 版
非常感谢