A cached property is a read-only property that is calculated on demand and automatically cached. If the value has already been calculated, the cached value is returned.
This recipe will find all attributes created as meta-object properties in Qt and will create a Python property of the same name for each of them. This is a quick way of providing some of the functionality suggested by PSEP 102, which I sincerely...
This module add a 'morelink' property for each block,it can be used in block.tpl.php as a variable.
So we can separete the 'more' link from the block content.
The 'more' link is also separeted from the block title.
It is much like...
A very simple idiom for implementing a state machine.
A Python property is accessed like a normal attribute, but is implemented using method calls. This is a recipe for dictproperty: an attribute that is accessed like an indexed (dictionary) attribute, but is implemented using method calls.
Iteration is a fundamental Python idiom. It is simple and effective.
for n in iterable:
# do something with n
But there are also cases when you might want to look ahead one item during iteration. For example, with a...
Sometimes, rows or columns (or both) of a displayed matrix or vector have different meanings, and it would be nice to display them along with the matrix (instead of, say, remembering that the third row holds a given property of a set of data...
This function can be applied on any figure containing a graphical object having a 'cdata' property.
When the mouse is clicked on the object, a vertical (left button) or horizontal (right button) line marker appears over the object, and...
Prefixed Properties is a java property class with the advantage to support different prefixes for the property key. The set of prefixes can be configured. The prefixed properties can be configured to use prefixed properties as the defaults.
This is a tidy lightweight library implementing a series of C++ Design Patterns, aiming to be simple, clean and portable. This library is made to help C++ programmers to develop projects with clearer and more compact source code.