The more I get to know python, the more stupid things I can come up with. Here is one interesting.
Run this:
Code: Select all
def meth(self, arg):
print self.Area
import gc
gc.get_referents(Part.Shape.__dict__)[0]["meth"] = meth
Code: Select all
>>> App.ActiveDocument.Sphere.Shape.meth(5)
314.159265359