Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: embedding Python and changing stdin, stdout and stderr

Reply
Thread Tools

Re: embedding Python and changing stdin, stdout and stderr

 
 
Vincent Touquet
Guest
Posts: n/a
 
      09-06-2004
Thanks for the link, there are spaces between the +-es though, so
anyone following the link should just remove them first

Another solution to my problem would be an interactive Python
interpreter written in Python, which I could run atop of the embedded
Python/Jython (that works like a charm, except the fact that the parser
reads from the C stdin constant FILE* file descriptor, which is a PITA
to plug into in a portable way, as FILE is very much platform and
compiler specific ...), and for which replacing the source of the
parser should be much easier and portable (Python code is nicely
portable) than it would be to change the source of the parser of Python
itself (note: I'm talking about _interactive_ mode, if the parser reads
from a file it is very easy to change the sourcefile the parser reads
from of course).

I know that IDLE exists, but it depends on Tk, I'd rather have an
interactive Python interpreter written in Python that is a console app,
so I want minimal extra dependencies Any takers ?
best regards,

Vincent

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the (codec) error handler for the stdout/stderr streams in Python 3.0 Jukka Aho Python 3 09-02-2008 10:53 PM
stdout and stderr don't occur sequentially in Eclipse and Netbeans ZelluX Java 15 06-25-2008 12:06 AM
stdout/stderr for only one thread in a multithreaded python app notanotheridiot Python 1 07-14-2006 10:17 AM
embedding Python and changing stdin, stdout and stderr Vincent Touquet Python 1 09-03-2004 12:25 PM
Redirecting Python stdout ,stderr and stdin Jan Knop Python 4 11-24-2003 10:14 AM



Advertisments