Re: Which Python web framework is most like Ruby on Rails?

2005-12-16 Thread Mike Meyer
"chuck" <[EMAIL PROTECTED]> writes: >> "it would make Python more popular" isn't an adequate >> justification for a change > I disagree. The world desperately needs programming languages, > frameworks, etc. that allow for the more efficient creation and > maintenance of software application - web

Re: Which Python web framework is most like Ruby on Rails?

2005-12-17 Thread Mike Meyer
[EMAIL PROTECTED] writes: > Mike Meyer wrote: >> It's conceivable that a change might make Python more popular and also >> detract from the language in some way. For a ridiculous example, >> making Python interpret Perl 6 would certainly make it more popular, >&

Re: Changing a shell's current directory with python

2005-12-18 Thread Mike Meyer
Peter Hansen <[EMAIL PROTECTED]> writes: > Andy B. wrote: >> I've got a python utility that I want to change my shell's current >> directory based on criteria it finds. I've scoured google and the >> python cookbook and can't seem to figure out if this is even possible. >> So far, all my attempts

Re: reading files

2005-12-19 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > The text you read is still hanging around, waiting for you to use it. Once > you are done with it, you might want to reclaim that memory used, > especially if it is a 100MB text file: > > mytext = "" # re-bind the name 'mytext' to the empty string If

Re: modify a long-running python script while it is running?

2005-12-19 Thread Mike Meyer
Benjamin Rutt <[EMAIL PROTECTED]> writes: > I suppose this question could be reformatted as "does CPython read the > entire script file into memory and then close the file before > executing the script, making it safe for me to modify the script after > I know it has started?"[1] Yes, but (didn't

Re: Which Python web framework is most like Ruby on Rails?

2005-12-19 Thread Mike Meyer
Benji York <[EMAIL PROTECTED]> writes: > Russell E. Owen wrote: >> I disagree. Once you've picked a database (not trivial in itself, of >> course), you typically only have a few options for talking to in in >> Python. > Perhaps it's off-topic for this thread, but I think "picking a > database" is t

ANNOUNCE; Try python beta

2005-12-19 Thread Mike Meyer
Ok, I've given it the interface I want, and made it less of an attractive nuisance. http://www.mired.org/home/mwm/try_python/ is now ready for people to play with. There's no tutorial information on it yet, that's the next thing to do. However, I won't be able to work on it for a while, so if you

Re: ANNOUNCE; Try python beta

2005-12-19 Thread Mike Meyer
"Lonnie Princehouse" <[EMAIL PROTECTED]> writes: > Pretty neat =) > But aren't you concerned about security? Letting anybody execute > arbitrary Python expressions (and therefore also arbitrary system > commands?!) on your box --- even from within a FreeBSD jail --- seems a > bit dangerous. What'

Re: ANNOUNCE; Try python beta

2005-12-19 Thread Mike Meyer
Claudio Grondi <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> Ok, I've given it the interface I want, and made it less of an >> attractive nuisance. >> http://www.mired.org/home/mwm/try_python/ is now ready for people to >> play with. There's no tuto

Re: ANNOUNCE; Try python beta

2005-12-19 Thread Mike Meyer
"David Wahler" <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> The previous version was in a jail, which is why I didn't want it >> generally announced. The logs made amusing reading. I like Gerhard's >> idea of removing __import__, and have do

Re: ANNOUNCE; Try python beta

2005-12-19 Thread Mike Meyer
[EMAIL PROTECTED] writes: > >> It does work for me in FireFox and Netscape: > >> >>> 1+1 > >> 2 > Mike> Also Safari, Mozilla and Netscape. > I tried 4+3 in Safari and got I've been futzing with it all evening. Various things I've done have broken it in strange ways. It's working n

Re: adding vectors

