470,648 Members | 1,518 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,648 developers. It's quick & easy.

@x.setter property implementation

Hello

I found out about the new methods on properties, .setter()
and .deleter(), in python 2.6. Obviously that's a very tempting
syntax and I don't want to wait for 2.6...

It would seem this can be implemented entirely in python code, and I
have seen hints in this directrion. So before I go and try to invent
this myself does anyone know if there is an "official" implementation
of this somewhere that we can steal until we move to 2.6?
Cheers
Floris
Apr 6 '08 #1
3 1676
I found out about the new methods on properties, .setter()
and .deleter(), in python 2.6. Obviously that's a very tempting
syntax and I don't want to wait for 2.6...

It would seem this can be implemented entirely in python code, and I
have seen hints in this directrion. So before I go and try to invent
this myself does anyone know if there is an "official" implementation
of this somewhere that we can steal until we move to 2.6?
The 2.6 source?
Apr 6 '08 #2
On Apr 6, 6:41 pm, "Daniel Fetchinson" <fetchin...@googlemail.com>
wrote:
I found out about the new methods on properties, .setter()
and .deleter(), in python 2.6. Obviously that's a very tempting
syntax and I don't want to wait for 2.6...
It would seem this can be implemented entirely in python code, and I
have seen hints in this directrion. So before I go and try to invent
this myself does anyone know if there is an "official" implementation
of this somewhere that we can steal until we move to 2.6?

The 2.6 source?
Have been grepping all over the place and failed to find it. I found
the test module for them, but that doesn't get me very far...
Apr 7 '08 #3
2008/4/7, Floris Bruynooghe <fl***************@gmail.com>:
>
Have been grepping all over the place and failed to find it. I found
the test module for them, but that doesn't get me very far...
I think you should take a look at 'descrobject.c' file in 'Objects' directory.

--
Wbr, Andrii Mishkovskyi.

He's got a heart of a little child, and he keeps it in a jar on his desk.
Apr 7 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Adam Sandler | last post: by
5 posts views Thread by kronrn | last post: by
1 post views Thread by Korara | last post: by
reply views Thread by warner | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.