Kaydet (Commit) 8afa8245 authored tarafından Guido van Rossum's avatar Guido van Rossum

functions don't have a __name__ attribute

üst f71c79bb
......@@ -406,7 +406,7 @@ class Profile:
# This method is more useful to profile a single function call.
def runcall(self, func, *args):
self.set_cmd(func.__name__)
self.set_cmd(`func`)
sys.setprofile(self.trace_dispatch)
try:
apply(func, args)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment