Andrew Lentvorski wrote:
> James G. Sack (jim) wrote:
> 
>> A const pointer to non-const data in python would be, (eg) like a list,
>> no? .. A const pointer at least so long as you didn't "reassign" a.
> 
> You're understanding is correct.  The issue is that I want to be able to
> prevent/flag an error when you try to "reassign" a.
> 

Could this be achieved by (one of the approaches to) implementing a
singleton construct? Maybe assisted by some object registration (and
validation) mechanism? Messy, eh?

Maybe python design philosophy is just too permissive for doing this
very well. Hmm wonder if 3.0 addresses this? (Er.. was that a pun?)

..

Regards,
..jim

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to