Returning a list/dict as "read-only" from a method ?

Sean Ross sross at connectmail.carleton.ca
Thu Dec 26 11:23:37 EST 2002


Sorry, there's a bug in the previous code. Should be:

class C(object):
    ...etc...

In order to use property(), class C needs to be a new-style class.
Sorry for any confusion,
Sean






More information about the Python-list mailing list