Merge branch 'typo-documentaion-documentation' into 'master'
[mailman.git] / src / mailman / app / docs / system.rst
bloba7d2285d3eb7e58b14c7c2f8b5b5186297857ceb
1 ===============
2 System versions
3 ===============
5 Mailman system information is available through the ``system`` object, which
6 implements the ``ISystem`` interface.
7 ::
9     >>> from mailman.interfaces.system import ISystem
10     >>> from mailman.core.system import system
11     >>> from zope.interface.verify import verifyObject
13     >>> verifyObject(ISystem, system)
14     True
16 The Mailman version is also available via the ``system`` object.
18     >>> print(system.mailman_version)
19     GNU Mailman ...
21 The Python version running underneath is also available via the ``system``
22 object.
25     # The entire python_version string is variable, so this is the best test
26     # we can do.
27     >>> import sys
28     >>> system.python_version == sys.version
29     True