is it possible to give an instance a value?
egbert
egbert.bouwman at hccnet.nl
Thu Mar 8 05:08:17 EST 2007
On Thu, Mar 08, 2007 at 01:22:25PM +1100, Steven D'Aprano wrote:
> On Wed, 07 Mar 2007 16:02:05 +0100, egbert wrote:
> > My impression is that you can do everything you want to
> > by making your instance callable, and not using a but a().
> You can't do this:
>
> >>> a() = "some value"
I didn't say that you can do that.
But in my example you can do
>>> a("some value")
and that seems to be near enough for manstey.
e
--
Egbert Bouwman - Keizersgracht 197 II - 1016 DS Amsterdam - 020 6257991
========================================================================
More information about the Python-list
mailing list