numpy 1.22.4 Pypi GitHub Homepage
Other Docs
ParametersReturns
simple_version_match(pat='[-.\\d]+', ignore='', start='')

Parameters

pat : str, optional

A regular expression matching version numbers. Default is r'[-.\d]+' .

ignore : str, optional

A regular expression matching patterns to skip. Default is '' , in which case nothing is skipped.

start : str, optional

A regular expression matching the start of where to start looking for version numbers. Default is '' , in which case searching is started at the beginning of the version string given to :None:None:`matcher`.

Returns

matcher : callable

A function that is appropriate to use as the .version_match attribute of a :None:None:`CCompiler` class. :None:None:`matcher` takes a single parameter, a version string.

Simple matching of version numbers, for use in CCompiler and FCompiler.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /numpy/distutils/ccompiler.py#552
type: <class 'function'>
Commit: