Try Python update

Devan L devlai at gmail.com
Wed Jan 4 00:21:30 EST 2006


browerg at verizon.net wrote:
> I like the form, no matter what its limitations may be. Three notes:
>
> It might be a good way to catch newbi mistakes (those are the kind I
> make :P, thereby providing a feedback loop to improved error messages.
>
> I had no trouble with from math import *  followed by print pi, but
> there was no >>> prompt after the result appeared .. is that part of
> the 'closures' thing mentioned earlier?
>
> Then I followed you "type 'help'" suggestion, which had me in stitches
> (sorry, it's been a long day and the Knob Creek was kicking in) -- I
> got exactly the message you'd expect, about help not being recognized
> and maybe help() would work. That's what triggered the idea for
> trapping errors.
>
> Nice work!
>
> George

Uh, I'm messing with import right now, but essentially, I wouldn't
recommend importing (one line __import__ hacks only!) or printing.




More information about the Python-list mailing list