Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2884d6d

Browse files
committed
Fix a variety of small markup nits.
1 parent e2ff8be commit 2884d6d

6 files changed

Lines changed: 21 additions & 20 deletions

File tree

Doc/dist/dist.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,12 @@ \subsection{General Python terminology}
190190
\file{.pyo} files). Sometimes referred to as a ``pure module.''
191191

192192
\item[extension module] a module written in the low-level language of
193-
the Python implementation: C/C++ for Python, Java for Jython.
193+
the Python implementation: C/\Cpp{} for Python, Java for Jython.
194194
Typically contained in a single dynamically loadable pre-compiled
195195
file, e.g. a shared object (\file{.so}) file for Python extensions on
196196
\UNIX, a DLL (given the \file{.pyd} extension) for Python extensions
197197
on Windows, or a Java class file for Jython extensions. (Note that
198-
currently, the Distutils only handles C/C++ extensions for Python.)
198+
currently, the Distutils only handles C/\Cpp{} extensions for Python.)
199199

200200
\item[package] a module that contains other modules; typically contained
201201
in a directory in the filesystem and distinguished from other
@@ -471,16 +471,16 @@ \subsubsection{Extension source files}
471471
However, you can also include SWIG interface (\file{.i}) files in the
472472
list; the \command{build\_ext} command knows how to deal with SWIG
473473
extensions: it will run SWIG on the interface file and compile the
474-
resulting C/C++ file into your extension.
474+
resulting C/\Cpp{} file into your extension.
475475

476476
\XXX{SWIG support is rough around the edges and largely untested;
477-
especially SWIG support of C++ extensions! Explain in more detail
477+
especially SWIG support for \Cpp{} extensions! Explain in more detail
478478
here when the interface firms up.}
479479

480480
On some platforms, you can include non-source files that are processed
481481
by the compiler and included in your extension. Currently, this just
482482
means Windows message text (\file{.mc}) files and resource definition
483-
(\file{.rc}) files for Visual C++. These will be compiled to binary resource
483+
(\file{.rc}) files for Visual \Cpp. These will be compiled to binary resource
484484
(\file{.res}) files and linked into the executable.
485485

486486

Doc/inst/inst.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ \subsection{Modifying Python's Search Path}
699699
'/usr/local/lib/python2.3/lib-tk', '/usr/local/lib/python2.3/lib-dynload',
700700
'/usr/local/lib/python2.3/site-packages']
701701
>>>
702-
\end{verbatim}
702+
\end{verbatim} % $ <-- bow to font-lock
703703

704704
The null string in \code{sys.path} represents the current working
705705
directory.
@@ -1002,7 +1002,7 @@ \subsection{Tweaking compiler/linker flags}
10021002
\subsection{Using non-Microsoft compilers on Windows \label{non-ms-compilers}}
10031003
\sectionauthor{Rene Liebscher}{[email protected]}
10041004

1005-
\subsubsection{Borland C++}
1005+
\subsubsection{Borland \Cpp}
10061006

10071007
This subsection describes the necessary steps to use Distutils with the
10081008
Borland \Cpp{} compiler version 5.5.
@@ -1056,7 +1056,7 @@ \subsubsection{Borland C++}
10561056

