mirror of
https://github.com/python/cpython.git
synced 2025-12-07 17:57:56 +00:00
functions don't have a __name__ attribute
This commit is contained in:
parent
f71c79bb85
commit
8afa8245bb
1 changed files with 1 additions and 1 deletions
|
|
@ -406,7 +406,7 @@ class Profile:
|
||||||
|
|
||||||
# This method is more useful to profile a single function call.
|
# This method is more useful to profile a single function call.
|
||||||
def runcall(self, func, *args):
|
def runcall(self, func, *args):
|
||||||
self.set_cmd(func.__name__)
|
self.set_cmd(`func`)
|
||||||
sys.setprofile(self.trace_dispatch)
|
sys.setprofile(self.trace_dispatch)
|
||||||
try:
|
try:
|
||||||
apply(func, args)
|
apply(func, args)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue