Gast, Beniget! Use-Def chains for Python Programs

Many tools manipulate the Python AST to analyse or transform it. Let's propose a collection of analyse those tools can leverage on: beniget.

more ...

Source-to-source transformation of a Python kernel

Pythran can also be used as a source-to-source transformation engine. This post showcases some recent transformation on a high-level code.

more ...

from pythran import typing

Pythran recently gained a type checking ability, called tog. And given the size of the diff, that's not some minor improvement! Let's see what happened in terms of better robustness and error reporting :-)

more ...

Identifier Binding Computation

Alias analysis is a poor term to describe the processing done by Pythran that is going to be described here. It could rather be named static computation of identifier binding, in the sense that it tries to give an over-approximation of which values an identifier can be bound to, at a given point of the program execution. Still, whatever its name, the process plays a key role in Pythran, so let's have a look to its internals.

more ...

Compiler Flags

Playing with compiler forwarded by Pythran to GCC (or Clang) can yield surprising results, let's explore this!

more ...