[Modeling-cvs] ProjectModeling/Modeling utils.py,1.13,1.14
Status: Abandoned
Brought to you by:
sbigaret
From: <sbi...@us...> - 2003-07-23 20:58:44
|
Update of /cvsroot/modeling/ProjectModeling/Modeling In directory sc8-pr-cvs1:/tmp/cvs-serv26778 Modified Files: utils.py Log Message: Added test on env. variable MDL_DISABLE_SIMPLE_METHOD_CACHE for cache_simple_methods() Index: utils.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/utils.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** utils.py 23 Jul 2003 15:44:29 -0000 1.13 --- utils.py 23 Jul 2003 20:58:41 -0000 1.14 *************** *** 194,197 **** --- 194,200 ---- See also: methods_to_cache() """ + import os + if os.environ.get('MDL_DISABLE_SIMPLE_METHOD_CACHE', None): + return from new import instancemethod for m in methods_to_cache(anInstance.__class__, exclude): |