How are Python and C related? I've read that Python is 'made from C'. Does that mean that Python is just an abstraction of lots of large C functions?

This page summarizes the projects mentioned and recommended in the original post on /r/learnprogramming

Our great sponsors
  • Sonar - Write Clean Python Code. Always.
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • Mergify - Updating dependencies is time-consuming.
  • CPython

    The Python programming language

    C usually uses a compiler. For various reasons, writing a compiler for Python is hard so we usually use interpreters. That means we need a program (in machine code, so your computer understands it) that can interpret the Python code. Since we don't generally like writing machine code, we tend to write these in other languages that we can compile to machine code. So when you run "python foo.py", what you're doing is running a C program that reads your Python file and does stuff based on that.

  • jython

    Python for the Java Platform

    The program I linked is the Python interpreter you're probably using, but the abstract set of rules that make up Python are not in any particular way tied to C. You could also use a Java program or a C# program to interpret your Python code. They've even made Python in Python itself, although it uses a more restricted version of Python so it's easier to compile it.

  • Sonar

    Write Clean Python Code. Always.. Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • IronPython

    Implementation of Python 3.x for .NET Framework that is built on top of the Dynamic Language Runtime.

    The program I linked is the Python interpreter you're probably using, but the abstract set of rules that make up Python are not in any particular way tied to C. You could also use a Java program or a C# program to interpret your Python code. They've even made Python in Python itself, although it uses a more restricted version of Python so it's easier to compile it.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts