Skip to content

Commit 62364ff

Browse files
committed
- apply SF patch #700798: fixes and cleanups for descriptor info
- use a TeX "tie" to prevent word-wrapping in "section x.y"-like text
1 parent 2a403e8 commit 62364ff

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

Doc/ref/ref3.tex

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ \section{The standard type hierarchy\label{types}}
407407
dictionary entry.
408408

409409
Dictionaries are mutable; they can be created by the
410-
\code{\{...\}} notation (see section \ref{dict}, ``Dictionary
410+
\code{\{...\}} notation (see section~\ref{dict}, ``Dictionary
411411
Displays'').
412412

413413
The extension modules \module{dbm}\refstmodindex{dbm},
@@ -418,7 +418,7 @@ \section{The standard type hierarchy\label{types}}
418418

419419
\item[Callable types]
420420
These\obindex{callable} are the types to which the function call
421-
operation (see section \ref{calls}, ``Calls'') can be applied:
421+
operation (see section~\ref{calls}, ``Calls'') can be applied:
422422
\indexii{function}{call}
423423
\index{invocation}
424424
\indexii{function}{argument}
@@ -427,7 +427,7 @@ \section{The standard type hierarchy\label{types}}
427427

428428
\item[User-defined functions]
429429
A user-defined function object is created by a function definition
430-
(see section \ref{function}, ``Function definitions''). It should be
430+
(see section~\ref{function}, ``Function definitions''). It should be
431431
called with an argument
432432
list containing the same number of items as the function's formal
433433
parameter list.
@@ -601,8 +601,8 @@ \section{The standard type hierarchy\label{types}}
601601
\end{description}
602602

603603
\item[Modules]
604-
Modules are imported by the \keyword{import} statement (see section
605-
\ref{import}, ``The \keyword{import} statement'').
604+
Modules are imported by the \keyword{import} statement (see
605+
section~\ref{import}, ``The \keyword{import} statement'').
606606
A module object has a namespace implemented by a dictionary object
607607
(this is the dictionary referenced by the func_globals attribute of
608608
functions defined in the module). Attribute references are translated
@@ -637,8 +637,8 @@ \section{The standard type hierarchy\label{types}}
637637
\indexii{module}{namespace}
638638

639639
\item[Classes]
640-
Class objects are created by class definitions (see section
641-
\ref{class}, ``Class definitions'').
640+
Class objects are created by class definitions (see
641+
section~\ref{class}, ``Class definitions'').
642642
A class has a namespace implemented by a dictionary object.
643643
Class attribute references are translated to
644644
lookups in this dictionary,
@@ -708,7 +708,7 @@ \section{The standard type hierarchy\label{types}}
708708

709709
Class instances can pretend to be numbers, sequences, or mappings if
710710
they have methods with certain special names. See
711-
section \ref{specialnames}, ``Special method names.''
711+
section~\ref{specialnames}, ``Special method names.''
712712
\obindex{numeric}
713713
\obindex{sequence}
714714
\obindex{mapping}
@@ -865,7 +865,7 @@ \section{The standard type hierarchy\label{types}}
865865
level a traceback object is inserted in front of the current
866866
traceback. When an exception handler is entered, the stack trace is
867867
made available to the program.
868-
(See section \ref{try}, ``The \code{try} statement.'')
868+
(See section~\ref{try}, ``The \code{try} statement.'')
869869
It is accessible as \code{sys.exc_traceback}, and also as the third
870870
item of the tuple returned by \code{sys.exc_info()}. The latter is
871871
the preferred interface, since it works correctly when the program is
@@ -1211,21 +1211,21 @@ \subsubsection{More attribute access for new-style classes \label{new-style-attr
12111211
value or raise an \exception{AttributeError} exception.
12121212
In order to avoid infinite recursion in this method, its
12131213
implementation should always call the base class method with the same
1214-
name to access any attributes it needs to access, for example,
1214+
name to access any attributes it needs, for example,
12151215
\samp{object.__getattribute__(self, name)}.
12161216
\end{methoddesc}
12171217

12181218
\subsubsection{Implementing Descriptors \label{descriptors}}
12191219

12201220
The following methods only apply when an instance of the class
1221-
containing the method (a so-called \emph{descriptor} class) is in
1221+
containing the method (a so-called \emph{descriptor} class) appears in
12221222
the class dictionary of another new-style class, known as the
12231223
\emph{owner} class. In the examples below, ``the attribute'' refers to
1224-
the attribute whose name is the key of the property in the accessed
1224+
the attribute whose name is the key of the property in the owner
12251225
class' \code{__dict__}.
12261226

12271227
\begin{methoddesc}[object]{__get__}{self, instance, owner}
1228-
Called to get the attribute of the owner class (class attribute acess)
1228+
Called to get the attribute of the owner class (class attribute access)
12291229
or of an instance of that class (instance attribute acces).
12301230
\var{owner} is always the owner class, while \var{instance} is the
12311231
instance that the attribute was accessed through, or \code{None} when

0 commit comments

Comments
 (0)