Skip to content

Commit 69d9086

Browse files
authored
Grammar: Change "it's" to "its" in some places (yasoob#203)
* Use "it's" for "it is" * Use "its" for the possessive
1 parent 42577ee commit 69d9086

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

classes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ its ``__init__`` method is called. For example:
159159
# called
160160
161161
You can see that ``__init__`` is called immediately after an instance is
162-
created. You can also pass arguments to the class during it's
162+
created. You can also pass arguments to the class during its
163163
initialization. Like this:
164164

165165
.. code:: python

context_managers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Let's dissect this method a little.
169169
1. Python encounters the ``yield`` keyword. Due to this it creates a
170170
generator instead of a normal function.
171171
2. Due to the decoration, contextmanager is called with the function
172-
name (``open_file``) as it's argument.
172+
name (``open_file``) as its argument.
173173
3. The ``contextmanager`` decorator returns the generator wrapped by the
174174
``GeneratorContextManager`` object.
175175
4. The ``GeneratorContextManager`` is assigned to the ``open_file``

python_c_extension.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ implementation is the ease of interfacing C code to Python.
66

77
There are three key methods developers use to call C functions from
88
their python code - ``ctypes``, ``SWIG`` and ``Python/C API``. Each
9-
method comes with it's own merits and demerits.
9+
method comes with its own merits and demerits.
1010

1111
Firstly, why would you want to interface C with Python?
1212

@@ -194,7 +194,7 @@ Python/C API
194194
---------------
195195

196196
The `C/Python API <https://docs.python.org/2/c-api/>`__ is probably the
197-
most widely used method - not for it's simplicity but for the fact that
197+
most widely used method - not for its simplicity but for the fact that
198198
you can manipulate python objects in your C code.
199199

200200
This method requires your C code to be specifically written for
@@ -229,7 +229,7 @@ the addList module is not written in Python at all, but rather in C.
229229
Next we'll have a look at the C code that get's built into the
230230
``addList`` Python module. This may seem a bit daunting at first, but
231231
once you understand the various components that go into writing the C
232-
file, it's pretty straight forward.
232+
file, it's pretty straightforward.
233233

234234
*adder.c*
235235

0 commit comments

Comments
 (0)