input

input([prompt])

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.

 

A Django site. this page was rendered by a django application in 0.01s 2008-12-04 01:49:23.054196. hosted by webfaction.