Report question

Question: How can I capture 'Ctrl-D' in python interactive console?