2005-12-19 Thread Mike Meyer
Paul Rubin writes: > Andy Leszczynski <[EMAIL PROTECTED]> writes: >> Short question: why (1,"abc",0.3)+(2,"def",10.2) != (3,"abcdef",10.5)? >> How to elegantly achieve (3,"abcdef",10.5) as a result of addition ... > tuple([(a+b) for a,b in zip((1,"abc",0.3),(2,"def",10.2

Re: putenv

2005-12-20 Thread Mike Meyer
Terry Hancock <[EMAIL PROTECTED]> writes: > On Tue, 20 Dec 2005 05:35:48 - > Grant Edwards <[EMAIL PROTECTED]> wrote: >> On 2005-12-20, [EMAIL PROTECTED] <[EMAIL PROTECTED]> >> wrote: >> > I have csh script that calls a bunch of python programs >> > and I'd like to use env variables as kind of

Re: Which Python web framework is most like Ruby on Rails?

2005-12-20 Thread Mike Meyer
"Paul Boddie" <[EMAIL PROTECTED]> writes: > Paul Rubin wrote: >> It's been a long-time source of puzzlement to me why so many web sites >> are so slow, and RDBMS overhead is an obvious candidate. So the rant >> seems appropriate even in the case of web apps where clients can cause >> db updates. >

Re: ANNOUNCE; Try python beta

2005-12-20 Thread Mike Meyer
Richie Hindle <[EMAIL PROTECTED]> writes: >> Yeah, I know. I poked at it briefly, but couldn't figure out what was >> goiing on. MSIE on the Mac doesn't work at all (no AJAT), and I don't >> have regular access to a Windows box to try it on. > > I think it's your JavaScript '\r' processing that's b

Re: pythonic equivalent of upvar?

2005-12-20 Thread Mike Meyer
[EMAIL PROTECTED] (David MacKay) writes: « > > I am writing a command-line reader for python. > > I'm trying to write something with the same brevity > as perl's one-liner > > eval "\$$1=\$2" while @ARGV && $ARGV[0]=~ /^(\w+)=(.*)/ && shift; > > and with similar functionality. Why? Do

Re: ANNOUNCE; Try python beta

2005-12-20 Thread Mike Meyer
Richie Hindle <[EMAIL PROTECTED]> writes: >> My assumption is that if splitting on '\n' leaves us with one >> thing, we may have gotten a string that used \r for newlines > Ah, OK. Your comment talks about DOS - that won't happen on DOS (or > Windows) which uses \r\n. I don't know about the Mac.

Re: Which Python web framework is most like Ruby on Rails?

2005-12-20 Thread Mike Meyer
Paul Rubin writes: >> IANAL but that is not my understanding of the GPL. GPL version 2 >> section 2.b) reads, "You must cause any work that you distribute or >> publish, that in whole or in part contains or is derived from the >> Program or any part thereof, to be license

Re: ANNOUNCE; Try python beta

2005-12-21 Thread Mike Meyer
"Maravilloso" <[EMAIL PROTECTED]> writes: > I'm afraid that I've spoiled the "try_python" working by means of > executing the sentence: > > open("try.py").write("\n") > > Sorry. I hope it don't be difficult for you to restore the module again > to the default folder. No problem - I'm not crazy eno

Re: ANNOUNCE; Try python beta

2005-12-21 Thread Mike Meyer
Eric <[EMAIL PROTECTED]> writes: > I'm not sure about everyone else, but I find the big warnings about > CSS and JavaScript almost as annoying as the fact that it doesn't do > anything. At all, even with JavaScript enabled. Then again, my main > browser is elinks, so my opinion is somewhat biased

Re: Herds of cats

2005-12-23 Thread Mike Meyer
Steve Holden <[EMAIL PROTECTED]> writes: > Alex Martelli wrote: >> Not a bad point at all, although perhaps not entirely congruent to >> open >> source: hiring key developers has always been a possibility (net of >> non-compete agreements, but I'm told California doesn't like those). California pl

Re: Trying to find regex for any script in an html source

2005-12-24 Thread Mike Meyer
"28tommy" <[EMAIL PROTECTED]> writes: > Hi, > I'm trying to find scripts in html source of a page retrieved from the > web. > I'm trying to use the following rule: > > match = re.compile('') > > I'm testing it on a page that includes the following source: > >