BUG:309469 This probably needs a bit more work, especially support for class c(): class d(): pass a = c.d()