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

2010-07-11 Thread Éric Araujo
Éric Araujo added the comment: Applied in r82790 by Georg, thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

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

2010-07-10 Thread Éric Araujo
Éric Araujo added the comment: To make one useful comment today: I noticed one missing :term: construct to link ABCs from duck typing. Attaching patch. -- keywords: +patch Added file: http://bugs.python.org/file17937/add-ref.diff ___ Python tracker

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

2010-07-10 Thread Éric Araujo
Éric Araujo added the comment: Re-reading the glossary for both entries, they already link to each other, and the subtleties of ABCs can be learned later in their documentation. The glossary is good, sorry for the noise. -- ___ Python tracker

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

2010-07-10 Thread Éric Araujo
Éric Araujo added the comment: Benjamin: Georg, you may also want to amend this entry for ABCs. Georg: ABCs are not duck-typing since they involve isinstance() anyway. Since ABCs provide virtual subclassing, using hasattr without requiring subclassing or registering, isn’t Benjamin right afte

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

2010-07-10 Thread Éric Araujo
Changes by Éric Araujo : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

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

2010-07-10 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed the first sentence in r82760. -- resolution: works for me -> fixed status: open -> closed ___ Python tracker ___ ___

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

2010-07-09 Thread Antoine Pitrou
Antoine Pitrou 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

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

2010-07-08 Thread Terry J. Reedy
Terry J. Reedy 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

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

2008-07-01 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: While we are at it, should we keep this one as is? « Python3000 A mythical python release, not required to be backward compatible, with telepathic interface. » Not so mythical after all... missing the telepathic interface though. --

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

2008-07-01 Thread Paddy McCarthy
Paddy McCarthy <[EMAIL PROTECTED]> added the comment: Hi Georg, A bit of relevant background about me: I've been interested in Duck Typing _specifically_ for a couple of years when I started watching edits to it on Wikipedia. I researched the history of the use of the term and changed the attr

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

2008-07-01 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Paddy: IMO hasattr() is the "if it quacks like a duck" part of duck-typing. It e.g. allows testing "hasattr(x, 'write')" to see if it's a writable file-like object, and doing something else otherwise. Benjamin: ABCs are not duck-typing since th

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

2008-06-27 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Georg, you may also want to amend this entry for ABCs. -- nosy: +benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]> _

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

2008-06-26 Thread Paddy McCarthy
New submission from Paddy McCarthy <[EMAIL PROTECTED]>: The official glossary entry here: http://docs.python.org/tut/node18.html#l2h-46 says: " duck-typing Pythonic programming style that determines an object's type by inspection of its method or attribute signature rather than by explicit re