Issue 20425: inspect.Signature should work on decorated builtins (original ) (raw ) This issue has been migrated to GitHub: https://github.com/python/cpython/issues/64624
classification
process
Created on 2014-01-28 21:04 by yselivanov , last changed 2022-04-11 14:57 by admin . This issue is now closed .
Messages (4)
msg209585 - (view)
Author: Yury Selivanov (yselivanov) *
Date: 2014-01-28 21:04
inspect.signature should work with decorated builtins. Suppose I want to create a cached version of 'min' builtin: cached_min = functools.lru_cache()(min) The signature of the 'cached_min' should match the signature of 'min'. The patch is attached.
msg209636 - (view)
Author: Alyssa Coghlan (ncoghlan) *
Date: 2014-01-29 12:19
Patch looks good to me.
msg209652 - (view)
Author: Roundup Robot (python-dev)
Date: 2014-01-29 15:53
New changeset a9fedabb69e5 by Yury Selivanov in branch 'default': inspect.signature: Add support for decorated (wrapped) builtins #20425 http://hg.python.org/cpython/rev/a9fedabb69e5
msg209653 - (view)
Author: Yury Selivanov (yselivanov) *
Date: 2014-01-29 15:53
Thanks for the review!
History
Date
User
Action
Args
2022-04-11 14:57:57
admin
set
github: 64624
2014-01-29 15:53:38
yselivanov
set
status: open -> closedresolution: fixedmessages: +
2014-01-29 15:53:08
python-dev
set
nosy: + python-dev messages: +
2014-01-29 12:19:27
ncoghlan
set
messages: +
2014-01-28 21:05:02
yselivanov
set
keywords: + needs review
2014-01-28 21:04:52
yselivanov
create