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 mark.dickinson
Recipients ezio.melotti, mark.dickinson, skrah, ubershmekel
Date 2010-07-01.10:47:21
SpamBayes Score 0.046409577
Marked as misclassified No
Message-id <1277981243.63.0.63762409083.issue9136@psf.upfronthosting.co.za>
In-reply-to
Content
class Context(object):
    def __init__(self):
        for name, val in locals().items():
            setattr(self, name, val)


Isn't this dodgy anyway, since 'name' and 'val' end up going into locals()?  I wonder why the RuntimeError *isn't* raised for a normal 'Context()' call (i.e., not via profile).
History
Date User Action Args
2010-07-01 10:47:23mark.dickinsonsetrecipients: + mark.dickinson, ezio.melotti, ubershmekel, skrah
2010-07-01 10:47:23mark.dickinsonsetmessageid: <1277981243.63.0.63762409083.issue9136@psf.upfronthosting.co.za>
2010-07-01 10:47:21mark.dickinsonlinkissue9136 messages
2010-07-01 10:47:21mark.dickinsoncreate