En Thu, 23 Jul 2009 10:19:33 -0300, DG escribió:
On Jul 22, 6:05 pm, "Gabriel Genellina"
wrote:
En Wed, 22 Jul 2009 11:01:09 -0300, Rhodri James
escribió:
> On Wed, 22 Jul 2009 06:02:55 +0100, Gabriel Genellina
> wrote:
>> class X(object):
>> foo = descriptor()
>> x = X()
>> x.foo
On Jul 23, 8:44 am, Rainer Mansfeld wrote:
> Gabriel Genellina schrieb:
>
> > I have a class attribute 'foo' which is a data descriptor. I create an
> > instance of such class. When I say instance.foo = value, the descriptor
> > __set__ method is called. Is there any way to obtain the name being
>
Gabriel Genellina schrieb:
I have a class attribute 'foo' which is a data descriptor. I create an
instance of such class. When I say instance.foo = value, the descriptor
__set__ method is called. Is there any way to obtain the name being
assigned to? ('foo' in this example). That is, I want to
On Thu, 23 Jul 2009 01:05:55 +0100, Gabriel Genellina
wrote:
En Wed, 22 Jul 2009 11:01:09 -0300, Rhodri James
escribió:
On Wed, 22 Jul 2009 06:02:55 +0100, Gabriel Genellina
wrote:
class X(object):
foo = descriptor()
x = X()
x.foo = "value"
Isn't this going to create a brand ne
On Jul 23, 7:19 am, DG wrote:
> On Jul 22, 6:05 pm, "Gabriel Genellina"
> wrote:
>
>
>
> > En Wed, 22 Jul 2009 11:01:09 -0300, Rhodri James
> > escribió:
>
> > > On Wed, 22 Jul 2009 06:02:55 +0100, Gabriel Genellina
> > > wrote:
>
> > >> class X(object):
> > >> foo = descriptor()
>
> > >
On Jul 22, 6:05 pm, "Gabriel Genellina"
wrote:
> En Wed, 22 Jul 2009 11:01:09 -0300, Rhodri James
> escribió:
>
> > On Wed, 22 Jul 2009 06:02:55 +0100, Gabriel Genellina
> > wrote:
>
> >> class X(object):
> >> foo = descriptor()
>
> >> x = X()
> >> x.foo = "value"
>
> > Isn't this going t
En Wed, 22 Jul 2009 11:01:09 -0300, Rhodri James
escribió:
On Wed, 22 Jul 2009 06:02:55 +0100, Gabriel Genellina
wrote:
class X(object):
foo = descriptor()
x = X()
x.foo = "value"
Isn't this going to create a brand new instance attribute x.foo that has
nothing to do with the descr
En Wed, 22 Jul 2009 05:31:13 -0300, Jon Clements
escribió:
On 22 July, 06:02, "Gabriel Genellina" wrote:
I have a class attribute 'foo' which is a data descriptor. I create an
instance of such class. When I say instance.foo = value, the descriptor
__set__ method is called. Is there a
On Wed, 22 Jul 2009 06:02:55 +0100, Gabriel Genellina
wrote:
class X(object):
foo = descriptor()
x = X()
x.foo = "value"
Isn't this going to create a brand new instance attribute x.foo that has
nothing to do with the descriptor anyway?
--
Rhodri James *-* Wildebeest Herder to the M
On 22 July, 06:02, "Gabriel Genellina" wrote:
> I have a class attribute 'foo' which is a data descriptor. I create an
> instance of such class. When I say instance.foo = value, the descriptor
> __set__ method is called. Is there any way to obtain the name being
> assigned to? ('foo' in this
On Wednesday 22 July 2009, Wolfgang Rohdewald wrote:
> On Wednesday 22 July 2009, Gabriel Genellina wrote:
> > x = X()
> > x.foo = "value"
>
> del x.foo
sorry, was not yet quite awaken - I read "delete target name"
instead of "detect target name"
--
Wolfgang
--
http://mail.python.org/mailman/li
On Wednesday 22 July 2009, Gabriel Genellina wrote:
> x = X()
> x.foo = "value"
del x.foo
--
Wolfgang
--
http://mail.python.org/mailman/listinfo/python-list
12 matches
Mail list logo