Continuing the discussion from Mistake in Python docs? GetString(strings=…) does not return “”:
Wouldn’t it be nice in general if pressing ESC throws an Exception in functions like rs.GetString() rather than return None? Usually if the user presses ESC the program should stop.
If you just didn’t consider this case explicitly in your script it does not react sensibly as it is now: It continues (if this None value does not cause an error later on…) If rs.GetString() threw an exception it would stop and by this react precisely as one should expect.
Plus: As pointed out before, it would be nice to be able to differentiate between ENTER and ESC being pressed.