[Tutor] Help with OOP!

Pete pete at radiokinetics.com
Tue Oct 30 07:56:07 CET 2012

I'm taking this class on python at UCSC. They said this list could help. I
don't' understand OOP and I'm having a hard time understanding the "scope"
and why the def inside class are not like function -plus I can't get my
c-brain around the implicit typing. It looks like the interpreter does not
want to return a tuple. why?


I don't' know if anybody can fix this, or offer a better solution to this


The code and assignment are attached. 



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20121029/b0afda2d/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hw612.py
URL: <http://mail.python.org/pipermail/tutor/attachments/20121029/b0afda2d/attachment-0001.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hw6.pdf
Type: application/pdf
Size: 332541 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tutor/attachments/20121029/b0afda2d/attachment-0001.pdf>

More information about the Tutor mailing list