Featured post

new redirect for blender.org bpy docs.

http://www.blender.org/api/blender_python_api_current/ As of 10/11 november 2015 we can now link to the current api docs and not be worr...

July 25, 2013

class properties

here t.seek will return `1200`
class dam:
def __init__(self, x=20, y=80):
self.x = x
self.y = y
@property
def seek(self):
return self.x * self.y
t = dam(x=30, y=40)
print(t.seek)
view raw class_tests.py hosted with ❤ by GitHub