mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
trying to get class name with self
This commit is contained in:
parent
22a4972fe0
commit
e1ee811d5d
@ -108,7 +108,10 @@ def traceFunctionCall(frame):
|
|||||||
n = co.co_argcount
|
n = co.co_argcount
|
||||||
if co.co_flags & 4: n = n+1
|
if co.co_flags & 4: n = n+1
|
||||||
if co.co_flags & 8: n = n+1
|
if co.co_flags & 8: n = n+1
|
||||||
r=f.f_code.co_name+'('
|
r=''
|
||||||
|
if dict.has_key('self'):
|
||||||
|
r = '%s.'%(dict['self'].__class__.__name__, )
|
||||||
|
r+="%s("%(f.f_code.co_name, )
|
||||||
comma=0 # formatting, whether we should type a comma.
|
comma=0 # formatting, whether we should type a comma.
|
||||||
for i in range(n):
|
for i in range(n):
|
||||||
name = co.co_varnames[i]
|
name = co.co_varnames[i]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user