- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
➜
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | terry.reedy |
|---|---|
| Recipients | terry.reedy, yselivanov |
| Date | 2015-02-01.09:30:15 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1422783015.85.0.276072480946.issue19903@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
|---|
.signature also handles wrapped functions better.
>>> def deco(f):
import functools
@functools.wraps(f)
def ret(*args, **kw):
return f(*args, **kw)
return ret
>>> @deco
def f(n, k):
return n + k*2
>>> import inspect as ip
>>> isf=ip.signature(f)
>>> print(isf)
(n, k)
>>> ip.formatargspec(*ip.getfullargspec(f))
'(*args, **kw)' |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2015-02-01 09:30:15 | terry.reedy | set | recipients: + terry.reedy, yselivanov |
| 2015-02-01 09:30:15 | terry.reedy | set | messageid: <1422783015.85.0.276072480946.issue19903@psf.upfronthosting.co.za> |
| 2015-02-01 09:30:15 | terry.reedy | link | issue19903 messages |
| 2015-02-01 09:30:15 | terry.reedy | create |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
