A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-November/075185.html below:

[Python-Dev] Declaring setters with getters

[Python-Dev] Declaring setters with getters [Python-Dev] Declaring setters with gettersChristian Heimes lists at cheimes.de
Sat Nov 10 22:43:21 CET 2007
Guido van Rossum wrote:
> Which is sometimes convenient. But thinking about this some more I
> think that if I *wanted* to use the same method as setter and deleter,
> I could just write
> 
> @foo.setter
> @foo.deleter
> def foo(self, value=None): ...
> 
> So I'm withdrawing the hacks, making the code and semantics much simpler.

I like the new way better than the implicit magic of your former patch.
(*) I've reviewed your patch and I found a minor typo caused by copy and
paste.

Good work Guido!

Christian

(*) The buzz words 'implicit' and 'magic' are used in this posting to
make Guido's non-pythonic-code-sense tingle. *scnr* :]

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4