Changeset 384
- Timestamp:
- Mon Dec 17 06:00:32 2007
- Files:
-
- branches/python2.5/mf.py (modified) (diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
branches/python2.5/mf.py
r380 r384 276 276 import UserDict 277 277 class LogDict(UserDict.UserDict): 278 count = 0 278 279 def __init__(self, *args): 279 280 UserDict.UserDict.__init__(self, *args) 280 self.logfile = open("logdict%s.log" % ".".join(map(str, sys.version_info)), "w") 281 LogDict.count += 1 282 self.logfile = open("logdict%s-%d.log" % (".".join(map(str, sys.version_info)), 283 LogDict.count), "w") 281 284 def __setitem__(self, key, value): 282 285 self.logfile.write("%s: %s -> %s\n" % (key, self.data.get(key), value))
