@@ -134,7 +134,7 @@ compartmentalized**.
134
134
Using ``from modu import func `` is a way to pinpoint the function you want to
135
135
import and put it in the global namespace. While much less harmful than ``import
136
136
* `` because it shows explicitly what is imported in the global namespace, its
137
- advantage over a simpler `import modu ` is only that it will save some typing.
137
+ advantage over a simpler `` import modu ` ` is only that it will save some typing.
138
138
139
139
**Very bad **
140
140
@@ -181,8 +181,8 @@ different modules in the package are imported in a similar manner as plain
181
181
modules, but with a special behavior for the :file: `__init__.py ` file, which is used to
182
182
gather all package-wide definitions.
183
183
184
- A file :file: `modu.py ` in the directory :file: `pack/ ` is imported with the statement `import
185
- pack.modu `. This statement will look for an :file: `__init__.py ` file in :file: `pack `, execute
184
+ A file :file: `modu.py ` in the directory :file: `pack/ ` is imported with the statement `` import
185
+ pack.modu `` . This statement will look for an :file: `__init__.py ` file in :file: `pack `, execute
186
186
all of its top-level statements. Then it will look for a file :file: `pack/modu.py ` and
187
187
execute all of its top-level statements. After these operations, any variable,
188
188
function, or class defined in :file: `modu.py ` is available in the pack.modu namespace.
@@ -197,8 +197,8 @@ Leaving an :file:`__init__.py` file empty is considered normal and even a good p
197
197
if the package's modules and sub-packages do not need to share any code.
198
198
199
199
Lastly, a convenient syntax is available for importing deeply nested packages:
200
- `import very.deep.module as mod `. This allows you to use `mod ` in place of the verbose
201
- repetition of `very.deep.module `.
200
+ `` import very.deep.module as mod ` `. This allows you to use `mod ` in place of the verbose
201
+ repetition of `` very.deep.module ` `.
202
202
203
203
Object-oriented programming
204
204
---------------------------
0 commit comments