ipython/ipython — pull request #1003 by takluyver (2011-11-15 22:30:20+00:00)
Title: Drop consecutive duplicates when refilling readline history

I'd better fix that bug if I'm getting a tshirt for it.

This operates at the cell level, even if the user disables multiline_history in the terminal, so you can define a multiline function twice, and only have to flip through it once after you start a new session.

There's an added bonus fix for setting the next input at the terminal on Python 3.