[issue26910] dictionary literal should not allow duplicate keys

2016-05-02 Thread Luigi Semenzato
New submission from Luigi Semenzato: This was already discussed and rejected at https://bugs.python.org/issue16385. I am reopening because I am not convinced that the discussion presented all arguments properly. The original problem description: lives_in = { 'lion': ['Africa', 'America

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

2013-07-30 Thread Luigi Ponti
, 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 dwightdhu...@gmail.com 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 params (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
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
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 know a better way to do this? Thanks in advance. Luigi -- http

Custom handler for logging

2008-09-03 Thread Luigi Paioro
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: 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

Capturing stdout without waiting for the process end

2006-04-03 Thread Luigi
= 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 processing? Thank you in advance Luigi -- http://mail.python.org

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

Re: Capturing stdout without waiting for the process end

2006-04-03 Thread Luigi
to 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: newbie questions

2006-03-15 Thread Luigi
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
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