This will definitely need some tests writing for it.  It might be
possible to just add some additional cases to gdb.python/py-events.exp
to cover this new functionality.
I'll get to that. I'll probably add a completely new test, because I find the Tcl test suites more or less unintelligible, so altering them becomes almost unreasonably difficult to modify and still be sure that the test still tests what it was meant to. If that's ok, that is?

I'll also address the formatting errors (you can ignore v2 - it just contained a bug fix but without the coming changes).

Thanks!