AttributeError: 'function' object has no attribute 'co_code'
<pre><code>from dis import disassemble


def main1():
    a=12
    print(a)


disassemble(main1)
</code></pre>

<p>The code above gives the error <code>AttributeError: 'function' object has no attribute 'co_code'</code>, can anyone help?</p>