spambayes  1.1a6
About: SpamBayes - a Bayesian anti-spam filter/classifier (written in Python)
  Fossies Dox: spambayes-1.1a6.zip  ("inofficial" and yet experimental doxygen-generated source code documentation)  

 All Classes Namespaces Files Functions Variables Properties Macros
spambayes.dnscache Namespace Reference

Classes

class  lookupResult
class  cache

Functions

def sort_by_attr
def main

Variables

int kCheckForPruneEvery = 20
int kMaxTTL = 60
int kMinTTL = 24
int kPruneThreshold = 5000
int kPruneDownTo = 2500

Function Documentation

def spambayes.dnscache.main ( )

Definition at line 323 of file dnscache.py.

def spambayes.dnscache.sort_by_attr (   seq,
  attr 
)
Sort the sequence of objects by object's attribute

Arguments:
seq  - the list or any sequence (including immutable one) of objects to sort.
attr - the name of attribute to sort by

Returns:
the sorted list of objects.

Definition at line 46 of file dnscache.py.

Referenced by spambayes.dnscache.cache.prune().


Variable Documentation

int spambayes.dnscache.kCheckForPruneEvery = 20

Definition at line 22 of file dnscache.py.

int spambayes.dnscache.kMaxTTL = 60

Definition at line 23 of file dnscache.py.

int spambayes.dnscache.kMinTTL = 24

Definition at line 26 of file dnscache.py.

int spambayes.dnscache.kPruneDownTo = 2500

Definition at line 28 of file dnscache.py.

int spambayes.dnscache.kPruneThreshold = 5000

Definition at line 27 of file dnscache.py.