1

If I start python under MacOS X 10.8 in the console it starts with "Python 2.7.2 (default, Jun 20 2012, 16:23:33) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin".

In what way does the implementation of python depend on GCC?

3
  • 1
    The python infrastructure (notably its runtime, including its garbage collector) is compiled with some C compiler, and that is GCC or Clang. And you need a C compiler to code extensions for python (usually dlopen-ed shared objects). Commented Oct 17, 2012 at 10:47
  • I don't udnerstand the downvotes. It is a valid question, probably out of curiosity. Commented Oct 17, 2012 at 10:54
  • @glglgl, +1. It sounds like a genuine question. I have now upvoted. Commented Oct 17, 2012 at 10:58

1 Answer 1

5

Python is implemented in C, and records what version of the C compiler was used to compile it (to aid tracking down compiler-specific bugs).

The implementation itself does not vary based on the compiler. It can vary based on the platform it is compiled for, and the available external libraries, but there is nothing altering Python behaviour based on the compiler used.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.