~ubuntu-branches/ubuntu/maverick/python3.1/maverick

« back to all changes in this revision

Viewing changes to Python/getversion.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-03-23 00:01:27 UTC
  • Revision ID: james.westby@ubuntu.com-20090323000127-5fstfxju4ufrhthq
Tags: upstream-3.1~a1+20090322
ImportĀ upstreamĀ versionĀ 3.1~a1+20090322

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/* Return the full version string. */
 
3
 
 
4
#include "Python.h"
 
5
 
 
6
#include "patchlevel.h"
 
7
 
 
8
const char *
 
9
Py_GetVersion(void)
 
10
{
 
11
        static char version[250];
 
12
        PyOS_snprintf(version, sizeof(version), "%.80s (%.80s) %.80s", 
 
13
                      PY_VERSION, Py_GetBuildInfo(), Py_GetCompiler());
 
14
        return version;
 
15
}