Posted onby admin
  1. Python Snake
  2. Cpython Version
  3. Python.org
  4. Cpython Vs Cython
  5. Cpython Id
  6. Python Tutorial

The Cython language is a superset of the Pythonlanguage that additionally supports calling C functionsand declaring C typeson variables and class attributes. This allows the compiler to generate very efficient C codefrom Cython code. The C code is generated onceand then compiles with all major. Officially, CPython has no rule at all for when exactly overridden method of subclasses of built-in types get implicitly called or not. As an approximation, these methods are never called by other built-in methods of the same object.

Latest version


more common def

Project description

Project details

Release historyRelease notifications RSS feed




Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cPython, version 0.0.6
Filename, sizeFile typePython versionUpload dateHashes
Filename, size cPython-0.0.6.tar.gz (4.7 kB) File type Source Python version None Upload dateHashes

Hashes for cPython-0.0.6.tar.gz

Hashes for cPython-0.0.6.tar.gz
AlgorithmHash digest


Python Snake

People who understands these things.

  • Steve Dower: employed by Microsoft, he is the maintainer of the Windowsinstaller for 3.6, 3.7, 3.8, 3.9 and master branches
  • Zachary Ware
  • Jeremy Kloth

Build Python on Windows¶



  • -e: download external dependencies (OpenSSL, Tkinter, …)
  • -d: build in debug mode (Py_DEBUG, enable assertions, …)
  • -px64: build in 64-bit mode

Build a Windows VM¶

  • Windows 10 or newer is recommended. Get a “multi-version” of Windows 10(no N, KN or VL variant) and use a “Pro - Retail” product key.
  • At least 60 GB of disk space is needed: Windows needs 15-20 GB,Visual Studio needs 10 GB. Having at least 60 GB is recommended to beable to compile multiple Python versions, install other tools, upgradeWindows, etc.

Python and Visual Studio version matrix¶

For Python 3.7 and later, VS 2017 is recommended (Community Edition is plenty),minimum installer options:

  • Workload: only [x] “Desktop development with C++”
  • Language pack: [x] “English”

VS 2019 installer option:

  • Desktop: [x] Desktop development with C++
  • Invidial components:
    • [x] MSVC v142 VS 2019 C++ x64/x86 build …
    • [x] Windows 10 SDK
    • [x] Just-In Time debugger
Python versionVisual Studio
Python 2.7VS 2008 and VS 2010
Python 3.4VS 2010
Python 3.5 and 3.6VS 2015 (or newer)
Python 3.7VS 2017
Python 3.8VS 2017
Python 3.9VS 2017
Python 3.10 (master)VS 2017

python.exe binaries delivered by python.org:

  • Python 2.7.x (64-bit): [MSC v.1500 64 bit (AMD64)] on win32 – VS 2008
  • Python 3.4.x (64-bit): [MSC v.1600 64 bit (AMD64)] on win32 – VS 2010
  • Python 3.5.x (64-bit): [MSC v.1900 64 bit (AMD64)] on win32 – VS 2015
  • Python 3.6.x (64-bit): [MSC v.1900 64 bit (AMD64)] on win32 – VS 2015
  • Python 3.7.x (64-bit): [MSC v.1914 64 bit (AMD64)] on win32 – VS 2017
  • Python 3.8.x (64-bit): [MSC v.1914 64 bit (AMD64)] on win32 – VS 2017
  • Python 3.9.x (64-bit): [MSC v.1914 64 bit (AMD64)] on win32 – VS 2017
  • Python 3.10.x (64-bit): [MSC v.1914 64 bit (AMD64)] on win32 – VS 2017


Python master needs binary dependencies fromgithub.com/python/cpython-bin-deps and source dependenciesfrom github.com/python/cpython-source-deps.PCbuildget_externals.bat, which is called automatically byPCbuildbuild.bat, will take care of fetching these for you if you have anyof Git, Python, NuGet, or PowerShell available.

See PCbuildget_externals.bat to learn what to put where if you aren’tusing PCbuildbuild.bat.

Compile the master branch¶

To build the Python interpreter and all extension modules, including the sslextension:


  • Visual Studio 2017 or newer
  • CPython source code: get it using Git, or download a ZIP on GitHub.com

Compile 64-bit Debug Python in the command line:

Compile Python in the IDE: open the PCbuildpcbuild.sln solution in VisualStudio.

See also: PCbuildreadme.txt.

Compile CPython 2.7¶

Python 2.7 is stuck forever on Visual Studio 2008 to not break the ABI, to keepthe backward compatibility with all built extensions on the Python cheeseshop(PyPI). Obtaining VS 2008 is not nearly as simple or straightforward as itused to be and Python 2.7 is rapidly approaching the end of its support period.If you don’t absolutely have to, we recommend not bothering to set things up tobuild 2.7!

Compile CPython 2.7 on Windows using Visual Studio 2008 and 2010¶

Cpython Version

While Visual Studio 2008 alone is enough to build a full Python 2.7 binary withall standard extension modules, the standard method used to build 2.7 nowrequires installing both Visual Studio 2008 and Visual Studio 2010.


  • MSDN account to get Visual Studio 2008. Maybe it’s possible to build Pythonusing the Express edition of VS 2008 and 2010, but in 2017, it becamedifficult to get VS 2008 and 2010 Express.
  • Windows 10 or newer is recommended, even if Python 2.7 is supposed to supportWindows XP!
  • Visual Studio 2008 Professional. Visual Studio 2008 Express works too, butdoesn’t provide a 64-bit compiler.
  • Visual Studio 2010 Professional. Maybe a lighter flavor works, I didn’t try.


Compile 64-bit Debug Python in the command line:

Compile Python in the IDE: open the PCbuildpcbuild.sln solution in VisualStudio.

See also: PCbuildreadme.txt.

Compile CPython 2.7 on Windows using only Visual Studio 2008¶

Similar to the previous section, but don’t install Visual Studio 2010: onlyinstall Visual Studio 2008.

Cpython Vs Cython

Compile 64-bit Debug Python in the command line:

Compile Python in the IDE: open the PCVS9.0pcbuild.sln solution in VisualStudio.

Cpython Id

Cpython internals pdf

See also: PCVS9.0readme.txt.

Note that this configuration is not well tested. Everything should work, butif it does not, please feel free to submit a patch! Also, if you use bothmethods and notice significant differences between them, we’d like to hearabout those as well.

Windows Subsystem for Linux: WSL¶

Python Tutorial

Ubuntu running on Windows 10 using a thin layer to emulate the Linux kernel ontop of the Windows kernel. Building Python in this environment is just thesame as building on any other UNIXy system.