[issue20425] inspect.Signature should work on decorated builtins

Yury Selivanov report at bugs.python.org
Tue Jan 28 22:04:52 CET 2014


New submission from Yury Selivanov:

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.

----------
assignee: yselivanov
files: decorated_builtins_01.patch
keywords: patch
messages: 209585
nosy: brett.cannon, larry, ncoghlan, yselivanov
priority: high
severity: normal
stage: patch review
status: open
title: inspect.Signature should work on decorated builtins
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file33783/decorated_builtins_01.patch

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


More information about the Python-bugs-list mailing list