If you're using an operating system supporting the readline utility try: http://www.python.org/doc/current/tut/node15.html
I am using a slightly modified version of the given example. The last time I checked the size of my history file it had 4k+ entries. Regards, Patrick -- 2 does not equal 3. Even for large values of 2. -- http://mail.python.org/mailman/listinfo/python-list