Re: running a random function

2007-06-08 Thread Stebanoid
On 8, 00:07, Dustan <[EMAIL PROTECTED]> wrote: > On Jun 7, 1:30 pm, Neil Cerutti <[EMAIL PROTECTED]> wrote: > > > On 2007-06-07, Stebanoid <[EMAIL PROTECTED]> wrote: > > > > if you have a list of functions you can try this: > > > > import

Re: howto obtain directory where current (running) py-file is placed?

2007-06-08 Thread Stebanoid
On 7, 10:39, dmitrey <[EMAIL PROTECTED]> wrote: > Hi all, > I guess this question was asked many times before, but I don't know > keywords for web search. > > Thank you in advance, D. import sys file_name = sys.argv[0] this? -- http://mail.python.org/mailman/listinfo/python-lis

Re: running a random function

2007-06-07 Thread Stebanoid
On 7, 19:56, David Bear <[EMAIL PROTECTED]> wrote: > I would like to write some code that would randomly select a function from a > list of functions and call it. I was looking in the globals names space and > randomly selecting items that were of type function.. but I didn't see a > way of act

Re: running a random function

2007-06-07 Thread Stebanoid
On 7, 19:56, David Bear <[EMAIL PROTECTED]> wrote: > I would like to write some code that would randomly select a function from a > list of functions and call it. I was looking in the globals names space and > randomly selecting items that were of type function.. but I didn't see a > way of act