Implement -OO; "unsafe" optimization that removes docstrings.

Marc-Andre Lemburg.
This commit is contained in:
Guido van Rossum 1999-01-28 15:08:09 +00:00
parent 6b86a42c7f
commit 541563ec7e

View file

@ -2646,6 +2646,9 @@ static PyObject *
get_docstring(n)
node *n;
{
/* Don't generate doc-strings if run with -OO */
if (Py_OptimizeFlag > 1)
return NULL;
n = get_rawdocstring(n);
if (n == NULL)
return NULL;