commit | 8afa8245bb40a13d004bf41158142bf695e3a003 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Jun 22 18:52:35 1995 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Jun 22 18:52:35 1995 +0000 |
tree | 1b49fb572675adbed7a61cc74d1df91c8a3e6fca | |
parent | f71c79bb851169f6a24f7c5333674f3e81790a87 [diff] |
functions don't have a __name__ attribute
diff --git a/Lib/profile.py b/Lib/profile.py index 35ed63e..f41a8ae 100755 --- a/Lib/profile.py +++ b/Lib/profile.py
@@ -406,7 +406,7 @@ # 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)