From: Fred Drake Date: Wed, 13 Nov 2002 15:33:13 +0000 (+0000) Subject: Update: Older versions of Python crashed when calling repr() X-Git-Tag: v2.2.3c1~234 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1f0c193b5ce7e5188f82d943f79b31869d7f12e2;p=thirdparty%2FPython%2Fcpython.git Update: Older versions of Python crashed when calling repr() (including the implied call using back-ticks) of a recursive object, but this is no longer the case. Reported by Manus Hand via email. --- diff --git a/Doc/ref/ref5.tex b/Doc/ref/ref5.tex index abe9f097fc88..f7f5394ba2b2 100644 --- a/Doc/ref/ref5.tex +++ b/Doc/ref/ref5.tex @@ -261,9 +261,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