[Python-Dev] [Python-checkins] r87145 - python/branches/py3k/Doc/whatsnew/3.2.rst (original) (raw)
Eric Smith eric at trueblade.com
Thu Dec 9 23:54:12 CET 2010
- Previous message: [Python-Dev] [Python-checkins] r87145 - python/branches/py3k/Doc/whatsnew/3.2.rst
- Next message: [Python-Dev] [Python-checkins] r87145 - python/branches/py3k/Doc/whatsnew/3.2.rst
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 12/9/2010 5:45 PM, Raymond Hettinger wrote:
On Dec 9, 2010, at 2:18 PM, Nick Coghlan wrote:
On Fri, Dec 10, 2010 at 2:41 AM, raymond.hettinger <python-checkins at python.org> wrote: @@ -588,7 +593,12 @@ pointing to the original callable function. This allows wrapped functions to be introspected. It also copies :attr:
_annotations_
if defined. And now it also gracefully skips over missing attributes such as :attr:_doc_
which - might not be defined for the wrapped callable. + might not be defined for the wrapped callable: + +>>> callable(max) + True +>>> callable(20) + FalsePlaceholder example? Trivial function begets a trivial example :-) If you think it warrants more, I'm open to suggestions.
I think the issue is that the section is talking about functools.wraps, the example is for callable().
- Previous message: [Python-Dev] [Python-checkins] r87145 - python/branches/py3k/Doc/whatsnew/3.2.rst
- Next message: [Python-Dev] [Python-checkins] r87145 - python/branches/py3k/Doc/whatsnew/3.2.rst
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]