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

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to