How to embed python2 into python3?

Discussion in 'Python' started by ytj, May 16, 2012.

  1. ytj

    ytj Guest

    Hello, all:

    I have two programs, one is written in py3k, the other is written in
    python 2. I am wondering how to make them work together except port
    the python 2 code to py3k? Is that possible to expose python2's
    function to py3k? In other words, I want to embed the Python 2
    interpreter into my py3k program. So I can call python2's function in
    py3k's code.

    Regards,
    Tianjiao
     
    ytj, May 16, 2012
    #1
    1. Advertisements

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. Terry
    Replies:
    20
    Views:
    993
    Дамјан ГеоргиевÑки
    Feb 8, 2009
  2. harrismh777
    Replies:
    3
    Views:
    1,016
  3. Stefan Behnel
    Replies:
    3
    Views:
    471
    HoneyMonster
    Jun 26, 2012
  4. Michiel Overtoom
    Replies:
    28
    Views:
    820
    Chris Angelico
    Jun 28, 2012
  5. Rolf
    Replies:
    4
    Views:
    397
    John Gordon
    Sep 7, 2012
  6. Mr. Joe
    Replies:
    15
    Views:
    249
    Dennis Lee Bieber
    May 15, 2013
  7. Ian Kelly
    Replies:
    1
    Views:
    166
    Rotwang
    May 13, 2013
  8. Replies:
    4
    Views:
    163
Loading...