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

Skip to content

Commit 9aa97e8

Browse files
committed
Minor wording changes, plus correct a typo.
1 parent 30d59ba commit 9aa97e8

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Doc/ext/newtypes.tex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ \section{The Basics
2020
``type object''. This is where the action is; the type object
2121
determines which (C) functions get called when, for instance, an
2222
attribute gets looked up on an object or it is multiplied by another
23-
object. I call these C functions ``type methods'' to distinguish them
24-
from things like \code{[].append} (which I will call ``object
25-
methods'' when I get around to them).
23+
object. These C functions are called ``type methods'' to distinguish
24+
them from things like \code{[].append} (which we call ``object
25+
methods'').
2626

2727
So, if you want to define a new object type, you need to create a new
2828
type object.
@@ -184,7 +184,7 @@ \section{The Basics
184184
the C compiler, and it's common practice to not specify them
185185
explicitly unless you need them.
186186

187-
This is so important that I'm going to pick the top of it apart still
187+
This is so important that we're going to pick the top of it apart still
188188
further:
189189

190190
\begin{verbatim}
@@ -237,7 +237,7 @@ \section{The Basics
237237
\end{verbatim}
238238

239239
This has to do with variable length objects like lists and strings.
240-
Ignore for now...
240+
Ignore this for now.
241241

242242
Now we get into the type methods, the things that make your objects
243243
different from the others. Of course, the Noddy object doesn't
@@ -248,7 +248,7 @@ \section{The Basics
248248
noddy_noddy_dealloc, /* tp_dealloc */
249249
\end{verbatim}
250250

251-
From here, all the type methods are \NULL, so I won't go over them yet
251+
From here, all the type methods are \NULL, so we'll go over them later
252252
--- that's for the next section!
253253

254254
Everything else in the file should be familiar, except for this line
@@ -452,7 +452,7 @@ \subsection{Object Presentation}
452452
is, it is called when Python code calls \function{str()} on an
453453
instance of your object. It's implementation is very similar to the
454454
\member{tp_repr} function, but the resulting string is intended for
455-
human consumption. It \member{tp_str} is not specified, the
455+
human consumption. If \member{tp_str} is not specified, the
456456
\member{tp_repr} handler is used instead.
457457

458458
Here is a simple example:

0 commit comments

Comments
 (0)