Re: Need "Billy the Kid" modul for windows

2006-07-06 Thread alex23
> There is a nice modul called "BtK" at > http://home.student.utwente.nl/g.v.berg/btk/ > Has someone a link for btk-python on windows? Hey spooky, I haven't seen a Windows version of BtK anywhere. Have you seen these alternative wrappers around libpcap? Could they help you out? * pylibpcap: http

Re: How to trap the event of a new process starting with wmi

2006-07-06 Thread placid
gel wrote: > > > > Do you have any docs that might help me? the only information i have is from using help(wmi.WMI) and from the examples on Tim Golden's website > > > What would be the best way to watch for multiple pieces of software at > the same time, eg. watching for the start up of calc.ex

Re: Looking for a high performance web server written in Python, and supports CGI/FastCGI

2006-07-06 Thread Jack
>> I will have to install lighttpd or other web servers. > > do that. > > If all you need is a webserver there's little reason to have it in > python. Just use one of the several high quality open source webservers. If it is a Python web server, it would be nice to extend it by putting code right

Re: Making a time series analysis package in python - advice or assistancesought

2006-07-06 Thread Terry Reedy
"Ray Tomes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > My package will have the following capabilities: > 1. Able to read time series data in a variety of formats. > 2. Able to create, manipulate and save time series files. > 3. Able to do vector arithmetic on time series, incl

Re: Nested scopes, and augmented assignment

2006-07-06 Thread Terry Reedy
"Antoon Pardon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > And if Nested variables are harmfull, I don't know if anyone said that they were, but Guido obviously does not think so, or he would not have added them. So skip that. > what is then the big difference between rebi

Re: [Mailman-Developers] Parsing and Rendering rfc8222

2006-07-06 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jul 6, 2006, at 1:56 PM, Brad Knowles wrote: > Barry said: > >> We should certainly do everything we can to make sure that Richard's >> ht:dig solution is nearly trivial to integrate, but I'm not sure we >> should distribute it with Mailman. > > So

Re: Making a time series analysis package in python - advice or assistance sought

