Re: [Tutor] Flatten a list in tuples and remove doubles

2012-07-19 Thread PyProg PyProg
Oh I forgot to mention, with Python 2 (2.7). -- http://ekd.tuxfamily.org http://ekdm.wordpress.com http://glouk.legtux.org/guiescputil http://lcs.dunois.clg14.ac-caen.fr/~alama/blog http://lprod.org/wiki/doku.php/video:encodage:avchd_converter ___ Tutor

[Tutor] Flatten a list in tuples and remove doubles

2012-07-19 Thread PyProg PyProg
Hi all, I would get a new list as: [(0, '3eA', 'Dupont', 'Juliette', '11.0/10.0', '4.0/5.0', '17.5/30.0', '3.0/5.0', '4.5/10.0', '35.5/60.0'), (1, '3eA', 'Pop', 'Iggy', '12.0/10.0', '3.5/5.0', '11.5/30.0', '4.0/5.0', '5.5/10.0', '7.5/10.0', '40.5/60.0')] ... from this one: [(0, '3eA', 'Dupont',

[Tutor] Parse MPL files

2011-01-07 Thread PyProg PyProg
Hi all, I'm looking for a way to parse MPL files (.MPL or .mpl extension). These files are contained in the tree of some cameras that support the AVCHD ... and some cameras filming with a stream mpeg-ts. I know a person who seeks to recover the data contained in these files. MPL (or .mpl). The da

[Tutor] [PyQt4] Parent problems with QThread and QProgressDialog

2009-08-14 Thread PyProg PyProg
Hi All, Benefiting from this excellent ticket: http://snippets.prendreuncafe.com/snippets/tagged/pyqt/order_by/date ... I can implement the behavior that I want and with QThread QProgressDialog (knowing that the progress bar updates whenever a new file is processed) in my application. Neverthele

[Tutor] sets module equivalent with Python 2.6

2009-03-17 Thread PyProg PyProg
Hello all, I want to use an equivalent of sets module with Python 2.6 ... but sets module is deprecated on 2.6 version. In fact I want to make that but with Python 2.6: >>> toto_1 = [0, 1, 2, 3, 4] >>> toto_2 = [1, 127, 4, 7, 12] >>> >>> import sets >>> a = sets.Set(toto_1) >>> b = sets.Set(toto

[Tutor] Can you help me with subprocess module ?.

2009-02-03 Thread PyProg PyProg
Hello everyone, I have a problem with the subprocess module. In fact I wish that when I run the command with subprocess I can retrieve the data immediately without waiting for the end of the command. I tried this way but ordering must end so that I can recover the data: import subprocess, os, sys

[Tutor] Help with a loop

2008-03-18 Thread PyProg PyProg
Hello, I have a little problem, I have two lists: >>> a=[1, 2, 3, 4, 5, 6] >>> b=['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'] ... and I want to obtain: >>> [('a', 1), ('b', 2), ('c', 3), ('d', 4), ('e', 5), ('f', 6), ('g', 1), ('h', 2), ('i', 3), ('j', 4)] I want to obtain that with a co

[Tutor] Test

2008-01-03 Thread PyProg PyProg
It's just a test message -- http://ekd.tolosano.info ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor