Call python3 code from python2 code

后端 未结 2 1666
刺人心
刺人心 2021-01-02 11:28

I am designing a GUI using the wxPython toolkit, which means it\'s being written in python2. However, I want to use python3 for the actual application code. How would I go a

2条回答
  •  温柔的废话
    2021-01-02 12:13

    1. Talk over a pipe or socket

    2. Enable such python 3 features as you can from __future__ or use a library like six to write code which is compatible with both.

    3. Don't do this.

    Finally, are you sure you can't use wxPython in Python 3? There's nothing in the online docs saying you can't.

提交回复
热议问题