2006-07-06 Thread Tim Leslie
Hi Ray, As a first step you might want to look at numpy/scipy/matplotlib numpy (numpy.scipy.org) provides the underlying data structures (array and matrices among other things) you require. This will handle all your vector stuff, reading/writing to and from files, "loop macros", etc. scipy (www.

Solution for XML-RPC over a proxy

2006-07-06 Thread Andrew R
All, I couldn't get my xml-rpc script to work via a corporate proxy. I noticed a few posts asking about this, and a very good helper script by jjk on starship. That script didn't work for me, and I think its a little old -- but it was very helpful to figure it out. The below script is a replacem

Re: Launching multiple instances of a program with win32com.client.Dispatch?

2006-07-06 Thread Roger Upole
win32com.client.DispatchEx should create a new instance. Roger <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi there, I am trying to launch a program called AmiBroker using the > command: > > AB = win32com.client.Dispatch("Broker.Application") > > However, I have a dual-co

Re: Python SOAP and XML-RPC performance extremely low?

2006-07-06 Thread Jack
No, I'm not using any accelerator. The code is extremely simple (from toofpy): # XML-RPC test import xmlrpclib srv = xmlrpclib.Server('http://localhost:4334/RPC2/greeting') print srv.greeting('you', 5) # SOAP test import SOAPpy srv = SOAPpy.SOAPProxy('http://localhost:4334/SOAP/greeting') print

Re: Looking for a high performance web server written in Python, and supports CGI/FastCGI

2006-07-06 Thread Jack
>> I will have to install lighttpd or other web servers. > > do that. > > If all you need is a webserver there's little reason to have it in > python. Just use one of the several high quality open source webservers. lighttpd is a great web server. I just didn't want to bother download the source,

Re: Looking for a high performance web server written in Python, and supports CGI/FastCGI

2006-07-06 Thread Jack
To be honest, I'm not sure what kind of performance I can get even with medusa or twisted. I assume it won't be as fast as servers written in C/C++ and use async sockets, but should be much better than multi-processed or multi-threaded servers in written in Python. Not sure if anyone else has an i

Making a time series analysis package in python - advice or assistance sought

2006-07-06 Thread Ray Tomes
Hi Folks I am an old codger who has much experience with computers in the distant past before all this object oriented stuff. Also I have loads of software in such languages as FORTRAN and BASIC, QBASIC etc that is very useful except that it really doesn't like to run on modern operating systems a

Re: fetching a POST webpage...

2006-07-06 Thread reed
bruce wrote: > hi... > > i have the basic code to fetcha url/web page. however, i'm trying to fetch a > page that uses a FORM/POST. has anyone done this, i've tried a few times > without success. > > i've analyzed the data stream using Firefox/Livehttpheaders to get the HTTP > stream.. but i'm doi

Launching multiple instances of a program with win32com.client.Dispatch?

2006-07-06 Thread tyler . schlosser
Hi there, I am trying to launch a program called AmiBroker using the command: AB = win32com.client.Dispatch("Broker.Application") However, I have a dual-core CPU and would like to launch two instances of AmiBroker. I know it is possible to run two instances simultaneously since it is easy to do m

fetching a POST webpage...

2006-07-06 Thread bruce
hi... i have the basic code to fetcha url/web page. however, i'm trying to fetch a page that uses a FORM/POST. has anyone done this, i've tried a few times without success. i've analyzed the data stream using Firefox/Livehttpheaders to get the HTTP stream.. but i'm doing something wrong, and can'

Re: How to trap the event of a new process starting with wmi

2006-07-06 Thread gel
gel wrote: > placid wrote: > > > gel wrote: > > > placid wrote: > > > > > > > gel wrote: > > > > > gel wrote: > > > > > > > > > > > Below is how it is down with vbscript. What is the best way to > > > > > > convert > > > > > > this to python? > > > > > > > > > > > > strComputer = "." > > > > >

Re: Python password display

2006-07-06 Thread T Vantanen
On Thu, 06 Jul 2006 06:39:38 -0700, Johhny wrote: > Hello, > > I am currently writing some python code which requires the use of a > password. Currently I am using the raw_input function to take the users > input in and use it. One problem with that is the password is displayed > in clear text on

Re: for loop question

2006-07-06 Thread York
for a in range(2, len(foo)): print a or maybe you need for a in range(1, len(foo)): print a ? York bruce wrote: > hi.. > > basic foor/loop question.. > > i can do: > > for a in foo > print a > > if i want to do something like > for a, 2, foo > print foo > > where go from 2, to foo

Re: GPG.py adapted to use subprocess, for Windows?

2006-07-06 Thread Les Schaffer
Les Schaffer wrote: > errr, THIS GPG module: http://www.historical-id.info/files/python/GPG.py sigh, actually its updated version: http://trac.t7a.org/isconf/browser/trunk/lib/python/isconf/GPG.py looks like i can use the subprocess module straight instead of the PopenHI, except for the complica

Re: GPG.py adapted to use subprocess, for Windows?

2006-07-06 Thread Les Schaffer
Les Schaffer wrote: > Does anyone know if the GPG.py module errr, THIS GPG module: http://www.historical-id.info/files/python/GPG.py Les -- http://mail.python.org/mailman/listinfo/python-list

GPG.py adapted to use subprocess, for Windows?

2006-07-06 Thread Les Schaffer
Hi: Does anyone know if the GPG.py module has been updated to use the subprocess module from python 2.4. My web searches find only the original GPG module that requires a fork() -- according to my quick tests anyway. i was about to adapt this to use subprocess, for Windows, but thought i would ask

Re: poplib Q

2006-07-06 Thread Neil Hodgson
SuperHik: > I did ofc, but I noticed something strange... > *my* socket module really doesn't have SSL object, > even tho it's listed in the documentation... > (not the online docs, but docs that came with my Python version) > ffs how can that be! You are probably using ActiveState's distribu

Re: How to trap the event of a new process starting with wmi

2006-07-06 Thread gel
placid wrote: > gel wrote: > > placid wrote: > > > > > gel wrote: > > > > gel wrote: > > > > > > > > > Below is how it is down with vbscript. What is the best way to > > > > > convert > > > > > this to python? > > > > > > > > > > strComputer = "." > > > > > Set objWMIService = GetObject("winmgm

Re: for loop question

2006-07-06 Thread Daniel Haus
> Except that in the OP's example foo was a sequence, not an > integer. I think. Yes, possibly. But then, what's "from 2 to foo"? this way it might be for a in [2] + foo: print a -- http://mail.python.org/mailman/listinfo/python-list

Re: for loop question

2006-07-06 Thread Grant Edwards
On 2006-07-06, Daniel Haus <[EMAIL PROTECTED]> wrote: >> i can do: >> >> for a in foo >> print a >> >> if i want to do something like >> for a, 2, foo >> print foo >> >> where go from 2, to foo.. > just do: > > for a in range(2, foo+1): > print a Except that in the OP's example foo

RE: for loop question

2006-07-06 Thread bruce
'ppreaciate the answers duh... -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Daniel Haus Sent: Thursday, July 06, 2006 2:02 PM To: python-list@python.org Subject: Re: for loop question just do: for a in range(2, foo+1): print a range(a

Re: Module for creating a screenshot of a web page given a URL?

2006-07-06 Thread dananrg
> Untestetd, but I'm pretty sure something like this will do. > If you need more control, and on windows, try pywinauto I do need it to run on Windows. I'll check out pywinauto. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Fork You.. Forking and threading..

2006-07-06 Thread rh0dium
Hi Nick! This is much better than the kludge job I did - Thanks for the help!! Nick Craig-Wood wrote: > rh0dium <[EMAIL PROTECTED]> wrote: > > I have a problem with putting a job in the background. Here is my > > (ugly) script which I am having problems getting to background. There > > are

Re: for loop question

2006-07-06 Thread Daniel Haus
just do: for a in range(2, foo+1): print a range(a, b) gives [a, a+1, a+2, ..., b-2, b-1] bruce schrieb: > hi.. > > basic foor/loop question.. > > i can do: > > for a in foo > print a > > if i want to do something like > for a, 2, foo > print foo > > where go from 2, to foo.. > >

Re: for loop question

2006-07-06 Thread Preston Hagar
On 7/6/06, bruce <[EMAIL PROTECTED]> wrote: hi..basic foor/loop question..i can do: for a in foo  print aif i want to do something like  for a, 2, fooprint foowhere go from 2, to foo..i can't figure out how to accomplish this... can someone point me to how/where this is demonstrated...You might

Re: wxPython and Linux dependencies

2006-07-06 Thread Nick Vatamaniuc
John, To see where Python is looking for libraries open an interactive Python prompt and type >>> import sys >>> print sys.path You will get a list of paths where Python will look for modules. Also check to see if you have the PYTHONPATH environment variable set. If /usr/lib is not in the path list

for loop question

2006-07-06 Thread bruce
hi.. basic foor/loop question.. i can do: for a in foo print a if i want to do something like for a, 2, foo print foo where go from 2, to foo.. i can't figure out how to accomplish this... can someone point me to how/where this is demonstrated... found plenty of google for for/loo

Re: RegEx conditional search and replace

2006-07-06 Thread Blair P. Houghton
mbstevens wrote: > In such a case you may need to make the page > into one string to search if you don't want to use some complex > method of tracking state with variables as you move from > string to string. In general it's a very hard problem to do stateful regexes. I recall something from las

Re: wxPython and Linux dependencies

2006-07-06 Thread diffuser78
How can we find that it is not using the right version of Python ? John Salerno wrote: > [EMAIL PROTECTED] wrote: > > Error message "cannot find wx" > > > > infact I have wxpython in /usr/lib/ > > > > I installed it using the rpms given on the wxPython website. Do I need > > to set some path or so

Re: what's wrong here? (search script)

2006-07-06 Thread Brendan Fay
I figured it out. Is there any way to delete your own posts? Brendan Fay wrote: > Dear Someone: > > I have written a script that accesses the googleAPI through > pygoogle and saves each of the ten documents as a .txt file by using a > specific function for each respective file type (.doc, .p

Re: wxPython and Linux dependencies

2006-07-06 Thread John Salerno
[EMAIL PROTECTED] wrote: > Error message "cannot find wx" > > infact I have wxpython in /usr/lib/ > > I installed it using the rpms given on the wxPython website. Do I need > to set some path or something. Could it be that it is trying to use another, pre-installed version of Python -- one whic

strange i/o delay problem in socket,

2006-07-06 Thread [EMAIL PROTECTED]
Hi guys, I have got some strange system behaviors regarding i/o delays in socket in python, here's the details: I'm writing a web proxy like program that intercepts and redirects requests from clients to my tomcat server, this proxy is written in python, and i'm starting a new thread to handle (red

Re: wxPython and Linux dependencies

2006-07-06 Thread diffuser78
Error message "cannot find wx" infact I have wxpython in /usr/lib/ I installed it using the rpms given on the wxPython website. Do I need to set some path or something. Nick Vatamaniuc wrote: > "cannot get it to work." is pretty broad, you are more likely to get > help if you post an error messa

Re: Web Browser Pygame Plug-in?

2006-07-06 Thread 3KWA
Gregory Piñero wrote: > I was just idley curious on what it would take to make a web plug-in > for Pygame. I'm picturing it working the way my browser currently > shows flash games. Is such an idea even possible? Has anyone > attempted this? Not a plugin but at Europython the PyPy crew presente

Re: wxPython and Linux dependencies

2006-07-06 Thread Nick Vatamaniuc
"cannot get it to work." is pretty broad, you are more likely to get help if you post an error message or any other details. [EMAIL PROTECTED] wrote: > Hi, > > I wrote a small app using wxPython on a Linux distro called Ubuntu (it > is a debain derivative). I ran it on windows and it just worked >

wxPython and Linux dependencies

2006-07-06 Thread diffuser78
Hi, I wrote a small app using wxPython on a Linux distro called Ubuntu (it is a debain derivative). I ran it on windows and it just worked perfectly. Now, when I am trying to install the same app on a different Linux Distro (Red Hat Linux) I cannot get it to work. This Red Hat variant is a customi

Re: web app breakage with utf-8

2006-07-06 Thread elmo
On Thu, 06 Jul 2006 19:41:32 +, elmo wrote: > I guess it could be a new MySQLdb issue causing breakage. > Replying to self, this is *very* close to the problem: http://sourceforge.net/tracker/index.php?func=detail&aid=1438913&group_id=22307&atid=374932 -- http://mail.python.org/mailman/lis

Re: I thought I'd 'got' globals but...

2006-07-06 Thread Bruno Desthuilliers
meridian a écrit : > You mentioned earlier that > "Modifying globals from within a function is usually a very bad idea." > > Most of my app consists of functions or class/object functions, that's > all I do in OOP. > Did you mean that modifying globals from anywhere is bad? Yes, definitively. Ev

Re: web app breakage with utf-8

2006-07-06 Thread elmo
On Thu, 06 Jul 2006 19:16:53 +0200, Stefan Behnel wrote: >> >> Is there a correct way to handle text input from a when the page is >> utf-8 and that input is going to be used in SQL statements? I've tried >> things like (with no success): >> sql = u"select * from blah where col='%s'" % input >

Re: Nested scopes, and augmented assignment

2006-07-06 Thread Antoon Pardon
On 2006-07-06, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Antoon Pardon wrote: >> On 2006-07-05, Piet van Oostrum <[EMAIL PROTECTED]> wrote: >> >>It's not about "finding a name/identifier", it's about the difference >>between (re)binding a name and mutating an object. >>> AP> The

Re: I thought I'd 'got' globals but...

2006-07-06 Thread Bruno Desthuilliers
meridian a écrit : > Bruno Desthuilliers wrote: > >>meridian wrote: >> >>>Bruno Desthuilliers wrote: >>> >>> def doIt(name=None): global gname if name is None: name = gname else: gname = name >>> >>> >>>Thanks Bruno, works a treat... >>> >> >>But still very pr

RE: string/list comparison

2006-07-06 Thread bruce
thanks tim... the strip should have been 'sstr.strip()'< thanks -Original Message- From: Tim Chase [mailto:[EMAIL PROTECTED] Sent: Thursday, July 06, 2006 12:17 PM To: [EMAIL PROTECTED] Cc: python-list@python.org Subject: Re: string/list comparison > sstr = sesslist[0] <<

Re: Nested scopes, and augmented assignment

2006-07-06 Thread Antoon Pardon
On 2006-07-06, Piet van Oostrum <[EMAIL PROTECTED]> wrote: >>AP> Aren't we now talking about implementation details? Sure the compilor >>AP> can set things up so that local names are bound to the local scope and >>AP> so the same code can be used. But it seems somewhere was made the >>AP> decision

Re: string/list comparison

2006-07-06 Thread Tim Chase
> sstr = sesslist[0] << these should be the same > trstr = trlist[3]<< "Summer A" > > sstr.strip(sstr) > trstr.strip(trstr) > > print "slen = ",len(sstr) > print "trlen = ",len(trstr) Have you tried printing the repr(sstr) and repr(trstr) to see

string/list comparison

2006-07-06 Thread bruce
hi... i have the following piece of code that i'm testing... it should be using/comparing two equal strings. apparently it doesn't. i've tried to do a "strip" to remove pre/post whitespace.. but there appears to be something else going on. i suspect that there is some type of unicode going on. is

Re: EnhancedObject: Yet Another Python ORM (an RFC)

2006-07-06 Thread [EMAIL PROTECTED]
> No, but it is a design point of Dejavu. > EAssociation -> HasA and HasMany? How is that different from Dejavu's > UnitAssociation -> ToOne and ToMany? Hum, I'll give Dejavu and SQLALchemy a better look, with sure. I should be feeling like this guy now: http://nerd.newburyportion.com/2005/11/ev

Re: [Mailman-Developers] Parsing and Rendering rfc2822

2006-07-06 Thread John Dennis
On Thu, 2006-07-06 at 14:17 -0400, John Dennis wrote: > ... don't forget for those folks who dislike > pipermail one can with minimal effort use an external archiver. Oh, and I should have added that one of the beefs with using an external archiver is the disjoint UI between mailman and the archi

Re: poplib Q

2006-07-06 Thread SuperHik
Paul McGuire wrote: > "SuperHik" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Hi! >> >> I want to connect to gmail but... >> It requires SSL so I worte: >> >> >>> import poplib >> >>> server = poplib.POP3_SSL('pop.gmail.com',995) >> Traceback (most recent call last): >>Fil

Re: Python SOAP and XML-RPC performance extremely low?

2006-07-06 Thread Boris Borcic
Jack wrote: > When I try TooFPy with the SOAP and XML-RPC sample client code > provided in TooFPy tutorials, a log entry shows up quickly on web server > log window, but it takes a long time (5 seconds or longer) for the client > to output a "Hello you." It seems like the web server is fast because

Web Browser Pygame Plug-in?

2006-07-06 Thread Gregory Piñero
Hi guys, I was just idley curious on what it would take to make a web plug-in for Pygame. I'm picturing it working the way my browser currently shows flash games. Is such an idea even possible? Has anyone attempted this? -- Gregory Piñero Chief Innovation Officer Blended Technologies (www.ble

Re: [Mailman-Developers] Parsing and Rendering rfc2822

2006-07-06 Thread John Dennis
On Thu, 2006-07-06 at 13:45 -0400, Brad Knowles wrote: > [ snip discussion of fixing pipermail and alternate archivers ] > But this is a pretty big undertaking. I'm 100% with Brad on this, this is a huge chunk of work, probably a project in its own regard. Would you really finish this during yo

Re: poplib Q

2006-07-06 Thread Paul McGuire
"SuperHik" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi! > > I want to connect to gmail but... > It requires SSL so I worte: > > >>> import poplib > >>> server = poplib.POP3_SSL('pop.gmail.com',995) > Traceback (most recent call last): >File "", line 1, in ? >File "C:\

poplib Q

2006-07-06 Thread SuperHik
Hi! I want to connect to gmail but... It requires SSL so I worte: >>> import poplib >>> server = poplib.POP3_SSL('pop.gmail.com',995) Traceback (most recent call last): File "", line 1, in ? File "C:\Python24\lib\poplib.py", line 359, in __init__ self.sslobj = socket.ssl(self.sock, s

Re: Looking for a high performance web server written in Python, and supports CGI/FastCGI

2006-07-06 Thread Istvan Albert
Jack wrote: > I will have to install lighttpd or other web servers. do that. If all you need is a webserver there's little reason to have it in python. Just use one of the several high quality open source webservers. -- http://mail.python.org/mailman/listinfo/python-list

Re: [Mailman-Developers] Parsing and Rendering rfc8222

2006-07-06 Thread Brad Knowles
Barry said: > We should certainly do everything we can to make sure that Richard's > ht:dig solution is nearly trivial to integrate, but I'm not sure we > should distribute it with Mailman. Sorry, I guess I wasn't clear -- I just meant for him to look at both Python and non-Python solutions, befo

Re: lxml and SimpleXMLWriter

2006-07-06 Thread Stefan Behnel
Srijit Kumar Bhadra wrote: > I am new to lxml. I am interested to know the equivalent code using > lxml (http://cheeseshop.python.org/pypi/lxml/1.1alpha). The code is > taken from http://effbot.org/zone/xml-writer.htm > > from elementtree.SimpleXMLWriter import XMLWriter > import sys > > w = XMLW

Re: [Mailman-Developers] Parsing and Rendering rfc2822

2006-07-06 Thread Brad Knowles
Ethan quoted John Dennis: >> It's not at all clear to me that mailman should be responsible for >> archiving. > > While I am somewhat in agreement, the current situation is that > archiving comes bundled with mailman and represents a significant > weakness in its current web UI. Not doing anything

Re: XML-RPC server-client communication

2006-07-06 Thread Stefka
no, its an extern IP adress. For my needs the server and the client must be on different machines. But I opened the port and it worked. Thanks anyway :) Greetz, Stefka Marco Aschwanden wrote: > > server = SimpleXMLRPCServer.SimpleXMLRPCServer(("xxx.xxx.xxx.xxx", > > 22999)) > > Could it be that x

Re: handling unicode data

2006-07-06 Thread Filipe
Dennis Lee Bieber wrote: > The setting most likely has to be made on the machine running the > server -- and M$ SQL Server doesn't exist on Linux either > > If the conversion was being done by some client library on Windows, > then again, since that library probably doesn't exist on L

what's wrong here? (search script)

2006-07-06 Thread Brendan Fay
Dear Someone: I have written a script that accesses the googleAPI through pygoogle and saves each of the ten documents as a .txt file by using a specific function for each respective file type (.doc, .pdf, .html) to convert it to such. Everything works fine, except that I am trying to make i

Re: web app breakage with utf-8

2006-07-06 Thread Stefan Behnel
elmo wrote: > Hello, after two days of failed efforts and googling, I thought I had > better seek advice or observations from the experts. I would be grateful > for any input. > > We have various small internal web applications that use utf-8 pages for > storing, searching and retrieving user inpu

Re: Python SOAP and XML-RPC performance extremely low?

2006-07-06 Thread skip
Jack> When I try TooFPy with the SOAP and XML-RPC sample client code Jack> provided in TooFPy tutorials, a log entry shows up quickly on web Jack> server log window, but it takes a long time (5 seconds or longer) Jack> for the client to output a "Hello you." For XML-RPC are you u

Re: python/xpath question...

2006-07-06 Thread Stefan Behnel
bruce wrote: > for guys with python/xpath expertise.. > > i'm playing with xpath.. and i'm trying to solve an issue... > > i have the following kind of situation where i'm trying to get certain data. > > i have a bunch of tr/td... > > i can create an xpath, that gets me all of the tr.. i only w

Re: Looking for a high performance web server written in Python, and supports CGI/FastCGI

2006-07-06 Thread Jean-Paul Calderone
On Thu, 6 Jul 2006 09:36:25 -0700, Jack <[EMAIL PROTECTED]> wrote: >Basically I am trying to find a high performance web server. Since >Python is installed on all of the servers, It'll be great if the web >server is written in Python as well. Otherwise, I will have to install >lighttpd or other web

Re: Very practical question

2006-07-06 Thread Simon Forman
madpython wrote: > ... > self.b=Tkinter.Button(root,txt="Button",command=self.doSmth).pack() > self.l=Tkinter.Label(root,txt="default").pack() > def doSmth(self): > var=globals()["m"].__dict__["progLogic"].func("some > input") > self.l.config(txt=var) > self.l.update_

Looking for a high performance web server written in Python, and supports CGI/FastCGI

2006-07-06 Thread Jack
Basically I am trying to find a high performance web server. Since Python is installed on all of the servers, It'll be great if the web server is written in Python as well. Otherwise, I will have to install lighttpd or other web servers. Then the largest issue with Python-based web servers is perf

Python SOAP and XML-RPC performance extremely low?

2006-07-06 Thread Jack
When I try TooFPy with the SOAP and XML-RPC sample client code provided in TooFPy tutorials, a log entry shows up quickly on web server log window, but it takes a long time (5 seconds or longer) for the client to output a "Hello you." It seems like the web server is fast because the log entry show

web app breakage with utf-8

2006-07-06 Thread elmo
Hello, after two days of failed efforts and googling, I thought I had better seek advice or observations from the experts. I would be grateful for any input. We have various small internal web applications that use utf-8 pages for storing, searching and retrieving user input. They have worked fine

python/xpath question...

2006-07-06 Thread bruce
for guys with python/xpath expertise.. i'm playing with xpath.. and i'm trying to solve an issue... i have the following kind of situation where i'm trying to get certain data. i have a bunch of tr/td... i can create an xpath, that gets me all of the tr.. i only want to get the sibling tr up un

Re: Activate a daemon several times a day

2006-07-06 Thread Simon Forman
Yves Glodt wrote: > while True: > if now(hours) in runat: > act() > sleep(60) > sleep(10) > Note that, if "now(hours)" *is* in runat, this loop will sleep 70 seconds, not 60. It probably doesn't matter. -- http://mail.python.org/mailman/listinfo/python

Re: Activate a daemon several times a day

2006-07-06 Thread Simon Forman
Yves Glodt wrote: > Hi, > > I have a daemon which runs permanently, and I want it to do a special > operation at some specifiy times every day, consider this configfile > extract: > > [general] > runat=10:00,12:00 > > > What would be the easiest and most pythonic way to do this? > Something like th

Re: Activate a daemon several times a day

2006-07-06 Thread Amit Khemka
did you considered using signals ?! I guess that could well serve the purpose .. more of signals: http://docs.python.org/lib/module-signal.html cheers, amit. On 7/6/06, Yves Glodt <[EMAIL PROTECTED]> wrote: > Hi, > > I have a daemon which runs permanently, and I want it to do a special > operat

Re: ElementTree : parse string input

2006-07-06 Thread Amit Khemka
> On 6 Jul 2006 07:38:10 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Any pointers to getting ElementTree to parse from a string would be > appreciated (of course I could dump it to a temp file, but that doesn't > seem elegent) You can use the "fromstring" method. Btw, did you looked at c

Re: setting variables from a tuple NEWB

2006-07-06 Thread nate
manstey wrote: > Hi, > > If I have a tuple like this: > > tupGlob = (('VOWELS','aeiou'),('CONS','bcdfgh')) > > is it possible to write code using tupGlob that is equivalent to: > VOWELS = 'aeiou' > CONS = ''bcdfgh' could you use a dictionary instead? i.e. >>> tupGlob = {'VOWELS':'aeiou', 'CONS':'

fastcgi: how to accept HTTP requests, and return a result

2006-07-06 Thread thorley
Greetings, I'm now merrily on my way developing a FastCGI Server in python. Thanks to help of others on this list I've got a proof of concept up and running. Herein lies my question: My goal is to make this module as flexible as possible, so that it can receive requests from SimpleHTTP, or Cherrpy

Re: Nested scopes, and augmented assignment

2006-07-06 Thread Piet van Oostrum
> Antoon Pardon <[EMAIL PROTECTED]> (AP) wrote: >AP> Well if someone explains what is wrong about my understanding, I >AP> certainly care about that (although I confess to sometimes being >AP> impatient) but someone just stating he is not sure I understand? That is just a euphemistic way of s

Re: handling unicode data

2006-07-06 Thread Filipe
Hi Martin, > One would have to ask the authors of pymssql, or Microsoft, > why that happens; alternatively, you have to run pymssql > in a debugger to find out yourself. Tried running pymssql in a debugger, but I felt a bit lost. There are too many things I would need to understand about pymssql

Re: looping question 4 NEWB

2006-07-06 Thread Simon Forman
[EMAIL PROTECTED] wrote: > manstey: > > is there a faster way of implementing this? Also, does the if clause > > increase the speed? > > I doubt the if increases the speed. The following is a bit improved > version: > > # Original data: > data = 'asdfbasdf' > find = (('a', 'f'), ('s', 'g'), ('x', '

Re: mirroring object attributes using xml-rpc

2006-07-06 Thread skip
sashang> Then the client code can get the value of i like this: sashang> c = xmlrpclib.ServerProxy("address") sashang> c.geti() sashang> but why can't I get the value of i like this? sashang> c.i "RPC" stands for "Remote Procedure Call". You're looking for a remote object a

Re: looping question 4 NEWB

2006-07-06 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, manstey wrote: > I often have code like this: > > data='asdfbasdf' > find = (('a','f')('s','g'),('x','y')) > for i in find: >if i[0] in data: >data = data.replace(i[0],i[1]) > > is there a faster way of implementing this? Also, does the if clause > increase th

Re: setting variables from a tuple NEWB

2006-07-06 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Paul McGuire wrote: tupGlob = (('VOWELS','aeiou'),('CONS','bcdfgh')) for nam,val in tupGlob: locals()[nam]=val > ... VOWELS > 'aeiou' CONS > 'bcdfgh' Little warning: It works only on module level as assigning to `locals()` return value in function

Re: Countdown timer for different timezones

2006-07-06 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Dirk Hagemann wrote: > I'd like to implement a countdown timer on a webite. It should show the > months, days, hours, minutes and seconds until a given date and time. > So far it's not really difficult, but this website will be used from > different time zones, what will ma

Re: searching for strings (in a tuple) in a string

2006-07-06 Thread Simon Forman
manstey wrote: > Hi, > > I often use: > > a='yy' > tup=('x','yy','asd') > if a in tup: ><...> > > but I can't find an equivalent code for: > > a='xfsdfyysd asd x' > tup=('x','yy','asd') > if tup in a: >< ...> > > I can only do: > > if 'x' in a or 'yy' in a or 'asd' in a: ><...> > > but

Re: ElementTree : parse string input

2006-07-06 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > Hi, recently having discovered ElementTree I'm stumped by a very simple > problem, which I can't find the answer to. > > I have some XML in a string object. Now the parse() method of > ElementTree takes a filename or file-like object. So I tried creating a > StringIO ob

Re: setting variables from a tuple NEWB

2006-07-06 Thread Paul McGuire
"manstey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > If I have a tuple like this: > > tupGlob = (('VOWELS','aeiou'),('CONS','bcdfgh')) > > is it possible to write code using tupGlob that is equivalent to: > VOWELS = 'aeiou' > CONS = ''bcdfgh' > > Thanks, > Matthew > Try

Re: numarray

2006-07-06 Thread Claudio Grondi
bruce wrote: > robert > > i did an > python>>> import numpy > a = array([['q','a'],['w','e']]) not tested, but you usually need to mention where to find array: a = numpy.array([['q','a'],['w','e']]) > > and it didn't work... > > i used > >>from import numpy * > > and it seems to

Countdown timer for different timezones

2006-07-06 Thread Dirk Hagemann
Hi! I'd like to implement a countdown timer on a webite. It should show the months, days, hours, minutes and seconds until a given date and time. So far it's not really difficult, but this website will be used from different time zones, what will make a difference of 10 hours, if I use the time-in

ElementTree : parse string input

2006-07-06 Thread rajarshi . guha
Hi, recently having discovered ElementTree I'm stumped by a very simple problem, which I can't find the answer to. I have some XML in a string object. Now the parse() method of ElementTree takes a filename or file-like object. So I tried creating a StringIO object from the original string and then

Re: getting current UNIX uid

2006-07-06 Thread Richie Hindle
[Johhny] > I am trying to get the user that is running the scripts uid, I have had > a look at the pwd module and it does not appear to offer that > functionality. Is there any way within python to get that information ? It's in the 'os' module: >>> import os >>> os.getuid() 553 -- Richie Hind

Re: getting current UNIX uid

2006-07-06 Thread Eric Deveaud
Johhny wrote: > Hello, > > I am trying to get the user that is running the scripts uid, I have had > a look at the pwd module and it does not appear to offer that > functionality. Is there any way within python to get that information ? eg: username = pwd.getpwuid(os.getuid())[4] Eri

Re: Help Needed !!! Browsing and Selecting More Than One File

2006-07-06 Thread Eric Brunel
(Please quote at least a significant part of the message you're replying to, or people will have trouble understanding what you're talking about...) On Thu, 06 Jul 2006 15:42:28 +0200, Kilicaslan Fatih <[EMAIL PROTECTED]> wrote: > Dear Diez B. Roggisch, > > After clicking a button on the GUI t

getting current UNIX uid

2006-07-06 Thread Johhny
Hello, I am trying to get the user that is running the scripts uid, I have had a look at the pwd module and it does not appear to offer that functionality. Is there any way within python to get that information ? Regards, Johhny -- http://mail.python.org/mailman/listinfo/python-list

Re: RegEx conditional search and replace

2006-07-06 Thread Martin Evans
"mbstevens" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu, 06 Jul 2006 08:32:46 +0100, Martin Evans wrote: > >> "Juho Schultz" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> Martin Evans wrote: Sorry, yet another REGEX question. I've been struggling

Re: Very practical question

2006-07-06 Thread madpython
Thank you all for your comments. They are priceless beyond any doubt. As for the matter of the discussion it took me only a minute looking at the code to realize that with Tkinter I pass "master" reference to every widget and therefore I can access every method in the class hierarchy. I'm a fool th

  1   2   >