Thread
:
Learning Python and I need help
View Single Post
marxian
2012-12-04 , 02:03
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#
3
In the retry() method,
Code:
Calculator.calc()
should be
Code:
self.calc()
EDIT: No need to create another instance of Calculator, as the existing instance is passed as the argument to both calc() and retry().
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.'
- J K Galbraith
My website
GitHub
Quote & Reply
|
The Following 2 Users Say Thank You to marxian For This Useful Post:
bandora
,
Sourav.dubey
marxian
View Public Profile
Send a private message to marxian
Find all posts by marxian