I ran into something different today. Consider this simple function:
def hi(): return \'hi\'
If I call it in a Python shell,
It is a feature of the interactive shell. Yes, it is supposed to happen. The benefit is that it makes interactive development more convenient.