ANN: (Different) Try Python Beta

Steve Holden steve at holdenweb.com
Wed Dec 28 22:30:52 EST 2005


Devan L wrote:
> I've spent a while putting together a partially working Try Python
> which handles class and function definitions. It also (used to) work
> with imports, but my hacked version of jelly doesn't work with it
> anymore, so only import this works as far as I know. It won't play nice
> if you store the id of an object because the objects are recreated
> every time, but references still work. It also won't let you maintain
> generators or iterators, but you can still put them inside functions to
> use. Printing also adds unnecessary newlines which I haven't fixed yet.
> And no, it doesn't use AJA(X|T), only some javascript to focus the
> input box.
> 
> So here's the link for it:
> < http://www.datamech.com/devan/trypython/trypython.py >
> 
> And if you want to see Mike Meyers' nicer, original one:
> < http://www.mired.org/home/mwm/try_python/ >
> 
> If you want to see the source, send me an email, although you may have
> to gouge your eyes out after reading it.
> 
At first I thought 'the cgitb TypeError message from "import os" is 
impressively drastic :-)'. Then I realised in a later session that 
"import os" only gave an error message after I'd run "import this". 
Thereafter, unfortunately, almost any input - legal or not - appears to 
result in a cgitb trace.

regards
  Steve

-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC                     www.holdenweb.com
PyCon TX 2006                  www.python.org/pycon/




More information about the Python-list mailing list