Skip to content

Commit 0e7d195

Browse files
author
Mike Mindel
committed
Small updates to README.md
1 parent 69145be commit 0e7d195

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ editor; you can easily jump between a Python module and its test file.
114114

115115
Absolute imports are brittle and a little cumbersone to write it out. The sweet spot is about one (max two) layers deep in the hierarchy, so `import foo` or `import foo.bar`. Absolute imports make sense when one package talks to another, however when you're inside a package they are not very useful. After you add some typing, you'll quickly find the first way to save space is to loosen your adherence to absolute imports.
116116

117-
Why not try out `explicit relative imports` like this:
117+
Why not try out explicit relative imports like this:
118118

119119
```
120120
from . import foo, bar
@@ -128,7 +128,7 @@ from .foo import baz
128128
from .. import foo
129129
```
130130

131-
They're easier to work. They're also clear because you're importing from within the same package.
131+
They're easier to work with as they make it clear you're importing from within the same package.
132132

133133
However, if you add explicit relative imports and run these scripts from the command line you'll get an error like this:
134134

0 commit comments

Comments
 (0)