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. 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. Xavier
    Replies:
    0
    Views:
    417
    Xavier
    Aug 6, 2003
  2. Skip Montanaro
    Replies:
    1
    Views:
    432
    Thomas Heller
    Aug 7, 2003
  3. snacktime
    Replies:
    13
    Views:
    560
    Dan Sommers
    Feb 22, 2005
  4. Uwe Mayer

    changing from python2.3 to python2.4

    Uwe Mayer, Apr 8, 2005, in forum: Python
    Replies:
    1
    Views:
    301
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
    Apr 9, 2005
  5. Ksenia Marasanova
    Replies:
    2
    Views:
    352
    Mike Meyer
    Nov 17, 2005
Loading...

Share This Page