The sdl2.ext.compat module is for internal purposes of the sdl2 package and should not be used outside of the package. Classes, methods and interfaces might change between versions and there is no guarantee of API compatibility on different platforms and python implementations or between releases.
True, if executed in a Python 2.x compatible interpreter, False otherwise.
True, if executed in a Python 3.x compatible interpreter, False otherwise.
Note
Only defined for Python 3.x, for which it is the same as int().
Note
Only defined for Python 3.x, for which it is the same as isinstance(x, collections.Callable)
Converts a string to a bytes() object.
Converts a bytes() to a string object.
Shortcut for isinstance(x, collections.Iterable).
Checks, if the interpreter is 64-bit capable.
A simple decorator to mark functions and methods as deprecated. This will print a deprecation message each time the function or method is invoked.
Prints a deprecation message using the warnings.warn() function.
Indicates that a certain class, function or behaviour is not supported in the specific execution environment.
A simple decorator to mark functions and methods as experimental. This will print a warning each time the function or method is invoked.
Indicates that a certain class, function or behaviour is in an experimental state.