]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
functions don't have a __name__ attribute
authorGuido van Rossum <guido@python.org>
Thu, 22 Jun 1995 18:52:35 +0000 (18:52 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 22 Jun 1995 18:52:35 +0000 (18:52 +0000)
Lib/profile.py

index 35ed63e51817824093b816e61843220b5e39d83b..f41a8ae7bf08be4ecb102690ef71d07992ed7b72 100755 (executable)
@@ -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)