Re: [Tutor] How to extract a float from an instancemethod call

2013-04-15 Thread Yaniv Bronheim
by reading the exception you see that you pass function pointer instead of a value KeyError: (bound method Position.getX of __main__.Position object at 0x4699490, bound method Position.getY of __main__.Position object at 0x4699490) as if you just print pos.getX and not pos.getX(), you will see

Re: [Tutor] How to extract a float from an instancemethod call

2013-04-14 Thread Sydney Shall
On 08/04/2013 13:52, Dave Angel wrote: On 04/08/2013 08:40 AM, Sydney Shall wrote: Hi, I am learning Python. I use MAC OSX 10.6.8 Python 2.7.3 I have been given a project to write a program involving random walks. I have drafted a program which has passed all the static tests, but on

[Tutor] How to extract a float from an instancemethod call

2013-04-08 Thread Sydney Shall
Hi, I am learning Python. I use MAC OSX 10.6.8 Python 2.7.3 I have been given a project to write a program involving random walks. I have drafted a program which has passed all the static tests, but on testing my program i get the following error message: Traceback (most recent call last):

Re: [Tutor] How to extract a float from an instancemethod call

2013-04-08 Thread Dave Angel
On 04/08/2013 08:40 AM, Sydney Shall wrote: Hi, I am learning Python. I use MAC OSX 10.6.8 Python 2.7.3 I have been given a project to write a program involving random walks. I have drafted a program which has passed all the static tests, but on testing my program i get the following error

Re: [Tutor] How to extract a float from an instancemethod call

2013-04-08 Thread Flynn, Stephen (L P - IT)
Aha - another EdX 6.00 Python course student. Traceback (most recent call last): File /Users/Sydney/Documents/6.00x Files/Problem Sets/ProblemSet7/ps7 copy.py, line 303, in module testRobotMovement(StandardRobot, RectangularRoom) File ps7_verify_movement.py, line 12, in