On Mon, Jun 9, 2014 at 11:40 AM, Chris Angelico <ros...@gmail.com> wrote:
> Also, this is the first time I've seen None as a constant other than
> the first. Usually co_consts is None, but this time co_consts is
Functions always seem to have None as the first constant, but modules
and classes are other examples that don't.
>>> co = compile("class MyClass: pass", '', 'exec')
(<code object MyClass at 0x7f32aa0a3c00, file "", line 1>, 'MyClass', None)