Re: emptying a list

2009-10-01 Thread Geoffrey Clements
"lallous" wrote in message news:ha2htc$u9...@aioe.org... > Hello > > What is faster when clearing a list? > > del L[:] > > or > > L = [] > Oh, "L = []" definitely, on the basis that there are fewer characters to type. http://docs.python.org/3.1/library/profile.html -- Geoff -- http://mai

Re: Video information

2008-08-11 Thread Geoffrey Clements
"Bill McClain" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 2008-08-09, dusans <[EMAIL PROTECTED]> wrote: >> Is there a py module, which would get me information of a movie file: >> - resolution >> - fps > > I don't know of one. I use the transcode utilities for this and parse

Re: ?

2008-05-15 Thread Geoffrey Clements
"urikaluzhny" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On May 15, 10:06 am, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > "urikaluzhny" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > | It seems that I rather frequently need a list or iterator of the form > | [x f

Re: How do I print out in the standard output coloured lines

2007-02-02 Thread Geoffrey Clements
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On Feb 2, 1:38 pm, rzed <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote > innews:[EMAIL PROTECTED]: > > > > > On Feb 2, 1:16 pm, rzed <[EMAIL PROTECTED]> wrote: > >> [EMAIL PROTECTED] wrote > >> innews:[EMAIL PROTECTED]: > > >> > Hi

Re: Writing and reading variables to/from flat file

2006-12-14 Thread Geoffrey Clements
"Kevin Walzer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I want to write some variables (user preferences, specifically) to a > text file and then read the values from that file. > > Here is my code to write the data: > > verbosemodes= """ >Detailed = "-vv" >Basic = "-q

Re: MySQLdb "begin()" -

2006-04-25 Thread Geoffrey Clements
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi - Feeling a bit weird about this but I cannot find the 'begin' > method on a connection object of MySQLdb. Can anyone explain why ? > > I'm using version 1.2.0 which is pretty recent and I've read that > 'begin' should be a method of

Re: wxGridCellEditor and EVT_CHAR

2005-12-19 Thread Geoffrey Clements
"lux" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi to all, > I need to handle EVT_CHAR in a wxGrid when wxCellEditor is activated, > but I don't know how. > Can anyone help me? > it's probably better to ask this on comp.soft-sys.wxwindows -- Geoff -- http://mail.python.o