The line is not being executed again.
> /home/ryan/Snake/snake.py(51)__init__()->None
It means: This is the return point of the function because you did not added a return
(because __init__
methods should only return None anyway).
If you check the bytecode, it will show something like that at the end:
28 LOAD_CONST 1 (None)
31 RETURN_VALUE
meaning the function will actually return None
even if it is not specified.
So, pdb
is telling you the function is returning to its caller and it will show the last line of said function to represent that.