This is a test for Python3 (and Python (2)): http://pastebin.com/Hq2M5QhM The output is:
Is Python (2) and not Python 3: /tmp/nep2.py 1 /tmp/ndp2.py 1 /tmp/sep2.py 1 /tmp/sdp2.py 1 /tmp/nep3.py 0 /tmp/ndp3.py 0 /tmp/sep3.py 0 /tmp/sdp3.py 0 Is Python (3) and not Python (2): /tmp/nep2.py 0 /tmp/ndp2.py 0 /tmp/sep2.py 0 /tmp/sdp2.py 0 /tmp/nep3.py 1 /tmp/ndp3.py 1 /tmp/sep3.py 1 /tmp/sdp3.py 1
I would like to suggest two implementations. The first is that Python 3 is automatically recognised with a mechanism similar to as describer above. The second is that the user can set in Preferences what the default is. Now the default is Python (2) but I know many organisation which are allow to develop only in Python 3. For people there it would be very practical and time saving that they can change the default.