Commit 3b4af52a authored by Guido van Rossum's avatar Guido van Rossum

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

Marc-Andre Lemburg.
parent 9bc1498e
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment