matplotlib is a package, when you you import it, to Python it looks like any module.
pyplot is a module as well, but it's a module inside the matplotlib package.
You can ask Python itself:
>>> from matplotlib import pyplot
>>> type(pyplot)
<class 'module'>
>>> import matplotlib
>>> type(matplotlib)
<class 'module'>
A class would just be a type:
>>> from matplotlib import Parameter
>>> type(Parameter)
<class 'type'>
And to see what a module (or a class) has to offer, use dir():
>>> dir(matplotlib)
['LooseVersion', 'MatplotlibDeprecationWarning', 'MutableMapping', 'Parameter', 'Path', 'RcParams', 'URL_REGEX', '_DATA_DOC_APPENDIX', '_DATA_DOC_TITLE', '_ExecInfo', '__bibtex__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '__version__', '_add_data_doc', '_all_deprecated', '_check_versions', '_cm', '_cm_listed', '_color_data', '_constrained_layout', '_create_tmp_config_or_cache_dir', '_deprecated_ignore_map', '_deprecated_map', '_deprecated_remain_as_none', '_ensure_handler', '_error_details_fmt', '_get_config_or_cache_dir', '_get_data_path', '_get_executable_info', '_get_xdg_cache_dir', '_get_xdg_config_dir', '_image', '_init_tests', '_label_from_arg', '_layoutbox', '_log', '_logged_cached', '_mathtext_data', '_open_file_or_url', '_path', '_preprocess_data', '_pylab_helpers', '_rc_params_in_file', '_replacer', '_version', 'afm', 'artist', 'atexit', 'axes', 'axis', 'backend_bases', 'backend_tools', 'backends', 'bezier', 'blocking_input', 'category', 'cbook', 'checkdep_dvipng', 'checkdep_ghostscript', 'checkdep_inkscape', 'checkdep_pdftops', 'checkdep_ps_distiller', 'checkdep_usetex', 'cm', 'collections', 'colorbar', 'colors', 'compare_versions', 'container', 'contextlib', 'contour', 'cycler', 'dates', 'dedent', 'defaultParams', 'default_test_modules', 'docstring', 'dviread', 'figure', 'font_manager', 'fontconfig_pattern', 'ft2font', 'functools', 'get_backend', 'get_cachedir', 'get_configdir', 'get_data_path', 'get_home', 'get_label', 'get_py2exe_datafiles', 'gridspec', 'image', 'importlib', 'inspect', 'interactive', 'is_interactive', 'is_url', 'legend', 'legend_handler', 'lines', 'locale', 'logging', 'markers', 'mathtext', 'matplotlib_fname', 'mlab', 'mplDeprecation', 'namedtuple', 'numpy', 'offsetbox', 'os', 'patches', 'path', 'pprint', 'projections', 'pyplot', 'quiver', 'rc', 'rcParams', 'rcParamsDefault', 'rcParamsOrig', 'rc_context', 'rc_file', 'rc_file_defaults', 'rc_params', 'rc_params_from_file', 'rcdefaults', 'rcsetup', 're', 'sanitize_sequence', 'scale', 'set_loglevel', 'shutil', 'spines', 'stackplot', 'streamplot', 'style', 'subprocess', 'sys', 'table', 'tempfile', 'test', 'texmanager', 'text', 'textpath', 'ticker', 'tight_bbox', 'tight_layout', 'tk_window_focus', 'transforms', 'tri', 'units', 'use', 'validate_backend', 'widgets']
intis not an operator. It is a type, a constructor ofintobjects. Just like if I wroteclass Integer: ...then used it likeInteger(something)