CapPython static verifier rules

Definitions

Private attributes are attribute names starting with "_", "func_", "im_" or "gi_".

Special names are those beginning and ending with double underscores, such as __class__. The restrictions on special attributes prevent assignments to __class__, which has the effect of changing the type of an instance object.

Self variables are defined as follows: If a def f(v1, ...) statement appears immediately within a class statement, the function's first argument is a self variable, provided that:

The reason for these restrictions is to prevent the function object from leaking.

CapPython/VerifierRules (last edited 2009-03-29 18:59:15 by MarkSeaborn)