package pyml
Module Py.TypeSource
Introspection of Python types
Source
type t = | Unknown| Bool| Bytes| Callable| Capsule| Closure| Dict| Float| List| Int| Long| Module| None| Null| Tuple| Type| Unicode| Iter| Set(*Some types of Python values.
*)Bytescovers both theStrvalues of Python 2 and theBytesvalues of Python 3.Longcovers both theIntvalues of Python 2 and theLongvalues of Python 3.Capsulecorresponds to the values created withPy.Capsule.Closurecorresponds to the values created withPy.Callable.
Wrapper for PyType_IsSubtype
mismatch ty obj raises a type mismatch Failure _ that indicates that an object of type ty was expected, but obj was found.