Update of /cvsroot/pywin32/pywin32/com/win32com/client
In directory sc8-pr-cvs1:/tmp/cvs-serv27200/com/win32com/client
Modified Files:
gencache.py
Log Message:
Make the "read-only" comments and code more understandable.
Index: gencache.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/gencache.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** gencache.py 20 Jan 2004 08:31:14 -0000 1.26
--- gencache.py 20 Jan 2004 22:58:24 -0000 1.27
***************
*** 27,30 ****
--- 27,31 ----
import traceback
import CLSIDToClass
+ import operator
bForDemandDefault = 0 # Default value of bForDemand - toggle this to change the world - see also makepy.py
***************
*** 38,45 ****
# There is no reason we *must* be readonly in a .zip, but we are now,
! # and we really do need a "read-only" concept anyway.
! # We don't want to use isdir() though, as we have always gracefully
! # created this directory when we could.
! is_readonly = getattr(win32com, "__loader__", None) or (1 == 0)
# A dictionary of ITypeLibrary objects for demand generation explicitly handed to us
--- 39,47 ----
# There is no reason we *must* be readonly in a .zip, but we are now,
! # Rather than check for ".zip" or other tricks, PEP302 defines
! # a "__loader__" attribute, so we use that.
! # (Later, it may become necessary to check if the __loader__ can update files,
! # as a .zip loader potentially could - but punt all that until a need arises)
! is_readonly = hasattr(win32com, "__loader__")
# A dictionary of ITypeLibrary objects for demand generation explicitly handed to us
***************
*** 48,52 ****
def __init__():
! # Initialize the module. Called once automatically
try:
_LoadDicts()
--- 50,54 ----
def __init__():
! # Initialize the module. Called once explicitly at module import below.
try:
_LoadDicts()
|