PyDocs

Nav

Python Language Services

TokenInfo

tokenize

class · Added in 3.1 (source)
  • TokenInfo(type, string, start, end, line)
A named tuple describing a token. It has five fields and an additional exact_type property.
Members of TokenInfo

e

end
Alias for field number 3
exact_type
An integer identifying the specific operator type for OP tokens, as defined by the constants in token.

l

line
Alias for field number 4

s

start
Alias for field number 2
string
Alias for field number 1

t

type
Alias for field number 0
0 Examples
No examples for tokenize/TokenInfo.
See Also
No see-alsos for tokenize/TokenInfo
0 Notes
No notes for TokenInfo