Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Incorrect class names used when calling base class methods #19

Closed
gak opened this issue Aug 12, 2009 · 2 comments
Closed

Incorrect class names used when calling base class methods #19

gak opened this issue Aug 12, 2009 · 2 comments

Comments

@gak
Copy link
Owner

gak commented Aug 12, 2009

When calling methods on objects that were defined in a superclass, the child class is used for the node's class_name rather than the class where the method was defined.

Example:
{{{
class A(object):
def init(self):
pass

class B(A):
def init(self):
A(self)
}}}
Will result in two nodes, both with class B rather than one of each. I've attached a patch to fix this

@gak
Copy link
Owner Author

gak commented Aug 12, 2009

Author: mage2k@gmail.com
Note that that diff was the result of this patch against a version of pycallgraph.py that had already been patched with my call sequencing edge labeling patch.

@gak
Copy link
Owner Author

gak commented Aug 12, 2009

Author: gak
There's nothing in the patch!

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant