Re: [Tutor] Selecting a browser

2007-12-03 Thread Simone
is not supported on Windows platforms I think the problem is in '&' at the end of the command line. The '&' is used on Linux/Unix system to start processes in a independent thread. Remove it and it works! Simone Chiacchiera con i tuoi amici in tempo reale!

Re: [Tutor] python CLI parser

2007-12-28 Thread Simone
r to use 7zip for managing compressed archive (www.7zip.org): open source & free (as in freedom) and better, IMHO, than WinZip. Simone Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com _

Re: [Tutor] preventing SQL injection

2008-01-11 Thread Simone
use '?' instead of %s, like this: tempCursor.execute ( "Select pg_get_serial_sequence ( ?, ? ) as seq", ( tableName, fieldName ) ) For further information see PEP 249 (http://www.python.org/dev/peps/pep-0249/) HTH! Simone Chiacchiera con i tuoi amici in tempo

Re: [Tutor] my first project: a multiplication trainer

2008-03-18 Thread Simone
; The other thing I have on my mind is this: how could I have the program > ask the math questions not horizontally but vertically? An example: > > 4 > x7 > = Simply insert a \n in the print statement, like this: print "%d\nx%d\n = " Simone Ch

Re: [Tutor] SQLite LIKE question

2008-04-11 Thread Simone
the q variable has to be converted in a string during the string valorization. If you want that q contains the symbol '%', you have to escape it by inserting 2 '%'. In your example, q have to be 'dog%%' instead of 'dog%'. However, as Alan said, the method

Re: [Tutor] Empty list validation

2008-06-09 Thread simone
t; list = ['hi'] >>> isEmpty(list) The list is NOT empty! >>> HTH, Simone Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] error message with multiple inheritance

2008-06-10 Thread simone
Christopher Spears ha scritto: I've been working out of Core Python Programming (2nd Edition). Here is an example demonstrating multiple inheritance. class A(object): ... pass ... class B(A): ... pass ... class C(B): ... pass ... class D(A, B): ... pass ... Traceback (

Re: [Tutor] Any Italian speakers?

2008-08-05 Thread simone
program to program?" from Cristian --- -- Simone Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/m

Re: [Tutor] renumbering a sequence

2008-08-26 Thread simone
everything without testing the right order. An example: for progress, file_name in enumerate(ordered_list): frame, num, ext = file_name.split('.') print "%s.%s.%s" % (frame, str(progress).zfill(4), ext) And you will have what you want (if I understand right...). --

Re: [Tutor] Where Does the DOS Window Come From?

2008-09-24 Thread simone
w do I find why it's used? If you don't want the DOS window, you can change the extension of the file to .pyw instead of .py, but in this case you will not see the messages printed by the print statement. -- Simone Chiacchiera con i tuoi amici in tempo reale! http://it.yah