]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update: Older versions of Python crashed when calling repr()
authorFred Drake <fdrake@acm.org>
Wed, 13 Nov 2002 15:32:34 +0000 (15:32 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 13 Nov 2002 15:32:34 +0000 (15:32 +0000)
(including the implied call using back-ticks) of a recursive object,
but this is no longer the case.
Reported by Manus Hand via email.

Doc/ref/ref5.tex

index af1fa198f1458919058b837b6f19e3bc67de4118..8ab01db6032c22b69ce94f3e6b9604e12c171e5e 100644 (file)
@@ -245,9 +245,11 @@ involved).
 (In particular, converting a string adds quotes around it and converts
 ``funny'' characters to escape sequences that are safe to print.)
 
-It is illegal to attempt to convert recursive objects (e.g., lists or
-dictionaries that contain a reference to themselves, directly or
-indirectly.)
+Recursive objects (for example, lists or dictionaries that contain a
+reference to themselves, directly or indirectly) use \samp{...} to
+indicate a recursive reference, and the result cannot be passed to
+\function{eval()} to get an equal value (\exception{SyntaxError} will
+be raised instead).
 \obindex{recursive}
 
 The built-in function \function{repr()} performs exactly the same