diff options
author | Fred Drake <fdrake@acm.org> | 2002-11-13 15:32:34 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-11-13 15:32:34 (GMT) |
commit | ce5619e8a18d51a6586f30e149398199db3cb932 (patch) | |
tree | 015019eba92d21860e30743b5121eb7aaa1530c7 /Doc/ref | |
parent | c0b4034b8165ce958a23f2c865b51ae0f52040f5 (diff) | |
download | cpython-ce5619e8a18d51a6586f30e149398199db3cb932.zip cpython-ce5619e8a18d51a6586f30e149398199db3cb932.tar.gz cpython-ce5619e8a18d51a6586f30e149398199db3cb932.tar.bz2 |
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.
Diffstat (limited to 'Doc/ref')
-rw-r--r-- | Doc/ref/ref5.tex | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/ref/ref5.tex b/Doc/ref/ref5.tex index af1fa19..8ab01db 100644 --- a/Doc/ref/ref5.tex +++ b/Doc/ref/ref5.tex @@ -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 |