| Home | Trees | Indices | Help |
|---|
|
|
The grizzled.misc module contains miscellanous functions and classes that don't seem to fit well in other modules.
|
|||
|
ReadOnlyObjectError Thrown by ReadOnly to indicate an attempt to set a field. |
|||
|
ReadOnly A ReadOnly object wraps another object and prevents all the contained object's fields from being written. |
|||
|
|||
| int |
|
||
|
|||
log = logging.getLogger('grizzled.misc')
|
|||
__package__ =
|
|||
|
|||
Count the number of bits in a numeric (integer or long) value. This method is adapted from the Hamming Weight algorithm, described (among other places) at http://en.wikipedia.org/wiki/Hamming_weight Works for up to 64 bits.
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Mon Mar 14 15:21:05 2016 | http://epydoc.sourceforge.net |