Re: stdout custom

2008-03-19 Thread castironpi
> >> > Can I allocate a second console window, so I can place certain output > >> > to that directly, and leave the original streams alone?  I tried > >> Have you tried using the creationflags argument to subprocess.Popen? > >> Specially the CREATE_NEW_CONSOLE flag. See the Microsoft documentation

Re: stdout custom

2008-03-18 Thread Gabriel Genellina
En Tue, 18 Mar 2008 07:09:08 -0300, <[EMAIL PROTECTED]> escribió: > On Mar 17, 8:16 pm, Gabriel Genellina <[EMAIL PROTECTED]> wrote: >> On 17 mar, 19:43, [EMAIL PROTECTED] wrote: >> >> > Can I allocate a second console window, so I can place certain output >> > to that directly, and leave the orig

Re: stdout custom

2008-03-18 Thread castironpi
> > >>> Can I allocate a second console window, so I can place certain output > > >>> to that directly, and leave the original streams alone?   > > > I've rather lost track of what you're trying to do, but I would > > second Gabriel's suggestion of the standard Windows method of > > debug output: u

Re: stdout custom

2008-03-18 Thread castironpi
On Mar 18, 8:51 am, Tim Golden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > >>> Can I allocate a second console window, so I can place certain output > >>> to that directly, and leave the original streams alone?   > > I've rather lost track of what you're trying to do, but I would > seco

Re: stdout custom

2008-03-18 Thread Tim Golden
[EMAIL PROTECTED] wrote: >>> Can I allocate a second console window, so I can place certain output >>> to that directly, and leave the original streams alone? I've rather lost track of what you're trying to do, but I would second Gabriel's suggestion of the standard Windows method of debug outpu

Re: stdout custom

2008-03-18 Thread castironpi
On Mar 17, 8:16 pm, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > On 17 mar, 19:43, [EMAIL PROTECTED] wrote: > > > Can I allocate a second console window, so I can place certain output > > to that directly, and leave the original streams alone?  I tried some > > things in subprocess (Py 3a3 /WinXP

Re: stdout custom

2008-03-17 Thread Gabriel Genellina
On 17 mar, 19:43, [EMAIL PROTECTED] wrote: > Can I allocate a second console window, so I can place certain output > to that directly, and leave the original streams alone?  I tried some > things in subprocess (Py 3a3 /WinXP) but they failed.  I don't know if > it's supposed to be possible though,

Re: stdout custom

2008-03-17 Thread castironpi
On Mar 17, 8:16 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sun, 16 Mar 2008 22:27:28 -0200, <[EMAIL PROTECTED]> escribió: > > > Specifically, before the prompts.  Where does the prompt write come > > from; why doesn't it honor my settings of sys.stdout and sys.stderr? > > The interacti

Re: stdout custom

2008-03-17 Thread Gabriel Genellina
En Sun, 16 Mar 2008 22:27:28 -0200, <[EMAIL PROTECTED]> escribió: > Specifically, before the prompts. Where does the prompt write come > from; why doesn't it honor my settings of sys.stdout and sys.stderr? The interactive interpreter uses directly the C predefined streams stdout and stderr. -

stdout custom

2008-03-16 Thread castironpi
The code should have extra colons. >>> class ThreadedOut: ... def __init__( self, old ): ... self._old= old ... def write( self, s ): ... self._old.write( ':' ) ... return self._old.write( s ) ... def flush( self ): ... self._old.flush()