diff options
Diffstat (limited to 'src/mailman/docs')
| -rw-r--r-- | src/mailman/docs/version.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/mailman/docs/version.txt b/src/mailman/docs/version.txt new file mode 100644 index 000000000..3ed0ce28c --- /dev/null +++ b/src/mailman/docs/version.txt @@ -0,0 +1,26 @@ +System versions +=============== + +Mailman system information is available through the System object, which +implements the ISystem interface. + + >>> from mailman.interfaces.system import ISystem + >>> from mailman.core.system import system + >>> from zope.interface.verify import verifyObject + + >>> verifyObject(ISystem, system) + True + +The Mailman version is available via the system object. + + >>> print system.mailman_version + GNU Mailman ... + +The Python version running underneath is also available via the system +object. + + # The entire python_version string is variable, so this is the best test + # we can do. + >>> import sys + >>> system.python_version == sys.version + True |
