所以,每当我在Python中做任何事情时,我总是得到这个refs count输出。例如:
xxxxx@li282-82:~$ python
Python 2.7.3 (default, Feb 28 2013, 20:42:30)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
[40347 refs]
>>> django.VERSION
(1, 5, 2, 'final', 0)
[40349 refs]
>>>
[40349 refs]
[19961 refs]
xxxxx@li282-82:~$ logout
我该怎么关掉它?!你知道吗
从
Misc/SpecialBuilds.txt
:Py_REF_DEBUG
也被其他一些调试选项所暗示。但是每个人都是对的:不知何故或者你有一个Python的调试版本。你知道吗正如@mgilson所建议的,您可能已经安装了源代码编译的Python(由
/usr/local/bin/python
暗示)。如果您想从源代码处重建Python,请下载所需版本的最新源代码,并按照以下说明进行操作:见:http://docs.python.org/2/using/unix.html#building-python
在我看来,您的解释程序是用debug flag编译的。为了摆脱它,我想你需要重新编译。你知道吗
相关问题 更多 >
编程相关推荐