ANN: gcc-python-plugin 0.8

David Malcolm dmalcolm at
Tue Jan 10 20:58:39 CET 2012

gcc-python-plugin is a plugin for GCC 4.6 onwards which embeds the
CPython interpreter within GCC, allowing you to write new compiler
warnings in Python, generate code visualizations, etc.

It ships with "gcc-with-cpychecker", which implements static analysis
passes for GCC aimed at finding bugs in CPython extensions.  In
particular, it can automatically detect reference-counting errors:

Detailed release notes can be seen at:

Some highlights of the 0.8 release:

  * it's much easier than before to emit compilation warnings

  * initial support for analyzing C++ code from a Python script

  * gcc-with-cpychecker has gained additional tests.  It now has
knowledge of which CPython API calls will crash when passed NULL, and
will warn you (with details) about code paths that can trigger such a
call.   It can also now detect certain subtle errors in PyMethodDef

  * numerous bug fixes and other improvements

Tarball releases are available at:

Prebuilt-documentation can be seen at:

The project's homepage is:

The plugin and checker are Free Software, licensed under the GPLv3 or
later.  Thanks to Red Hat for funding their development, and to David
Narvaez and Tom Tromey for their contributions to this release.

Dave Malcolm

More information about the Python-announce-list mailing list