Module Expr Str Import alias Assign NameStore ListLoad Str Str Str Str Assign NameStore Dict Assign NameStore Num FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Import alias alias Assign NameStore ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot CompareIn NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If CompareGtE Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad SubscriptLoad NameLoad Index NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body For NameStore NameLoad body If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse For NameStore NameLoad body If Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot CompareIn NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If CompareGtE Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad Return CompareIsNot Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore TupleLoad Num Call NameLoad NameLoad Assign NameStore Str While CompareLt NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpAdd NameLoad Num If CompareEq NameLoad Str body Assign NameStore BinOpAdd NameLoad Str orelse If CompareEq NameLoad Str body Assign NameStore BinOpAdd NameLoad Str orelse If CompareEq NameLoad Str body Assign NameStore NameLoad If BoolOpAnd CompareLt NameLoad NameLoad CompareEq SubscriptLoad NameLoad Index NameLoad Str body Assign NameStore BinOpAdd NameLoad Num If BoolOpAnd CompareLt NameLoad NameLoad CompareEq SubscriptLoad NameLoad Index NameLoad Str body Assign NameStore BinOpAdd NameLoad Num While BoolOpAnd CompareLt NameLoad NameLoad CompareNotEq SubscriptLoad NameLoad Index NameLoad Str body Assign NameStore BinOpAdd NameLoad Num If CompareGtE NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad Str orelse Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice NameLoad NameLoad attr Str Str Assign NameStore BinOpAdd NameLoad Num If CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore BinOpAdd Str SubscriptLoad NameLoad Slice Num orelse If CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore BinOpAdd Str NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad orelse Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad Return BinOpAdd NameLoad Str decorator_list
N/A N/A Filename matching with shell patterns.

fnmatch(FILENAME, PATTERN) matches according to the local convention.
fnmatchcase(FILENAME, PATTERN) always takes case in account.

The functions operate by translating the pattern into a regular
expression.  They cache the compiled regular expressions for speed.

The function translate(PATTERN) returns a regular expression
corresponding to PATTERN.  (It does not compile it.)
 N/A re N/A __all__ N/A filter fnmatch fnmatchcase translate N/A _cache N/A N/A _MAXCACHE 100 _purge N/A N/A N/A N/A N/A Clear the pattern cache N/A N/A N/A _cache clear N/A fnmatch N/A N/A name pat N/A N/A N/A Test whether FILENAME matches PATTERN.

    Patterns are Unix shell style:

    *       matches everything
    ?       matches any single character
    [seq]   matches any character in seq
    [!seq]  matches any char not in seq

    An initial period in FILENAME is not special.
    Both FILENAME and PATTERN are first case-normalized
    if the operating system requires it.
    If you don't want this, use fnmatchcase(FILENAME, PATTERN).
     N/A os N/A name N/A N/A N/A os path normcase name N/A pat N/A N/A N/A os path normcase pat N/A N/A fnmatchcase name pat N/A filter N/A N/A names pat N/A N/A N/A Return the subset of the list NAMES that match PAT N/A os posixpath N/A result N/A N/A pat N/A N/A N/A os path normcase pat N/A N/A N/A pat _cache N/A N/A res N/A translate pat N/A N/A N/A len _cache _MAXCACHE N/A N/A N/A N/A _cache clear N/A N/A _cache N/A pat N/A N/A re compile res N/A match N/A N/A _cache N/A pat match N/A N/A N/A os path posixpath N/A N/A name names N/A N/A N/A match name N/A N/A N/A N/A result append name N/A N/A name names N/A N/A N/A match N/A N/A N/A os path normcase name N/A N/A N/A N/A result append name N/A result N/A fnmatchcase N/A N/A name pat N/A N/A N/A Test whether FILENAME matches PATTERN, including case.

    This is a version of fnmatch() which doesn't case-normalize
    its arguments.
     N/A N/A N/A pat _cache N/A N/A res N/A translate pat N/A N/A N/A len _cache _MAXCACHE N/A N/A N/A N/A _cache clear N/A N/A _cache N/A pat N/A N/A re compile res N/A N/A N/A N/A N/A _cache N/A pat match name None N/A translate N/A N/A pat N/A N/A N/A Translate a shell PATTERN to a regular expression.

    There is no way to quote meta-characters.
     N/A N/A i n N/A 0 N/A len pat N/A res N/A N/A i n N/A N/A c N/A pat N/A i N/A i N/A i 1 N/A N/A c * N/A N/A res N/A res .* N/A N/A N/A c ? N/A N/A res N/A res . N/A N/A N/A c [ N/A N/A j i N/A N/A N/A j n N/A N/A pat N/A j ! N/A N/A j N/A j 1 N/A N/A N/A j n N/A N/A pat N/A j ] N/A N/A j N/A j 1 N/A N/A N/A j n N/A N/A pat N/A j ] N/A N/A j N/A j 1 N/A N/A j n N/A N/A res N/A res \[ N/A N/A stuff N/A N/A N/A pat N/A i j replace \ \\ N/A i N/A j 1 N/A N/A N/A stuff N/A 0 ! N/A N/A stuff N/A ^ N/A stuff N/A 1 N/A N/A N/A N/A stuff N/A 0 ^ N/A N/A stuff N/A \ stuff N/A res N/A %s[%s] N/A res stuff N/A N/A res N/A res N/A N/A re escape c N/A N/A res \Z(?ms) N/A