Not enough reputation to comment, but apparently the correct answer is stone right. Suppose we have a function like this:
def blah(a,b): return a+b
now, to execute type inference, there must be at least one blah call, or it becomes impossible to know the types of arguments at compile time.
for a stand-alone program, this is not a problem, since everything that needs to be compiled to run it is called indirectly from somewhere.
for the extension module, calls can come from "outside", so sometimes we need to add a "fake" function call to output the type so that it becomes possible .. therefore, "if False".
The shedskin sample set has several programs that are compiled as extension modules to be combined, for example, with pygame or multiprocessing.
source share