各コマンドの後、python は参照カウントを出力します。参照カウントの出力を停止したいのですが、どうすればよいですか?
例:
>>> s = 'Hello World'
[786699 refs]
>>> str(s)
'Hello World'
[786699 refs]
>>>
各コマンドの後、python は参照カウントを出力します。参照カウントの出力を停止したいのですが、どうすればよいですか?
例:
>>> s = 'Hello World'
[786699 refs]
>>> str(s)
'Hello World'
[786699 refs]
>>>
これは標準的な動作ではありません:
$ python
Python 3.3.2 (default, May 21 2013, 11:50:47)
[GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Running with pythonstartup.py
>>> s = 'Hello World'
>>> str(s)
'Hello World'
>>>
この投稿--with-pydebug
で説明されているように、ビルドを で構成したため、これを取得する場合があります。