parser.isexpr()

parser.isexpr(st)

When st represents an 'eval' form, this function returns true, otherwise it returns false. This is useful, since code objects normally cannot be queried for this information using existing built-in functions. Note that the code objects created by compilest() cannot be queried like this either, and are identical to those created by the built-in compile() function.

doc_python
2016-10-07 17:40:24
Comments
Leave a Comment

Please login to continue.