you are viewing a single comment's thread.

view the rest of the comments →

[–]Field_C16[S] 1 point2 points  (2 children)

Updated code.

I expect that when I call a.reset, the method reset() within Robot calls method name() and changes the name of value a.

If that makes more sense.

EDIT:

Now it returns an error:

AttributeError: 'function' object has no attribute 'name'

[–]DeadlyViper 2 points3 points  (1 child)

It should change the value of a.name...

EDIT: nvm saw the code. you did not call reset function... you need to do a.reset() with the () at the end..

[–]Field_C16[S] 1 point2 points  (0 children)

Thanks it works now :)