You are viewing an older version (9.5.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.5.0 / IPython / core / inputtransformer2 / TokenTransformBase / find

classmethod

IPython.core.inputtransformer2:TokenTransformBase.find

source: /IPython/core/inputtransformer2.py :213

Summary

Find one instance of special syntax in the provided tokens.

Extended Summary

Tokens are grouped into logical lines for convenience, so it is easy to e.g. look at the first token of each line. tokens_by_line is a list of lists of tokenize.TokenInfo objects.

This should return an instance of its class, pointing to the start position it has found, or None if it found no match.

Aliases

  • IPython.core.inputtransformer2.TokenTransformBase.find