Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 692b3f8 commit 8a1c254Copy full SHA for 8a1c254
1 file changed
Doc/glossary.rst
@@ -160,9 +160,9 @@ Glossary
160
must be a duck.") By emphasizing interfaces rather than specific types,
161
well-designed code improves its flexibility by allowing polymorphic
162
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.
+ :func:`isinstance`. (Note, however, that duck-typing can be complemented
+ with :term:`abstract base class`\ es.) Instead, it typically employs
+ :func:`hasattr` tests or :term:`EAFP` programming.
166
167
EAFP
168
Easier to ask for forgiveness than permission. This common Python coding
0 commit comments