On Fri, Jan 25, 2013 at 2:54 AM, rusi <rustompm...@gmail.com> wrote:
> - last expression with _ (underscore)

Small terminology quibble: That's not last expression, but last non-None result.

>>> 1+2
3
>>> _
3
>>> _,None
(3, None)
>>> _
(3, None)
>>> _[1]
>>> _
(3, None)

Otherwise, agree totally. Get to know the interactive interpreter, and
keep it handy.

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to