browser interface?

Patrick Phalen python-list at teleo.net
Wed Dec 8 03:27:31 EST 1999


[55555, on Tue, 07 Dec 1999]

:: Thanks for the input.  Unfortunately, Zope looks like it's a little over my head, and I'm 
:: not even sure what an application server is, although, I can guess.  Without getting too 
:: complex, is there a way to let the script stay open and "listen" for clicks on a local 
:: web page and then respond by printing new html whenever something happens.  I am guessing 
:: that cgi would do the trick, but as far as I can tell, it would reload the script 
:: everytime something is clicked.  Is that wrong?  I just don't want to open and close an 
:: application 50 times.  Thanks again.

Perhaps we could be more helpful if you'd take a wack at describing in
more detail what you're trying to do.

You say "without getting too complex," but from the sound of it, what
you're looking for is rather complex.

HTTP is, by design, a stateless protocol.  CGI, too, can be thought of
as a sort of stateless remote procedure call; it isn't really connection
oriented and it doesn't natively do what I think you want.

But, again, I'm not clear on what you're looking to do. Maybe a push or 
channel protocol like CDF or RSS?




From: Travis Oliphant <olipt at mayo.edu>
Newsgroups: comp.lang.python
Subject: Re: Converting data to little endian
Date: Tue, 7 Dec 1999 16:35:33 -0600
Organization: Mayo Foundation
Lines: 17
Message-ID: <Pine.LNX.4.10.9912071633420.8424-100000 at us2.mayo.edu>
References: <82jjc6$ks1$1 at nnrp1.deja.com>
NNTP-Posting-Host: us2.mayo.edu
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Trace: tribune.mayo.edu 944606182 29759 129.176.201.54 (7 Dec 1999 22:36:22 GMT)
X-Complaints-To: usenet at mayo.edu
NNTP-Posting-Date: 7 Dec 1999 22:36:22 GMT
To: victor_ng at my-deja.com
In-Reply-To: <82jjc6$ks1$1 at nnrp1.deja.com>
Path: news!uunet!ffx.uu.net!newsfeed1.nyc1.globix.net!news-out.cwix.com!newsfeed.cwix.com!logbridge.uoregon.edu!newshub.tc.umn.edu!mayonews.mayo.edu!us2.mayo.edu!olipt
Xref: news comp.lang.python:77847
Sender: python-list-admin at python.org
Errors-To: python-list-admin at python.org
X-BeenThere: python-list at python.org
X-Mailman-Version: 1.2 (experimental)
Precedence: bulk
List-Id: General discussion list for the Python programming language <python-list.python.org>

> Hi, I was wondering how to get my data to be represented in little
> endian format.  I know that I can use the socket functions to convert to
> network byte order (big endian), but I need to convert to little endian
> (not just the host byte order).

One possibility is to use the NumPy extensions and store your data in a
multiarray object.  There is a byteswapped method of the multiarray object
that lets you byteswap your data.  There is also a way to check the
endianness of your machine (so you can determine whether or not to
byteswap).

Good luck,

Travis





More information about the Python-list mailing list