Re: [pygccxml-development] [new feature]add_property add_static_property
Brought to you by:
mbaas,
roman_yakovenko
From: Kevin B. <kev...@gm...> - 2006-09-26 20:21:45
|
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? 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' Thanks, --- Kevin |