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
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
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):
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
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