By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,001 Members | 1,176 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,001 IT Pros & Developers. It's quick & easy.

@x.setter property implementation

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.