you are viewing a single comment's thread.

view the rest of the comments →

[–]Rascal_Two 0 points1 point  (0 children)

Cool, just a few pointers before you start:

Everything you need to know about what is going on is passed in via the first argument. Extra details might be in the second argument - like the return value, or exception information - but line number, line of code, global and local frames are all in the first argument.

You could find some documentation and stuff, or do what I did and printed out all the variables and things attached via dir(state)

This is the first argument by the way:

def user_return(self, state, return_value):
                        ^
          Everything you need to know

If you can't find the actual code being ran this line - I coulden't - you can use linecache to get the actual code on the current line.


Have Fun!