If I run a python cell with only comments using XPython raw kernel, e.g.
I get
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
IndexError: list index out of range
---------------------------------------------------------------------------
It works fine with XPython non-raw kernel.