On Wed, 13 Nov 2002, at 3:19pm, [EMAIL PROTECTED] 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 <[EMAIL PROTECTED]>
| 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.  |


_______________________________________________
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss

Reply via email to