def make_std_api(python_version=sys.version_info, variant=VARIANT):
if isinstance(python_version, float):<EOL><INDENT>major = int(python_version)<EOL>minor = int(((python_version - major) + <NUM_LIT>) * <NUM_LIT:10>)<EOL>python_version = (major, minor)<EOL><DEDENT>return _StdApi(python_version, variant)<EOL>
Generate an object which can be used in the same way as the python
standard dis module. The difference is that the generated 'module' can be
used to disassemble byte / word code from a different python version than
the version of the interpreter under which we are running.

:param python_version: Generate a dis module for this version of python
                       (defaults to the currently running python version.)
:param variant:        The string denoting the variant of the python version
                       being run, for example 'pypy' or 'alpha0', 'rc1' etc,
                       or None to auto detect based on the currently running
                       interpreter.

:return: object which can be used like the std dis module.