Re: matplotlib problem

2007-05-10 Thread Steffen Oschatz
On 10 Mai, 10:31, redcic <[EMAIL PROTECTED]> wrote: > I've got a question regarding matplotlib. I use the command: > pylab.plot(...) > to create a graph. > Then, the execution of the code stops after the line: > pylab.show() > which is off course the last line of my code. > > My problem is that I h

Re: Newbie (but improving) - Passing a function name with parameters as a parameter

2007-05-10 Thread Steffen Oschatz
On 10 Mai, 10:27, mosscliffe <[EMAIL PROTECTED]> wrote: > I am trying to time a function's execution, Do you know the timeit module ? : Tool for measuring execution time of small code snippets Steffen -- http://mail.python.org/mailman/listinfo/python-list

Re: Multiple regex match idiom

2007-05-10 Thread Steffen Oschatz
On 9 Mai, 11:00, Hrvoje Niksic <[EMAIL PROTECTED]> wrote: > I often have the need to match multiple regexes against a single > string, typically a line of input, like this: > > if (matchobj = re1.match(line)): > ... re1 matched; do something with matchobj ... > elif (matchobj = re2.match(line)):