Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm setting up PyDev for Eclipse, and I have to choose a version of Python for the interpretor. I want to use Python3, and I've been using python3 as my interpretor, so I thought /usr/bin/python3 would have been the obvious choice. However, another option there is python3mu. I ran this in the terminal and it seemed to function exactly like python3. My questions are: Which one is the correct one to use as the interpretor for Eclipse? and What is the difference between the two?

EDIT: Just wanted to let you guys know that my google-fu was not good enough to find out what python3mu was.

share|improve this question
    
Check this out link –  tomasz74 Nov 11 '12 at 21:32
    
@tomasz74 Ahh, so this is a version without many of the modules added on by default? And so I should use the regular one right? Also, just put that link in an answer, and I'll give you the green check mark. –  Amndeep7 Nov 11 '12 at 21:34
    
No, 'mu' has nothing to do with minimal –  Dennis Kaarsemaker Nov 11 '12 at 21:36

1 Answer 1

up vote 8 down vote accepted

In python 3, some compile options (the abi flags) are reflected in the binary name and the name of cached bytecode in __pycache__ directories. mu means--with-pymalloc and --with-wide-unicode

See also http://docs.python.org/dev/library/sys#sys.abiflags and http://www.python.org/dev/peps/pep-3149/

share|improve this answer
    
I've looked at the links, and it appears that these only apply to libraries and such. Maybe I'm wrong, but I don't think that that applies to the version of Python you're running. Could you please explain a bit more? –  Amndeep7 Nov 11 '12 at 21:41
1  
ABI means "Application Binary Interface". This includes signatures of all functions and constants as used in a program and is a sort of contract between libraries and applications. e.g. in --with-pymalloc builds, memory allocation works differently. If libraries don't know this about the binary, they'll try to do things that make python crash :) –  Dennis Kaarsemaker Nov 11 '12 at 21:45
    

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.