[Tutor] python syntax: underscore
Paul W. Frields
stickster at gmail.com
Thu Jul 12 15:25:24 CEST 2007
On Thu, 2007-07-12 at 13:04 +0100, Michael Connors wrote:
> I was following the thread on about the _("xx") thingy.
> Since then I played around a bit with underscores at the console and
> it seems to me that if you execute code with a return value but you
> dont save the result, then _ is a pointer to this value.
> Is that correct?
'''The special identifier "_" is used in the interactive interpreter to
store the result of the last evaluation; it is stored in the __builtin__
module. When not in interactive mode, "_" has no special meaning and is
Paul W. Frields, RHCE http://paul.frields.org/
gpg fingerprint: 3DA6 A0AC 6D58 FEC4 0233 5906 ACDB C937 BD11 3717
Fedora Project: http://fedoraproject.org/wiki/PaulWFrields
irc.freenode.net: stickster @ #fedora-docs, #fedora-devel, #fredlug
More information about the Tutor