what is wrong?
deelan
ggg at zzz.it
Thu Feb 24 11:45:58 EST 2005
neutrinman at myrealbox.com wrote:
(...)
> self.feed = feed # I wrote this
> AttributeError: can't set attribute
>
> I add some codes to a program on a book. The lines that have "I wrote
> this" comment is the added codes. Could anyone tell me what is worng
> here?
the line:
feed = property(__get_feed) # I wrote this
makes "feed" a *readonly* attribute.
cheers,
deelan.
--
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
<#me> a foaf:Person ; foaf:nick "deelan" ;
foaf:weblog <http://blog.deelan.com/> .
More information about the Python-list
mailing list