Humor: The Evolution of a Programmer
bscott at ntisys.com
bscott at ntisys.com
Wed Nov 13 20:47:46 EST 2002
On Wed, 13 Nov 2002, at 3:19pm, sconce at in-spec-inc.com wrote:
> Seriously, earlier posts were correct. When Python evaluates
> an expression at the interactive prompt ...
Ah. All the other "examples" in the OP were intended to be run as files,
so I did the same thing to your snippet. It never occurred to me to feed it
to Python interactively (most likely because I don't know Python).
> As you develop a program you do a lot of that kind of inspection - it's
> only a savings of typing "print" each time, but it adds up. A typically
> "Pythonic" streamlining.
Perl's debugger has a similar feature, except you do need a single-letter
command ('x') before the expression to evaluate. A typically Perlish
streamlining: Abbreviated, inconsistent, and cryptic. ;-)
--
Ben Scott <bscott at ntisys.com>
| The opinions expressed in this message are those of the author and do not |
| necessarily represent the views or policy of any other person, entity or |
| organization. All information is provided without warranty of any kind. |
More information about the gnhlug-discuss
mailing list