[docs] interning and list comprehension leads to unexpected behavior (issue 23406)

vadmium+py at gmail.com vadmium+py at gmail.com
Wed Sep 2 23:40:56 CEST 2015

File Doc/library/stdtypes.rst (right):

Doc/library/stdtypes.rst:900: sequence of the same type as *s*).  Note
also that the copies are shallow;
Objects are not even shallow-copied in the usual sense. Perhaps
something like this is better:

(. . . same type as *s*). The *s* object is not copied; it is merely
referenced multiple times. This often haunts . . .

Doc/library/stdtypes.rst:924: `FAQ
It will be better to do an internal link within the same copy of the
documentation. See
<https://docs.python.org/devguide/documenting.html#doc-ref-role>. In
particular, add something like this before the heading in

.. _faq-multidimensional-list:

And then change the code here to

Further explanation is available in the FAQ entry

which should expand to the full heading title.


More information about the docs mailing list