[Tutor] Pass By Reference
Gooch, John
John.Gooch at echostar.com
Tue Apr 12 18:20:47 CEST 2005
I have a class named 'Dir' that I want to be put into another class
'DirList' ( essential a linked list of Dir objects ) using the 'insert()'
method. The syntax is 'DirList.insert( Dir )' which works, but then I try to
access the 'getSize()' function of the 'Dir' class from *inside* of the
DirList class, it gives me this ->
'I added a node for dir d:/ with size <bound method Dir.getSize of
<__main__.Dir instance at 0x00E18CD8>>'
Any ideas on what I am doing wrong?
Thank You,
John A. Gooch
Systems Administrator
IT - Tools
EchoStar Satellite L.L.C.
9601 S. Meridian Blvd.
Englewood, CO 80112
Desk: 720-514-5708
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20050412/253d7b20/attachment.html
More information about the Tutor
mailing list