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/2003-January/032484.html below:

[Python-Dev] Extended Function syntax

[Python-Dev] Extended Function syntax [Python-Dev] Extended Function syntaxShane Holloway (IEEE) shane.holloway@ieee.org
Tue, 28 Jan 2003 15:16:48 -0700
Guido van Rossum wrote:
>>     class Parrot(object):
>>         class count(Property):
>>             def Get(prop, self):
>>                 return self._count
>>             def Set(prop, self, value):
>>                 self._count = value
>>             def Del(prop, self):
>>                 self._count = 0
>>         count = count('Current parrot count')
>>         _count = 0
> 
> 
> I'm not sure that this has much to recommend it over the current
> approach.  The unused 'prop' argument smells like a remnant of the
> implementation.
> 
> --Guido van Rossum (home page: http://www.python.org/~guido/)

Sorry, meant to clarify that this was a current (2.2) implementation of 
the idea.




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