Re: [pygccxml-development] [new feature]add_property add_static_property
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2006-09-26 20:36:10
|
On 9/26/06, Kevin Bluck <kev...@gm...> wrote: > Roman Yakovenko wrote: > > data.add_property( "count", count, set_count ) > > > Should it be possible to leave out the 'set' function to make a > read-only property? Yes of course. By default 'set' is None > When I tried something like: > > data.add_property( "count", count ) > > > I got: > > File "C:\Program > Files\Python\lib\site-packages\pyplusplus\code_creators\properties.py", > line 56, in has_long_line > elif pd.fset or pd.fset.call_policies or not > pd.fset.call_policies.is_default(): > AttributeError: 'NoneType' object has no attribute 'call_policies' > Actually it was my bug. Fix in svn. Unit test has been updated. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |