Re: [Python-Dev] caching in the stdlib? (was: New regex module for 3.2?)

2010-07-28 Thread Guido van Rossum
On Tue, Jul 27, 2010 at 10:29 PM, Stefan Behnel stefan...@behnel.de wrote: What about actually putting it visibly into the stdlib? Except for files, I didn't see much about caching there, which seems like a missing battery to me. Why not do it as with the collections module and add stuff as it

Re: [Python-Dev] caching in the stdlib? (was: New regex module for 3.2?)

2010-07-28 Thread Raymond Hettinger
On Jul 28, 2010, at 7:31 AM, Guido van Rossum wrote: On Tue, Jul 27, 2010 at 10:29 PM, Stefan Behnel stefan...@behnel.de wrote: What about actually putting it visibly into the stdlib? Except for files, I didn't see much about caching there, which seems like a missing battery to me. Why not

Re: [Python-Dev] caching in the stdlib?

2010-07-28 Thread Stefan Behnel
I think this is better suited for python-ideas, so moving it there. Guido van Rossum, 28.07.2010 16:31: On Tue, Jul 27, 2010 at 10:29 PM, Stefan Behnel wrote: What about actually putting it visibly into the stdlib? Except for files, I didn't see much about caching there, which seems like a

[Python-Dev] caching in the stdlib? (was: New regex module for 3.2?)

2010-07-27 Thread Stefan Behnel
R. David Murray, 28.07.2010 03:43: On Tue, 27 Jul 2010 08:27:35 +0200, Stefan Behnel wrote: Gregory P. Smith, 27.07.2010 07:40: A max cache size of 100 was too small. I just increased it to 500 in the py3k branch along with implementing a random replacement cache overflow policy. It now