summaryrefslogtreecommitdiffstats
path: root/Lib/inspect.py
Commit message (Collapse)AuthorAgeFilesLines
* inspect: Fix getsource() to load updated source of reloaded moduleYury Selivanov2014-12-081-5/+11
| | | | Issue #1218234. Initial patch by Berker Peksag.
* Issue #22186: Fix typos in Lib/.Berker Peksag2014-10-191-1/+1
|\ | | | | | | Patch by Févry Thibault.
| * Issue #22186: Fix typos in Lib/.Berker Peksag2014-10-191-1/+1
| | | | | | | | Patch by Févry Thibault.
| * inspect: Validate that __signature__ is None or an instance of Signature.Yury Selivanov2014-06-231-0/+4
| | | | | | | | Closes #21801.
| * inspect.signautre: Fix functools.partial support. Issue #21117Yury Selivanov2014-04-081-73/+62
| |
| * inspect: Fix getcallargs() to fail correctly if more than 3 args are missing.Yury Selivanov2014-03-271-1/+1
| | | | | | | | Patch by Jeremiah Lowin. Closes #20817.
| * inspect: Fix getcallargs() to raise correct TypeErrorYury Selivanov2014-03-271-1/+1
| | | | | | | | | | ... for missing keyword-only arguments. Patch by Jeremiah Lowin. Closes #20816.
| * inspect.signature: Check for function-like objects before builtins. Issue #17159Yury Selivanov2014-02-211-4/+4
| |
| * inspect: Fix getfullargspec to support builtin module-level functions. Issue ↵Yury Selivanov2014-02-211-2/+9
| | | | | | | | #20711
| * inspect: Fix getfullargspec() to not to follow __wrapped__ chainsYury Selivanov2014-02-191-46/+65
| | | | | | | | Initial patch by Nick Coghlan.
* | inspect: Fix getsource() to support decorated functions.Yury Selivanov2014-09-261-0/+1
| | | | | | | | Issue #1764286. Patch by Claudiu Popa.
* | inspect.Signature: Fix discrepancy between __eq__ and __hash__.Yury Selivanov2014-09-121-39/+14
| | | | | | | | Issue #20334. Thanks to Antony Lee for bug report & initial patch.
* | Issue #16808: inspect.stack() now returns a named tuple instead of a tuple.Antoine Pitrou2014-08-241-2/+6
| | | | | | | | Patch by Daniel Shahaf.
* | Issue #22032: __qualname__ instead of __name__ is now always used to formatSerhiy Storchaka2014-07-221-2/+2
| | | | | | | | fully qualified class names of Python implemented classes.
* | Fix getargspec() doctring (varkw -> keywords).Guido van Rossum2014-07-151-4/+3
| |
* | inspect: Validate that __signature__ is None or an instance of Signature.Yury Selivanov2014-06-231-0/+4
| | | | | | | | Closes #21801.
* | inspect: Make Signature and Parameter hashable. Issue #20334.Yury Selivanov2014-04-081-0/+16
| |
* | inspect.signautre: Fix functools.partial support. Issue #21117Yury Selivanov2014-04-081-76/+63
| |
* | inspect: Remove references to Python-3000Yury Selivanov2014-04-011-2/+2
| |
* | inspect: Update docstrings; Rename _signature_internal to ↵Yury Selivanov2014-03-291-57/+78
| | | | | | | | _signature_from_callable.
* | inspect: Fix getcallargs() to fail correctly if more than 3 args are missing.Yury Selivanov2014-03-271-1/+1
| | | | | | | | Patch by Jeremiah Lowin. Closes #20817.
* | inspect: Fix getcallargs() to raise correct TypeErrorYury Selivanov2014-03-271-1/+1
| | | | | | | | | | ... for missing keyword-only arguments. Patch by Jeremiah Lowin. Closes #20816.
* | inspect.signature: Improve repr of Signature and Parameter. Closes #20378Yury Selivanov2014-03-271-2/+6
| |
* | inspect.Signature: Add 'Signature.from_callable' classmethod. Closes #17373Yury Selivanov2014-03-271-30/+56
| |
* | inspect.signature: Make Signature and Parameter picklable. Closes #20726Yury Selivanov2014-03-271-0/+20
| |
* | inspect.signature: Use enum for parameter kind constants. Closes #19573Yury Selivanov2014-03-271-14/+13
| | | | | | | | Patch by Antony Lee.
* | inspect.signature: Check for function-like objects before builtins. Issue #17159Yury Selivanov2014-02-211-4/+4
| |
* | inspect: Fix getfullargspec to support builtin module-level functions. Issue ↵Yury Selivanov2014-02-211-2/+9
| | | | | | | | #20711
* | inspect: Fix getfullargspec() to not to follow __wrapped__ chainsYury Selivanov2014-02-191-46/+65
|/ | | | Initial patch by Nick Coghlan.
* Issue #20530: Argument Clinic's signature format has been revised again.Larry Hastings2014-02-091-23/+92
| | | | | | | The new syntax is highly human readable while still preventing false positives. The syntax also extends Python syntax to denote "self" and positional-only parameters, allowing inspect.Signature objects to be totally accurate for all supported builtins in Python 3.4.
* inspect.signature: Add (restore) support for builtin classes #20473Yury Selivanov2014-02-031-131/+164
|
* inspect.signature: Use 'inspect.isbuiltin' in 'Signature.from_builtin'Yury Selivanov2014-02-021-1/+2
|
* inspect: Add some comments in Parameter.__eq__ methodYury Selivanov2014-01-311-0/+11
|
* inspect.Signauture.from_function: validate duck functions in Signature ↵Yury Selivanov2014-01-311-5/+11
| | | | constructor #17159
* inspect.signature: Support duck-types of Python functions (Cython, for ↵Yury Selivanov2014-01-311-2/+30
| | | | instance) #17159
* inspect.classify_class_attrs: Classify object.__new__ and __init__ correctly ↵Yury Selivanov2014-01-311-1/+1
| | | | #18801
* inspect.Signature.from_function: Use CO_VARARGS & CO_VARKEYWORDS constantsYury Selivanov2014-01-291-3/+3
|
* inspect.signature: Make sure that if a callable object has '_patialmethod'Yury Selivanov2014-01-291-11/+12
| | | | attribute, that attribute is an instance of 'functools.partialmethod'.
* inspect.Signature.bind: Update method signature to rule out possiblityYury Selivanov2014-01-291-4/+4
| | | | | of name conflict between '__bind_self' and actual keyword argument to 'bind' or 'bind_partial'.
* inspect: Rename private helper functionYury Selivanov2014-01-291-5/+5
|
* inspect.getfullargspec: Use inspect.signature API behind the scenes #17481Yury Selivanov2014-01-291-6/+105
|
* inspect.Signature: ensure that non-default params don't follow default ones ↵Yury Selivanov2014-01-291-1/+20
| | | | #20427
* inspect.signature: Add support for decorated (wrapped) builtins #20425Yury Selivanov2014-01-291-3/+3
|
* inspect.Signature: Make from_builtin to raise an exception if no signature canYury Selivanov2014-01-291-10/+20
| | | | be provided #20422
* inspect.Signature.bind: Add **kwargs/positional-only check backYury Selivanov2014-01-291-0/+8
|
* inspect.Signature.bind: Fix pos-only params with defaults; fix *args in ↵Yury Selivanov2014-01-281-8/+8
| | | | | | named args #19140 Initial patch by Yann Kaiser (epsy).
* inspect: Fix docstrings for Parameter & Signature classesYury Selivanov2014-01-281-3/+5
|
* inspect.signature: Handle bound methods with '(*args)' signature correctly ↵Yury Selivanov2014-01-281-5/+34
| | | | #20401
* Issue #20326: Argument Clinic now uses a simple, unique signature toLarry Hastings2014-01-281-12/+9
| | | | | | | | | | annotate text signatures in docstrings, resulting in fewer false positives. "self" parameters are also explicitly marked, allowing inspect.Signature() to authoritatively detect (and skip) said parameters. Issue #20326: Argument Clinic now generates separate checksums for the input and output sections of the block, allowing external tools to verify that the input has not changed (and thus the output is not out-of-date).
* inspect.signature: Support classes without user-defined __init__/__new__ #20308Yury Selivanov2014-01-281-0/+11
|