Previous topic

propy.index_property

Next topic

propy.array_property

This Page

propy.weakref_property

propy.weakref_property(name)[source]

Creates a class property with a weak reference. To use, place the method within a class’s scope.

Parameters:
name : str

The name of the property to be created.

Examples

>>> class Class():
...     property1 = weakref_property('property1')