Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add attribute pointing to wrapped function in functools.update_wrapper #53776

Closed
merwok opened this issue Aug 11, 2010 · 3 comments
Closed

Add attribute pointing to wrapped function in functools.update_wrapper #53776

merwok opened this issue Aug 11, 2010 · 3 comments
Assignees
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@merwok
Copy link
Member

merwok commented Aug 11, 2010

BPO 9567
Nosy @rhettinger, @ncoghlan, @merwok, @bitdancer

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/ncoghlan'
closed_at = <Date 2010-08-17.06:18:14.168>
created_at = <Date 2010-08-11.02:37:13.851>
labels = ['type-feature', 'library']
title = 'Add attribute pointing to wrapped function in functools.update_wrapper'
updated_at = <Date 2010-08-17.06:18:14.166>
user = 'https://github.com/merwok'

bugs.python.org fields:

activity = <Date 2010-08-17.06:18:14.166>
actor = 'ncoghlan'
assignee = 'ncoghlan'
closed = True
closed_date = <Date 2010-08-17.06:18:14.168>
closer = 'ncoghlan'
components = ['Library (Lib)']
creation = <Date 2010-08-11.02:37:13.851>
creator = 'eric.araujo'
dependencies = []
files = []
hgrepos = []
issue_num = 9567
keywords = []
message_count = 3.0
messages = ['113579', '113581', '114100']
nosy_count = 4.0
nosy_names = ['rhettinger', 'ncoghlan', 'eric.araujo', 'r.david.murray']
pr_nums = []
priority = 'normal'
resolution = 'accepted'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue9567'
versions = ['Python 3.2']

@merwok
Copy link
Member Author

merwok commented Aug 11, 2010

Raymond in bpo-9396:

“I was just about to propose that functools.wraps add a standard attribute to point at the underlying function (on the theory that objects should be introspectable). This would allow a standard way to get to the underlying unwrapped functions.”

@merwok merwok added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Aug 11, 2010
@ncoghlan ncoghlan self-assigned this Aug 11, 2010
@ncoghlan
Copy link
Contributor

@ncoghlan ncoghlan changed the title Add attribute pointing to wrapped function to partial objects Add attribute pointing to wrapped function in functools.update_wrapper Aug 11, 2010
@ncoghlan
Copy link
Contributor

Implemented in r84132

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants