making objects unassignable "read-only" (especially when extending)

Johannes Zellner johannes at zellner.org
Wed Jan 18 06:59:23 EST 2006


Hi,

can I make an object read-only, so that

    x = new_value

fails (and x keeps it's orginal value)?

This would be especially of interest for me for an object created by
a c extension.

-- 
Johannes



More information about the Python-list mailing list