From: Guido van Rossum Date: Thu, 22 Jun 1995 18:52:35 +0000 (+0000) Subject: functions don't have a __name__ attribute X-Git-Tag: v1.3b1~246 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8afa8245bb40a13d004bf41158142bf695e3a003;p=thirdparty%2FPython%2Fcpython.git functions don't have a __name__ attribute --- diff --git a/Lib/profile.py b/Lib/profile.py index 35ed63e51817..f41a8ae7bf08 100755 --- a/Lib/profile.py +++ b/Lib/profile.py @@ -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)