Accessing global namespace from module

2007-06-11 Thread reubendb
Hello, I am new to Python. I have the following question / problem. I have a visualization software with command-line interface (CLI), which essentially is a Python (v. 2.5) interpreter with functions added to the global namespace. I would like to keep my own functions in a separate module and then

Re: Accessing global namespace from module

2007-06-11 Thread reubendb
On Jun 11, 1:37 pm, [EMAIL PROTECTED] wrote: > On Jun 11, 11:02 am, reubendb <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > I am new to Python. I have the following question / problem. > > I have a visualization software with command-line interface (CLI), >

Re: Accessing global namespace from module

2007-06-11 Thread reubendb
On Jun 11, 3:30 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 11 Jun 2007 15:18:58 -0300, reubendb <[EMAIL PROTECTED]> escribió: > > > The problem is I don't define the functions AddPlot() and DrawPlots(). > > It's built int

Redirecting stderr to null and revert

2007-08-06 Thread reubendb
Hello, I have some function that output too much stuff to stderr when called, and I have no control over the function itself. So I thought as a workaround, I redirect stderr to /dev/null before calling that function, and then revert the stderr back after calling that function. I have something like