Using gnu readline in my own python program?
Hi...I'm a newbie to python, and very confused. I'm writing a simple program and want the user to be able to edit a line that I display using the full gnu readline capabilitites. (For example, control+a to go to the beginning of the line.) Then I want to be able to read the line after it's been edited... I know that with perl I would do this with some variation on term::readline. I've looked at the readline and code packages under Python but I can't make heads or tails of them. The readline example in the docs is way over my head. Any ideas? Thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: Using gnu readline in my own python program?
raw_input is an excellent suggestion, and almost exactly what I want. But, I want to give the user a string to edit, not have them start from scratch inputting a string. Any other ideas? -- http://mail.python.org/mailman/listinfo/python-list
Impersonating other broswers...
So I wrote a quick python program (my first ever) that needs to download pages off the web. I'm using urlopen, and it works fine. But I'd like to be able to change my browser string from "Python-urllib/1.15" to instead impersonate Internet Explorer. I know this can be done very easily with Perl, so I'm assuming it's also easy in Python. How do I do it? -- http://mail.python.org/mailman/listinfo/python-list