From: Georg Brandl Date: Sun, 11 Jul 2010 08:36:20 +0000 (+0000) Subject: #3214 followup: add link to ABC entry. X-Git-Tag: v3.2a1~232 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8a1c2543ff43964fb26191caee531197b3b89245;p=thirdparty%2FPython%2Fcpython.git #3214 followup: add link to ABC entry. --- diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 0fe005d4c48c..dac1acf029ef 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -160,9 +160,9 @@ Glossary must be a duck.") By emphasizing interfaces rather than specific types, well-designed code improves its flexibility by allowing polymorphic substitution. Duck-typing avoids tests using :func:`type` or - :func:`isinstance`. (Note, however, that duck-typing can be complemented - with abstract base classes.) Instead, it typically employs :func:`hasattr` - 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. EAFP Easier to ask for forgiveness than permission. This common Python coding