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/2002-February/020117.html below:

[Python-Dev] new property factory arguments

[Python-Dev] new property factory argumentsJason Orendorff jason@jorendorff.com
Mon, 18 Feb 2002 03:24:47 -0600
With minor changes, this works already.

class Foo(property):
    def __get__(self, container, _type=None):
	print "this is get"
	print "self:", self
	print "container:", container
	print

    def __set__(self, container, value):
	print "this is set"
	print "self:", self
	print "container:", container
	print "value:", value
	print
	
    def __delete__(self, container):
	print "this is del"
	print "self:", type(self)
	print "container:", type(container)
	print

class Spam(object):
    x = Foo()

## Jason Orendorff    http://www.jorendorff.com/




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