[Python-3000] bytes regular expression?
steven.bethard at gmail.com
Mon Aug 13 04:22:46 CEST 2007
On 8/12/07, Victor Stinner <victor.stinner at haypocalc.com> wrote:
> On Thursday 09 August 2007 19:39:50 you wrote:
> > So why not just skip caching for anything that doesn't hash()? If
> > you're really worried about efficiency, simply re.compile() the
> > expression once and don't rely on the re module's internal cache.
> I tried to keep backward compatibility.
It's not actually backwards incompatible -- the re docs don't promise
anywhere to do any caching for you. I'd rather wait and see whether
the caching is really necessary for bytes than keep str8 around if we
don't have to.
I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a
tiny blip on the distant coast of sanity.
--- Bucky Katt, Get Fuzzy
More information about the Python-3000