Re: Try Python update

2006-01-08 Thread Mike Meyer
[EMAIL PROTECTED] (Alex Martelli) writes: > Meanwhile, other JS/DOM experts have told me that there's NO way to set > cursor position within a textarea according to w3c standards. In this > case, what your site does now may be the "least bad" approach, and that > fact might be noted in the "browse

Re: Try Python update

2006-01-08 Thread Alex Martelli
Mike Meyer <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] (Alex Martelli) writes: > > I'm finding it hard to arrange my own experiments with Safari (I'm using > > a loaner machine since my normal one[s] are all having problems and > > under repair) but I'm told the solution for cursor positioning

Re: Try Python update

2006-01-08 Thread Mike Meyer
[EMAIL PROTECTED] (Alex Martelli) writes: > I'm finding it hard to arrange my own experiments with Safari (I'm using > a loaner machine since my normal one[s] are all having problems and > under repair) but I'm told the solution for cursor positioning is to set > the caretPos attribute of the texta

Re: Try Python update

2006-01-08 Thread Alex Martelli
Mike Meyer <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] (Alex Martelli) writes: > > Mike Meyer <[EMAIL PROTECTED]> wrote: > > For some reason, I couldn't see the links at the end of the page; now I > > can, though they look sort of "ragged", but, OK. > > Probably the fonts I chose. I'm in no wa

Re: Try Python update

2006-01-08 Thread Mike Meyer
[EMAIL PROTECTED] (Alex Martelli) writes: > Mike Meyer <[EMAIL PROTECTED]> wrote: > For some reason, I couldn't see the links at the end of the page; now I > can, though they look sort of "ragged", but, OK. Probably the fonts I chose. I'm in no way a good visual designer. I'm hoping someone who is

Re: Try Python update

2006-01-07 Thread Alex Martelli
Mike Meyer <[EMAIL PROTECTED]> wrote: ... > "Known problems" doesn't have URL (isn't "urlable"?) other than > http://www.mird.org/home/mwm/try_python/. It's on that page - click on s/mird/mired/ -- the URL as given goes to some 'oxide' thing. > "Known Problems" to open up the section. That par

Re: Try Python update

2006-01-07 Thread Mike Meyer
[EMAIL PROTECTED] (Alex Martelli) writes: > Mike Meyer <[EMAIL PROTECTED]> wrote: >> And yes, I know about this. It's listed in "Known Problems". Anything > What's the URL to "Known Problems"? There's a strange cursor-placement > bug on Apple's Safari browser (not in Firefox), but I don't want to

Re: Try Python update

2006-01-07 Thread Alex Martelli
Mike Meyer <[EMAIL PROTECTED]> wrote: > And yes, I know about this. It's listed in "Known Problems". Anything What's the URL to "Known Problems"? There's a strange cursor-placement bug on Apple's Safari browser (not in Firefox), but I don't want to add a bug report if you already know about it -

Re: Try Python update

2006-01-07 Thread Devan L
Mike Meyer wrote: > Xavier Morel <[EMAIL PROTECTED]> writes: [Old message and Xavier's question] [Mike's reply to Xavier] > > > Since Python doesn't have any way to secure the interface built-in, > > i'd be interrested in that. > > Devan apparently doesn't have as cooperative an ISP, and is working

Re: Try Python update

2006-01-06 Thread Mike Meyer
Xavier Morel <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> The url is http://www.mired.org/home/mwm/try_python/. Reports of >> problems would appreciated. >> If you want to try an online P{ython tool that lets you save code, >> try >> Devan L's at http://www.datamech.com/devan/trypython/trypyt

Re: Try Python update

2006-01-06 Thread Xavier Morel
Mike Meyer wrote: > After spending time I should have been sleeping working on it, the try > python site is much more functional. It now allows statements, > including multi-line statements and expressions. You can't create code > objects yet, so it's still more a programmable calculator than > any

Re: Try Python update

2006-01-05 Thread Mike Meyer
Steven Bethard <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> The url is http://www.mired.org/home/mwm/try_python/. Reports of >> problems would appreciated. > You're probably already aware of this, but the online help utility > doesn't work. It exits before you can type anything into it: Act

Re: Try Python update

2006-01-05 Thread Steven Bethard
Mike Meyer wrote: > The url is http://www.mired.org/home/mwm/try_python/. Reports of > problems would appreciated. You're probably already aware of this, but the online help utility doesn't work. It exits before you can type anything into it:

Re: Try Python update

