Message30187
Logged In: YES
user_id=1326842
I was thinking abot something like this:
Index: Lib/struct.py
===================================================================
--- Lib/struct.py (revision 52316)
+++ Lib/struct.py (working copy)
@@ -35,7 +35,7 @@
def _compile(fmt):
# Internal: compile struct pattern
if len(_cache) >= _MAXCACHE:
- _cache.clear()
+ _cache.popitem()
s = Struct(fmt)
_cache[fmt] = s
return s
(sorry, I don't have the rights to attach a file)
|
|
Date |
User |
Action |
Args |
2007-08-23 14:43:37 | admin | link | issue1573394 messages |
2007-08-23 14:43:37 | admin | create | |
|