4
Use the "static" feature to make the wrapped class a static one,
5
ie, a python class that doesn't dynamically add new attributes.
22
Since "static" is a feature, if you use
26
it will make all the wrapped class static ones.
28
The implementation is based on the recipe:
30
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/252158
32
and works for modern (-modern) and plain python.
38
//%pythonnondynamic(1);
39
%pythonnondynamic(1) A;