Skip to content Skip to sidebar Skip to footer

Python Attributeerror Object

What am I doing wrong? This is my homework assignment I am trying to finish. I got the weird syntax error: File 'C:\Users\Ranbir\Desktop\myList2.py', line 56, in add myList.p

Solution 1:

myList.prev = myList.cursor

myList is apparently of type MyList, which does not define prev as a slot. Perhaps you meant this instead?

myList.cursor.prev = myList.cursor
myList.cursor.next = myList.cursor

Post a Comment for "Python Attributeerror Object"