Staging
v0.5.1
https://github.com/python/cpython
Revision 8ce9f162595e500af16d8543e896ceeb815e51ac authored by Tim Peters on 27 August 2004, 01:49:32 UTC, committed by Tim Peters on 27 August 2004, 01:49:32 UTC
1. u1.join([u2]) is u2
2. Be more careful about C-level int overflow.

Since PySequence_Fast() isn't needed to achieve #1, it's not used -- but
the code could sure be simpler if it were.
1 parent 00f8da7
Raw File
Tip revision: 8ce9f162595e500af16d8543e896ceeb815e51ac authored by Tim Peters on 27 August 2004, 01:49:32 UTC
PyUnicode_Join(): Two primary aims:
Tip revision: 8ce9f16
getversion.c

/* Return the full version string. */

#include "Python.h"

#include "patchlevel.h"

const char *
Py_GetVersion(void)
{
	static char version[250];
	PyOS_snprintf(version, sizeof(version), "%.80s (%.80s) %.80s", 
		      PY_VERSION, Py_GetBuildInfo(), Py_GetCompiler());
	return version;
}
back to top