Message 175037 - Python tracker

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Content
Maybe lru_cache() should have a key argument so you can specify a specialized key function.  So you might have

    def _compile_key(args, kwds, typed):
        return args

    @functools.lru_cache(maxsize=500, key=_compile_key)
    def _compile(pattern, flags):
        ...