[Tutor] is it possible to call a setter property during class instantiation?
Serdar Tumgoren
zstumgoren at gmail.com
Thu Aug 12 19:07:05 CEST 2010
> > def __init__(self, value):
> > self.text(value)
>
> self.text = value # is the way to do this, if you're using it as a
> property.
>
> That worked perfectly! So it seems I was botching the syntax. Many thanks
for the quick response!!
Serdar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100812/aea98429/attachment.html>
More information about the Tutor
mailing list