[pygccxml-development] bug detecting read_only variables
Brought to you by:
mbaas,
roman_yakovenko
From: Allen B. <al...@vr...> - 2007-03-10 21:55:03
|
I think I may have just found a corner case for the auto-detection of which exposed class variables should be read_only. I am wrapping a class that has a static member variable of a type that does not have an op=. I think the idea the class designers had is that this would keep someone from assigning to these variables after they are created. Unfortunately py++ does not detect this case right now and tries to expose this variable using def_readwrite instead of def_read. I think this could be fixed by adding some logic to variable_wrapper.variable_t.__find_out_is_read_only to check for this case. -Allen |