We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.



Equivalent to eval(raw_input(prompt)).

Warning: This function is not safe from user errors! It expects a valid Python expression as input; if the input is not syntactically valid, a SyntaxError will be raised. Other exceptions may be raised if there is an error during evaluation. (On the other hand, sometimes this is exactly what you need when writing a quick script for expert use.)

If the readline module was loaded, then input will use it to provide elaborate line editing and history features.

Consider using the raw_input function for general input from users.