Re: embedding Python and changing stdin, stdout and stderr

Discussion in 'Python' started by Vincent Touquet, Sep 6, 2004.

  1. 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
    Vincent Touquet, Sep 6, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jan Knop
    Replies:
    4
    Views:
    1,044
    Jan knob
    Nov 24, 2003
  2. Vincent Touquet
    Replies:
    1
    Views:
    584
    Adrian B.
    Sep 3, 2004
  3. Michael McGarry
    Replies:
    1
    Views:
    608
    Michael Fuhr
    Dec 16, 2004
  4. Martijn Brouwer

    closing stdin, stdout and stderr

    Martijn Brouwer, Dec 26, 2005, in forum: Python
    Replies:
    5
    Views:
    1,105
    Donn Cave
    Dec 27, 2005
  5. , India

    initialization of stdin, stdout, stderr

    , India, Oct 27, 2008, in forum: C Programming
    Replies:
    5
    Views:
    827
    Phil Carmody
    Oct 28, 2008
Loading...

Share This Page