@@ -268,49 +268,6 @@ \subsection{Dictionary displays\label{dict}}
268268\indexii {immutable}{object}
269269
270270
271- \subsection {String conversions\label {string-conversions } }
272- \indexii {string}{conversion}
273- \indexii {reverse}{quotes}
274- \indexii {backward}{quotes}
275- \index {back-quotes}
276-
277- A string conversion is an expression list enclosed in reverse (a.k.a.
278- backward) quotes:
279-
280- \begin {productionlist }
281- \production {string_conversion}
282- {"` " \token {expression_list} "` "}
283- \end {productionlist}
284-
285- A string conversion evaluates the contained expression list and
286- converts the resulting object into a string according to rules
287- specific to its type.
288-
289- If the object is a string, a number, \code {None}, or a tuple, list or
290- dictionary containing only objects whose type is one of these, the
291- resulting string is a valid Python expression which can be passed to
292- the built-in function \function {eval()} to yield an expression with the
293- same value (or an approximation, if floating point numbers are
294- involved).
295-
296- (In particular, converting a string adds quotes around it and converts
297- `` funny'' characters to escape sequences that are safe to print.)
298-
299- Recursive objects (for example, lists or dictionaries that contain a
300- reference to themselves, directly or indirectly) use \samp {...} to
301- indicate a recursive reference, and the result cannot be passed to
302- \function {eval()} to get an equal value (\exception {SyntaxError} will
303- be raised instead).
304- \obindex {recursive}
305-
306- The built-in function \function {repr()} performs exactly the same
307- conversion in its argument as enclosing it in parentheses and reverse
308- quotes does. The built-in function \function {str()} performs a
309- similar but more user-friendly conversion.
310- \bifuncindex {repr}
311- \bifuncindex {str}
312-
313-
314271\section {Primaries\label {primaries } }
315272\index {primary}
316273
0 commit comments