10571057
\seetitle[http://www.cyberus.ca/\~{}g_will/pyExtenDL.shtml]
10581058
{Creating Python Extensions Using Borland's Free Compiler}
1059-
{Document describing how to use Borland's free command-line C++
1059+
{Document describing how to use Borland's free command-line \Cpp
10601060
compiler to build Python.}
10611061
\end{seealso}
10621062

Doc/lib/libfuncs.tex

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ \section{Built-in Functions \label{built-in-funcs}}
141141
If a class method is called for a derived class, the derived class
142142
object is passed as the implied first argument.
143143

144-
Class methods are different than C++ or Java static methods.
144+
Class methods are different than \Cpp{} or Java static methods.
145145
If you want those, see \function{staticmethod()} in this section.
146146
\versionadded{2.2}
147147
\end{funcdesc}
@@ -446,10 +446,10 @@ \section{Built-in Functions \label{built-in-funcs}}
446446
function is assumed, that is, all elements of \var{list} that are false
447447
(zero or empty) are removed.
448448

449-
Note that \code{filter(function, list)} equals
450-
\code{[item for item in list if function(item)]} if function is not
451-
\code{None} and \code{[item for item in list if item]} if function is
452-
None.
449+
Note that \code{filter(function, \var{list})} is equivalent to
450+
\code{[item for item in \var{list} if function(item)]} if function is
451+
not \code{None} and \code{[item for item in \var{list} if item]} if
452+
function is \code{None}.
453453
\end{funcdesc}
454454

455455
\begin{funcdesc}{float}{\optional{x}}
@@ -890,7 +890,7 @@ \section{Built-in Functions \label{built-in-funcs}}
890890
\begin{funcdesc}{slice}{\optional{start,} stop\optional{, step}}
891891
Return a slice object representing the set of indices specified by
892892
\code{range(\var{start}, \var{stop}, \var{step})}. The \var{start}
893-
and \var{step} arguments default to None. Slice objects have
893+
and \var{step} arguments default to \code{None}. Slice objects have
894894
read-only data attributes \member{start}, \member{stop} and
895895
\member{step} which merely return the argument values (or their
896896
default). They have no other explicit functionality; however they
@@ -928,7 +928,8 @@ \section{Built-in Functions \label{built-in-funcs}}
928928
The \var{sequence}'s items are normally numbers, and are not allowed
929929
to be strings. The fast, correct way to concatenate sequence of
930930
strings is by calling \code{''.join(\var{sequence})}.
931-
Note that \code{sum(range(n), m)} equals \code{reduce(operator.add, range(n), m)}
931+
Note that \code{sum(range(\var{n}), \var{m})} is equivalent to
932+
\code{reduce(operator.add, range(\var{n}), \var{m})}
932933
\versionadded{2.3}
933934
\end{funcdesc}
934935

Doc/lib/libgettext.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ \subsection{Internationalizing your programs and modules}
446446
scans all your Python source code looking for the strings you
447447
previously marked as translatable. It is similar to the GNU
448448
\program{gettext} program except that it understands all the
449-
intricacies of Python source code, but knows nothing about C or C++
449+
intricacies of Python source code, but knows nothing about C or \Cpp
450450
source code. You don't need GNU \code{gettext} unless you're also
451451
going to be translating C code (such as C extension modules).
452452

Doc/lib/libmsvcrt.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
\section{\module{msvcrt} --
2-
Useful routines from the MS VC++ runtime}
2+
Useful routines from the MS V\Cpp{} runtime}
33

44
\declaremodule{builtin}{msvcrt}
55
\platform{Windows}
6-
\modulesynopsis{Miscellaneous useful routines from the MS VC++ runtime.}
6+
\modulesynopsis{Miscellaneous useful routines from the MS V\Cpp{} runtime.}
77
\sectionauthor{Fred L. Drake, Jr.}{[email protected]}
88

99

Doc/whatsnew/whatsnew20.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ \section{Augmented Assignment}
421421

422422
Augmented assignment operators were first introduced in the C
423423
programming language, and most C-derived languages, such as
424-
\program{awk}, C++, Java, Perl, and PHP also support them. The augmented
424+
\program{awk}, \Cpp, Java, Perl, and PHP also support them. The augmented
425425
assignment patch was implemented by Thomas Wouters.
426426

427427
% ======================================================================
@@ -633,7 +633,7 @@ \subsection{Minor Language Changes}
633633
Work has been done on porting Python to 64-bit Windows on the Itanium
634634
processor, mostly by Trent Mick of ActiveState. (Confusingly,
635635
\code{sys.platform} is still \code{'win32'} on Win64 because it seems
636-
that for ease of porting, MS Visual C++ treats code as 32 bit on Itanium.)
636+
that for ease of porting, MS Visual \Cpp{} treats code as 32 bit on Itanium.)
637637
PythonWin also supports Windows CE; see the Python CE page at
638638
\url{http://starship.python.net/crew/mhammond/ce/} for more
639639
information.

0 commit comments

Comments
 (0)