Note that assignments to __debug__ are illegal
diff --git a/Doc/ref/ref6.tex b/Doc/ref/ref6.tex
index d61165f..7212071 100644
--- a/Doc/ref/ref6.tex
+++ b/Doc/ref/ref6.tex
@@ -86,6 +86,8 @@
 the source code for the expression that failed in the error message;
 it will be displayed as part of the stack trace.
 
+Assignments to \code{__debug__} are illegal.  The value for the
+built-in variable is determined when the interpreter starts.
 
 \section{Assignment statements \label{assignment}}