PyDocs

Nav

Python Language Services

Assert

ast

class
  • Assert(test, msg)
Assert(expr test, expr? msg)
1 Example
>>> print(ast.dump(ast.parse('assert x,y'), indent=4))
Module(
    body=[
        Assert(
            test=Name(id='x'),
            msg=Name(id='y'))])
from the Python docs
See Also
No see-alsos for ast/Assert
0 Notes
No notes for Assert