Re: Modeling life on Earth –- an object-oriented (Python?) challenge

2013-07-30 Thread Luigi Ponti
ge, if needed. Please do not hesitate to drop a further line. Kind regards, Luigi On Tue, Jul 30, 2013 at 1:23 PM, David Hutto wrote: > Never used pascal, and python might not be the fastest way to implement a > program such as this. > > In a previous discussion, this was taken place

Re: XML-RPC "filter"

2008-09-12 Thread luigi . paioro
On 11 Set, 18:45, Richard Levasseur <[EMAIL PROTECTED]> wrote: > Because he wants to insert parameters at the very start, he can > probably get away with modifying the xml directly.  Just find the > position of the (i think thats the tag) and insert the xml > you need after it.  Its pretty dirty,

Re: XML-RPC "filter"

2008-09-10 Thread luigi . paioro
tcher? I thought to this possibility, but it only accepts "method" and "params" as arguments, so, as far as I know, I have no way to get the user and host address to append. Perhaps I've misunderstood your suggestion... in that case can you post a short example? Thank you very much! Luigi -- http://mail.python.org/mailman/listinfo/python-list

XML-RPC "filter"

2008-09-09 Thread Luigi
arams) data = xmlrpclib.dumps(params, methodname=method) (I slightly modified it to make it more readable at mail level) It works, but I don't really like it because it completely overwrites the do_POST method that in the future Python releases is going to change (I verified it). Do you

Re: Custom handler for logging

2008-09-03 Thread Luigi Paioro
Thanks, it works perfectly! Luigi Peter Otten ha scritto: Luigi Paioro wrote: concerning the logging module, I have written a new Handler which stores the logging messages in an SQLite database. It works well, but when I try to use it exploiting a configuration file I have a problem since

Custom handler for logging

2008-09-03 Thread Luigi Paioro
within the logging name-space, while the class I implemented is coded in my personal module (thus another name-space). Is there a workaround to allow the usage of custom handlers? Thanks in advance. Luigi -- http://mail.python.org/mailman/listinfo/python-list

Re: Capturing stdout without waiting for the process end

2006-04-03 Thread Luigi
create an envelopment that captures the outputs and puts them in a file generating log events (for a real-time view). Thanks Luigi -- http://mail.python.org/mailman/listinfo/python-list

Re: can I get the index number in for x in y loop?

2006-04-03 Thread Luigi
Try this: >>> a='String' >>> i=0 >>> for x in a: ... print i, x ... i+=1 ... 0 S 1 t 2 r 3 i 4 n 5 g -- http://mail.python.org/mailman/listinfo/python-list

Capturing stdout without waiting for the process end

2006-04-03 Thread Luigi
line in self.outData: print line r = Runner() r.run("ls /tmp") r.printOut() I can print out (in this case in the os.stdout, but it may be elsewhere) the whole external program output only once it ends. How can I do to intercept the external program output during the

Re: newbie questions

2006-03-15 Thread Luigi
self.name="My test" if __name__ == "__main__": t = Test() print t.name Like this you execute the last two lines only if you execute directly your file with the python interpreter. I hope this can help you. Luigi -- http://mail.python.org/mailman/listinfo/python-list

PyGTK Notebook button_press_event connection

2006-01-24 Thread Luigi
_page(child, label) But the button_press_event event is not intercepted (nothing happens when I click on the tab label). Any idea to solve this question? Thanks Luigi -- http://mail.python.org/mailman/listinfo/python-list