[ctypes-commit] ctypes/ctypes _loader.py,1.1.2.9,1.1.2.10
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2006-01-26 07:54:45
|
Update of /cvsroot/ctypes/ctypes/ctypes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21254 Modified Files: Tag: branch_1_0 _loader.py Log Message: __getattr__(name) calls load_version(name), so a platform independent libname can be used, but the possibly sophisticated search the find(name) does it *not* used. Index: _loader.py =================================================================== RCS file: /cvsroot/ctypes/ctypes/ctypes/Attic/_loader.py,v retrieving revision 1.1.2.9 retrieving revision 1.1.2.10 diff -C2 -d -r1.1.2.9 -r1.1.2.10 *** _loader.py 26 Jan 2006 07:44:45 -0000 1.1.2.9 --- _loader.py 26 Jan 2006 07:54:36 -0000 1.1.2.10 *************** *** 192,196 **** if name.startswith("_"): raise AttributeError(name) ! dll = self.find(name) setattr(self, name, dll) return dll --- 192,196 ---- if name.startswith("_"): raise AttributeError(name) ! dll = self.load_version(name) setattr(self, name, dll) return dll *************** *** 220,225 **** # getattr - print cdll.crypto print cdll.m # load --- 220,225 ---- # getattr print cdll.m + print cdll.bz2 # load |