<br>I'm using Python 2.3.4<br><br>After reading this in the docs<br><dl><dt><table cellpadding="0" cellspacing="0">
<tbody>
<tr valign="baseline">
<td><b><tt class="function" id="l2h-344">getrefcount</tt></b>(</td>
<td><var>object</var>)</td></tr></tbody></table>
</dt><dd>Return the reference count of the <var>object</var>. <span style="font-weight: bold;">The count returned is 
generally one higher than you might expect,</span> because it includes the (temporary) 
reference as an argument to <tt class="function">getrefcount()</tt>.</dd></dl>I decided to try some experiments<br><br>&nbsp;class junk(object):<br>... &nbsp;&nbsp;&nbsp; pass<br>... <br>&gt;&gt;&gt; sys.getrefcount(junk)<br>5<br>&gt;&gt;&gt; j1=junk()
<br>&gt;&gt;&gt; sys.getrefcount(junk)<br>6<br><br>sys.getrefcount(j1)<br>2<br><br>I understand why j1 is 1 higher than I expect, based on the docs, but why does getrefcount(junk) return 5 before any instances of class junk are made?
<br><br><br><br><br>