This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alex
Recipients alex, michael.foord
Date 2011-03-09.20:54:47
SpamBayes Score 0.13216457
Marked as misclassified No
Message-id <1299704088.08.0.851863238752.issue11455@psf.upfronthosting.co.za>
In-reply-to
Content
2 ways to do it:

class A(object):
    locals()[42] = "abc"

or

type("A", (object,), {42: "abc"})
History
Date User Action Args
2011-03-09 20:54:48alexsetrecipients: + alex, michael.foord
2011-03-09 20:54:48alexsetmessageid: <1299704088.08.0.851863238752.issue11455@psf.upfronthosting.co.za>
2011-03-09 20:54:47alexlinkissue11455 messages
2011-03-09 20:54:47alexcreate