[issue3214] Suggest change to glossary explanation: "Duck Typing"

Terry J. Reedy report at bugs.python.org
Fri Jul 9 06:41:11 CEST 2010


Terry J. Reedy <tjreedy at udel.edu> added the comment:

I actually would challenge the first sentence "A pythonic programming style which determines an object’s type by inspection of its method or attribute signature ". To me, and at least some usage on python-list, duck-typing means determining the interface (not type) by calling methods and catching exceptions if not present. This is the EAFP rather than inspection/LBYL style of duck typing.

In 3.1: Python 3000 
Nickname for the Python 3.x release line (coined long ago when the release of version 3 was something in the distant future.) This is also abbreviated “Py3k”. 

I suspect this was backported at the same time.

----------
nosy: +tjreedy
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5, Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3214>
_______________________________________


More information about the Python-bugs-list mailing list