On 8/3/07, Andre Roberge <[EMAIL PROTECTED]> wrote: > Kirby got a good point - however, I think that you'd still get the "hook" > with newbies without the automatic echoing that Michael describes. >
Not sure we should call this "echoing" as what's happening is an expression is being evaluated. It just so happens that the eval of a quoted string returns itself whereas "some expression with %s" % "substitution" would actually evaluate to non-echo. [EMAIL PROTECTED]:~$ python ./repl.py >>> 'THIS IS A STRING' THIS IS A STRING >>> [x*x for x in range(10)] [0, 1, 4, 9, 16, 25, 36, 49, 64, 81] >>> "1-2-3 %s" % "testing" 1-2-3 testing Would one turn off all of the above, or just the first eval-print? What would be the point of a broken shell, vs explaining that Python, like many languages, features a REPL (read-eval-print loop)? Kirby _______________________________________________ Edu-sig mailing list [email protected] http://mail.python.org/mailman/listinfo/edu-sig
