@@ -37,7 +37,7 @@ object.
3737
3838This sort of thing can only be explained by example, so here's a minimal, but
3939complete, module that defines a new type named :class: `Custom ` inside a C
40- extension module :mod: `custom `:
40+ extension module :mod: `! custom `:
4141
4242.. note ::
4343 What we're showing here is the traditional way of defining *static *
@@ -55,7 +55,7 @@ from the previous chapter. This file defines three things:
5555#. How the :class: `Custom ` **type ** behaves: this is the ``CustomType `` struct,
5656 which defines a set of flags and function pointers that the interpreter
5757 inspects when specific operations are requested.
58- #. How to initialize the :mod: `custom ` module: this is the ``PyInit_custom ``
58+ #. How to initialize the :mod: `! custom ` module: this is the ``PyInit_custom ``
5959 function and the associated ``custommodule `` struct.
6060
6161The first bit is::
@@ -127,7 +127,7 @@ our objects and in some error messages, for example:
127127 TypeError: can only concatenate str (not "custom.Custom") to str
128128
129129 Note that the name is a dotted name that includes both the module name and the
130- name of the type within the module. The module in this case is :mod: `custom ` and
130+ name of the type within the module. The module in this case is :mod: `! custom ` and
131131the type is :class: `Custom `, so we set the type name to :class: `custom.Custom `.
132132Using the real dotted import path is important to make your type compatible
133133with the :mod: `pydoc ` and :mod: `pickle ` modules. ::
@@ -229,7 +229,7 @@ Adding data and methods to the Basic example
229229============================================
230230
231231Let's extend the basic example to add some data and methods. Let's also make
232- the type usable as a base class. We'll create a new module, :mod: `custom2 ` that
232+ the type usable as a base class. We'll create a new module, :mod: `! custom2 ` that
233233adds these capabilities:
234234
235235.. literalinclude :: ../includes/custom2.c
0 commit comments