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

Skip to content

Commit 8a1c254

Browse files
committed
#3214 followup: add link to ABC entry.
1 parent 692b3f8 commit 8a1c254

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/glossary.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ Glossary
160160
must be a duck.") By emphasizing interfaces rather than specific types,
161161
well-designed code improves its flexibility by allowing polymorphic
162162
substitution. Duck-typing avoids tests using :func:`type` or
163-
:func:`isinstance`. (Note, however, that duck-typing can be complemented
164-
with abstract base classes.) Instead, it typically employs :func:`hasattr`
165-
tests or :term:`EAFP` programming.
163+
:func:`isinstance`. (Note, however, that duck-typing can be complemented
164+
with :term:`abstract base class`\ es.) Instead, it typically employs
165+
:func:`hasattr` tests or :term:`EAFP` programming.
166166

167167
EAFP
168168
Easier to ask for forgiveness than permission. This common Python coding

0 commit comments

Comments
 (0)