Mark Dickinson <dicki...@gmail.com> added the comment: 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). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9136> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com