[issue9136] RuntimeError when profiling Decimal

Mark Dickinson report at bugs.python.org
Thu Jul 1 12:32:30 CEST 2010


Mark Dickinson <dickinsm at gmail.com> added the comment:

Removing the decimal module from the equation, the following is enough to trigger this for me.  Stefan's suggestion about the profile module writing to locals sounds right on target.


import profile

class Context(object):
    def __init__(self):
        for name, val in locals().items():
            setattr(self, name, val)

profile.run("Context()")

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9136>
_______________________________________


More information about the Python-bugs-list mailing list