Property decorator for python Icon

Property decorator for python

This recipe refines an older recipe on creating class properties

Property decorator for pythonOverview

This recipe refines an older recipe on creating class properties . The refinement consists of: - Using a decorator (introduced in python 2.4) to "Declare" a function in class scope as property. - Using a trace function to Capture the locals() of the decorated function, instead of requiring the latter to return locals(), as in the older recipe.

NEW

Fixed some bugs.

Property decorator for pythonInformation

Version
2.4
Date
04.08.10
License
Language
English
File Size
N/A
Developer
Category
SubCategory
Operating Systems
Windows ,Linux,Mac OS,BSD,Solaris
System Requirements
No additional system requirements.
Cache decorator in python Icon
The latest version of Python introduced a new language feature
Free
Fixed keys mapping type Icon
Memory efficiency in the scenario of having many dicts with the same keys.
More
Principal Component Analysis (PCA) Icon
A class that carries out Principal Component Analysis (PCA).
Free
Deal Or No Deal Game Icon
A game based on the tv game show, Deal Or No Deal.
Free
Disk Dumper Icon
This recipe will display a hex dump of the disk specified on the command line.
Complex Boolean Regular Expression Class Icon
Need to look for the occurence of words in a string or group of words
Free
Display an Image from a specified file Icon
Reads an image file from the filename specified as the 1st parameter
Free
Quickslice decorator Icon
Quickslice decorator script defines a decorator that allows for an abbreviated
Free
mx.ODBC example Icon
mx.ODBC example script shows you how to get the columns of a table and get data.
Free
Python replacement for java.util.Properties Icon
Quick and easy way to process Java properties files using pure Python
Free
More