document the footnote usage pattern
This commit is contained in:
parent
84608f0c67
commit
4a847888a7
|
@ -187,6 +187,20 @@ text contributions are more than welcome as well.
|
||||||
Topics which are not covered in the Apple's style guide will be
|
Topics which are not covered in the Apple's style guide will be
|
||||||
discussed in this document if necessary.
|
discussed in this document if necessary.
|
||||||
|
|
||||||
|
Footnotes are generally discouraged due to the pain of using
|
||||||
|
footnotes in the HTML conversion of documents. Footnotes may be
|
||||||
|
used when they are the best way to present specific information.
|
||||||
|
When a footnote reference is added at the end of the sentence, it
|
||||||
|
should follow the sentence-ending punctuation. The \LaTeX{} markup
|
||||||
|
should appear something like this:
|
||||||
|
|
||||||
|
\begin{verbatim}
|
||||||
|
This sentence has a footnote reference.%
|
||||||
|
\footnote{This is the footnote text.}
|
||||||
|
\end{verbatim}
|
||||||
|
|
||||||
|
Footnotes may appear in the middle of sentences where appropriate.
|
||||||
|
|
||||||
Many special names are used in the Python documentation, including
|
Many special names are used in the Python documentation, including
|
||||||
the names of operating systems, programming languages, standards
|
the names of operating systems, programming languages, standards
|
||||||
bodies, and the like. Many of these were assigned \LaTeX{} macros
|
bodies, and the like. Many of these were assigned \LaTeX{} macros
|
||||||
|
|
|
@ -480,7 +480,7 @@ this?
|
||||||
1
|
1
|
||||||
\item when we know that deallocation of the object\footnote{This is
|
\item when we know that deallocation of the object\footnote{This is
|
||||||
true when we know that the object is a basic type, like a string or
|
true when we know that the object is a basic type, like a string or
|
||||||
a float} will not cause any
|
a float.} will not cause any
|
||||||
calls back into our type's code
|
calls back into our type's code
|
||||||
\item when decrementing a reference count in a \member{tp_dealloc}
|
\item when decrementing a reference count in a \member{tp_dealloc}
|
||||||
handler when garbage-collections is not supported\footnote{We relied
|
handler when garbage-collections is not supported\footnote{We relied
|
||||||
|
@ -792,9 +792,9 @@ eventually figure out that the list is garbage and free it.
|
||||||
|
|
||||||
In the second version of the \class{Noddy} example, we allowed any
|
In the second version of the \class{Noddy} example, we allowed any
|
||||||
kind of object to be stored in the \member{first} or \member{last}
|
kind of object to be stored in the \member{first} or \member{last}
|
||||||
attributes\footnote{Even in the third version, we aren't guaranteed to
|
attributes.\footnote{Even in the third version, we aren't guaranteed to
|
||||||
avoid cycles. Instances of string subclasses are allowed and string
|
avoid cycles. Instances of string subclasses are allowed and string
|
||||||
subclasses could allow cycles even if normal strings don't.}. This
|
subclasses could allow cycles even if normal strings don't.} This
|
||||||
means that \class{Noddy} objects can participate in cycles:
|
means that \class{Noddy} objects can participate in cycles:
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
|
|
Loading…
Reference in New Issue