(name, pat)
return _cache[pat].match(name) is not None
Test whether FILENAME matches PATTERN, including case.

    This is a version of fnmatch() which doesn't case-normalize
    its arguments.
Test whether FILENAME matches PATTERN, including case.
Test whether FILENAME matches PATTERN including case .
def fnmatchcase(name, pat):
    """Test whether FILENAME matches PATTERN, including case.

    This is a version of fnmatch() which doesn't case-normalize
    its arguments.
    """

    if not pat in _cache:
        res = translate(pat)
        if len(_cache) >= _MAXCACHE:
            _cache.clear()
        _cache[pat] = re.compile(res)
    return _cache[pat].match(name) is not None
def fnmatchcase ( name , pat ) : if not pat in _cache : res = translate ( pat ) if len ( _cache ) >= _MAXCACHE : _cache . clear ( ) _cache [ pat ] = re . compile ( res ) return _cache [ pat ] . match ( name ) is not None