On 29 December 2010 16:35, Alexander Belopolsky <firstname.lastname@example.org>
> I like the idea, but that's a fairly big semantic change. What about
> adding an -e option that takes an expression, and prints its value? So
> you'd have
> python -e "12 / 4.1"
> (AFAICT, -e is unused at present).
For some reason I always type -e (for "eval" or "exec"?) before
realizing that it should have been -c.
What do you think python -e "for i in range(5): i" should print?
Note that on >>> prompt:
>>> for i in range(5): i
I'd be happy with the same behaviour as the interactive interpreter.