Merge branch 'diorcety-python_property'

* diorcety-python_property:
  Changes file entry for Python director property fix
  Python: Fix property access with director

Conflicts:
	CHANGES.current
This commit is contained in:
William S Fulton 2014-10-11 00:22:21 +01:00
commit 78b904764a
5 changed files with 181 additions and 3 deletions

View file

@ -0,0 +1,18 @@
import director_property
class PyFoo(director_property.Foo):
a = property(director_property.Foo.getA, director_property.Foo.setA)
def ping(self):
return "PyFoo::ping()"
foo = PyFoo()
foo.setA("BLABLA")
if foo.getA() != "BLABLA":
raise RuntimeError
foo.a = "BIBI"
if foo.a != "BIBI":
raise RuntimeError