[Tutor] Shell Output Format - [was: Is there Python code for accessing an object's reference count?]
Ilias Lazaridis
ilias at lazaridis.com
Sun Oct 8 19:18:50 CEST 2006
Kent Johnson wrote:
...
> In [2]: sys.getrefcount(100)
> Out[2]: 43
>
> In [3]: def foo():
> ...: return 100
> ...:
>
> In [4]: sys.getrefcount(100)
> Out[4]: 44
off-topic:
how to you get this output format of the shell?
In [2]:
Out[2]:
I've tried to alter IDLE:
IDLE - Customizing output format
http://groups.google.com/group/comp.lang.python/browse_frm/thread/b81ef0c0b134def2
.
--
http://lazaridis.com
More information about the Tutor
mailing list