comparison Python/sysmodule.c @ 44566:599f22a349a2 legacy-trunk

Patch #602345 by Neal Norwitz and me: add -B option and PYTHONDONTWRITEBYTECODE envvar to skip writing bytecode.
author Georg Brandl <georg@python.org>
date Mon, 07 Jan 2008 17:09:35 +0000
parents c218d1ac916e
children 9b6d348cec87
comparison
equal deleted inserted replaced
44564:06d15da1f125 44566:599f22a349a2
1126 Py_XDECREF(v); 1126 Py_XDECREF(v);
1127 svnversion_init(); 1127 svnversion_init();
1128 v = Py_BuildValue("(ssz)", "CPython", branch, svn_revision); 1128 v = Py_BuildValue("(ssz)", "CPython", branch, svn_revision);
1129 PyDict_SetItemString(sysdict, "subversion", v); 1129 PyDict_SetItemString(sysdict, "subversion", v);
1130 Py_XDECREF(v); 1130 Py_XDECREF(v);
1131 PyDict_SetItemString(sysdict, "dont_write_bytecode",
1132 v = PyBool_FromLong(Py_DontWriteBytecodeFlag));
1133 Py_XDECREF(v);
1131 /* 1134 /*
1132 * These release level checks are mutually exclusive and cover 1135 * These release level checks are mutually exclusive and cover
1133 * the field, so don't get too fancy with the pre-processor! 1136 * the field, so don't get too fancy with the pre-processor!
1134 */ 1137 */
1135 #if PY_RELEASE_LEVEL == PY_RELEASE_LEVEL_ALPHA 1138 #if PY_RELEASE_LEVEL == PY_RELEASE_LEVEL_ALPHA