2006-01-04 Thread Mike Meyer
"Szabolcs Nagy" <[EMAIL PROTECTED]> writes: > Hello > Thanks for trypython, it's a cool idea Thank you. > I got TryPythonError after an IdentationError and i could not get rid > of it (other than refreshing the page): > > Python 2.4.2 (#3, Dec 16 2005, 23:54:20) > [GCC 2.95.4 20020320 [FreeBSD]]

Re: Try Python update

2006-01-04 Thread Szabolcs Nagy
Hello Thanks for trypython, it's a cool idea I got TryPythonError after an IdentationError and i could not get rid of it (other than refreshing the page): Python 2.4.2 (#3, Dec 16 2005, 23:54:20) [GCC 2.95.4 20020320 [FreeBSD]] on freebsd4 Type "help", "copyright", "credits", or "license" for mor

Re: Try Python update

2006-01-04 Thread Mike Meyer
"Bas" <[EMAIL PROTECTED]> writes: > You could somehow combine the official tuturial (or any other good > introductory text) and make all the examples in the text 'live'. Maybe > use a split screen with the tutorial text on one side and the trypython > console on the other. The newbie could then imm

Re: Try Python update

2006-01-04 Thread Bas
To expand on this idea: You could somehow combine the official tuturial (or any other good introductory text) and make all the examples in the text 'live'. Maybe use a split screen with the tutorial text on one side and the trypython console on the other. The newbie could then immediately try the

Re: Try Python update

2006-01-04 Thread [EMAIL PROTECTED]
> I think that the code constructor (types.CodeType) doesn't take > co_freevars or co_cellvars as an arg, so I can't directly create a new > code object from the attribute of the old one with co_freevars and > co_cellvars. Yay for hidden documentation: "code(argcount, nlocals, stacksize, flags, c

Re: Try Python update

2006-01-03 Thread Devan L
Mike Meyer wrote: > [EMAIL PROTECTED] writes: [comments about Mike Meyer's try python, I think] > > 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? > > Hmm. Are y

Re: Try Python update

2006-01-03 Thread Devan L
[EMAIL PROTECTED] 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 b

Re: Try Python update

2006-01-03 Thread Mike Meyer
[EMAIL PROTECTED] writes: > 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'm doing almost no error catching. I think I catch two

Re: Try Python update

2006-01-03 Thread browerg
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 >>> pro

Re: Try Python update

2006-01-03 Thread Mike Meyer
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > Very nice :) > > I found this online Ruby tutorial: > http://tryruby.hobix.com/ That's what inspired me to create my version. > I think it would be cool to have something similar for Python. Want to > go further and make a nice tutorial to accom

Re: Try Python update

2006-01-03 Thread [EMAIL PROTECTED]
Very nice :) I found this online Ruby tutorial: http://tryruby.hobix.com/ I think it would be cool to have something similar for Python. Want to go further and make a nice tutorial to accompany this :) wy -- http://mail.python.org/mailman/listinfo/python-list

Re: Try Python update

2006-01-01 Thread Mike Meyer
"Devan L" <[EMAIL PROTECTED]> writes: >> > On a side note, my brother has tinkered with the C internals and now >> > __subclasses__ is restricted and many, many os and posix commands are >> > restricted (not that you can get them anyways, since importing is >> > broken!) >> I got import to work by

Re: Try Python update

2006-01-01 Thread Devan L
Mike Meyer wrote: > "Devan L" <[EMAIL PROTECTED]> writes: > >> If you want to try an online P{ython tool that lets you save code, try > >> Devan L's at http://www.datamech.com/devan/trypython/trypython.py. > > My code uses one of the recipes from the Python Cookbook, 7.6 Pickling > > Code Objects.

Re: Try Python update

2006-01-01 Thread Mike Meyer
"Devan L" <[EMAIL PROTECTED]> writes: >> If you want to try an online P{ython tool that lets you save code, try >> Devan L's at http://www.datamech.com/devan/trypython/trypython.py. > My code uses one of the recipes from the Python Cookbook, 7.6 Pickling > Code Objects. It's limited to closures tho

Re: Try Python update

2006-01-01 Thread Devan L
Mike Meyer wrote: > After spending time I should have been sleeping working on it, the try > python site is much more functional. It now allows statements, > including multi-line statements and expressions. You can't create code > objects yet, so it's still more a programmable calculator than > an

Re: Try Python update

2006-01-01 Thread UrsusMaximus
Cool. I think its really a good thing. Could come in handy when one is on a strange Windows machine with no Python installed, or when using a PDA that doesn't have Python etc. And its just a neat feat. ;-))) Ron -- http://mail.python.org/mailman/listinfo/python-list