Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | inspect: Fix getcallargs() to raise correct TypeError | Yury Selivanov | 2014-03-27 | 1 | -1/+1 | |
| | | | | | | | | | | ... for missing keyword-only arguments. Patch by Jeremiah Lowin. Closes #20816. | |||||
| * | inspect.signature: Check for function-like objects before builtins. Issue #17159 | Yury Selivanov | 2014-02-21 | 1 | -4/+4 | |
| | | ||||||
| * | inspect: Fix getfullargspec to support builtin module-level functions. Issue ↵ | Yury Selivanov | 2014-02-21 | 1 | -2/+9 | |
| | | | | | | | | #20711 | |||||
| * | inspect: Fix getfullargspec() to not to follow __wrapped__ chains | Yury Selivanov | 2014-02-19 | 1 | -46/+65 | |
| | | | | | | | | Initial patch by Nick Coghlan. | |||||
* | | inspect: Fix getsource() to support decorated functions. | Yury Selivanov | 2014-09-26 | 1 | -0/+1 | |
| | | | | | | | | Issue #1764286. Patch by Claudiu Popa. | |||||
* | | inspect.Signature: Fix discrepancy between __eq__ and __hash__. | Yury Selivanov | 2014-09-12 | 1 | -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 Pitrou | 2014-08-24 | 1 | -2/+6 | |
| | | | | | | | | Patch by Daniel Shahaf. | |||||
* | | Issue #22032: __qualname__ instead of __name__ is now always used to format | Serhiy Storchaka | 2014-07-22 | 1 | -2/+2 | |
| | | | | | | | | fully qualified class names of Python implemented classes. | |||||
* | | Fix getargspec() doctring (varkw -> keywords). | Guido van Rossum | 2014-07-15 | 1 | -4/+3 | |
| | | ||||||
* | | inspect: Validate that __signature__ is None or an instance of Signature. | Yury Selivanov | 2014-06-23 | 1 | -0/+4 | |
| | | | | | | | | Closes #21801. | |||||
* | | inspect: Make Signature and Parameter hashable. Issue #20334. | Yury Selivanov | 2014-04-08 | 1 | -0/+16 | |
| | | ||||||
* | | inspect.signautre: Fix functools.partial support. Issue #21117 | Yury Selivanov | 2014-04-08 | 1 | -76/+63 | |
| | | ||||||
* | | inspect: Remove references to Python-3000 | Yury Selivanov | 2014-04-01 | 1 | -2/+2 | |
| | | ||||||
* | | inspect: Update docstrings; Rename _signature_internal to ↵ | Yury Selivanov | 2014-03-29 | 1 | -57/+78 | |
| | | | | | | | | _signature_from_callable. | |||||
* | | inspect: Fix getcallargs() to fail correctly if more than 3 args are missing. | Yury Selivanov | 2014-03-27 | 1 | -1/+1 | |
| | | | | | | | | Patch by Jeremiah Lowin. Closes #20817. | |||||
* | | inspect: Fix getcallargs() to raise correct TypeError | Yury Selivanov | 2014-03-27 | 1 | -1/+1 | |
| | | | | | | | | | | ... for missing keyword-only arguments. Patch by Jeremiah Lowin. Closes #20816. | |||||
* | | inspect.signature: Improve repr of Signature and Parameter. Closes #20378 | Yury Selivanov | 2014-03-27 | 1 | -2/+6 | |
| | | ||||||
* | | inspect.Signature: Add 'Signature.from_callable' classmethod. Closes #17373 | Yury Selivanov | 2014-03-27 | 1 | -30/+56 | |
| | | ||||||
* | | inspect.signature: Make Signature and Parameter picklable. Closes #20726 | Yury Selivanov | 2014-03-27 | 1 | -0/+20 | |
| | | ||||||
* | | inspect.signature: Use enum for parameter kind constants. Closes #19573 | Yury Selivanov | 2014-03-27 | 1 | -14/+13 | |
| | | | | | | | | Patch by Antony Lee. | |||||
* | | inspect.signature: Check for function-like objects before builtins. Issue #17159 | Yury Selivanov | 2014-02-21 | 1 | -4/+4 | |
| | | ||||||
* | | inspect: Fix getfullargspec to support builtin module-level functions. Issue ↵ | Yury Selivanov | 2014-02-21 | 1 | -2/+9 | |
| | | | | | | | | #20711 | |||||
* | | inspect: Fix getfullargspec() to not to follow __wrapped__ chains | Yury Selivanov | 2014-02-19 | 1 | -46/+65 | |
|/ | | | | Initial patch by Nick Coghlan. | |||||
* | Issue #20530: Argument Clinic's signature format has been revised again. | Larry Hastings | 2014-02-09 | 1 | -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 #20473 | Yury Selivanov | 2014-02-03 | 1 | -131/+164 | |
| | ||||||
* | inspect.signature: Use 'inspect.isbuiltin' in 'Signature.from_builtin' | Yury Selivanov | 2014-02-02 | 1 | -1/+2 | |
| | ||||||
* | inspect: Add some comments in Parameter.__eq__ method | Yury Selivanov | 2014-01-31 | 1 | -0/+11 | |
| | ||||||
* | inspect.Signauture.from_function: validate duck functions in Signature ↵ | Yury Selivanov | 2014-01-31 | 1 | -5/+11 | |
| | | | | constructor #17159 | |||||
* | inspect.signature: Support duck-types of Python functions (Cython, for ↵ | Yury Selivanov | 2014-01-31 | 1 | -2/+30 | |
| | | | | instance) #17159 | |||||
* | inspect.classify_class_attrs: Classify object.__new__ and __init__ correctly ↵ | Yury Selivanov | 2014-01-31 | 1 | -1/+1 | |
| | | | | #18801 | |||||
* | inspect.Signature.from_function: Use CO_VARARGS & CO_VARKEYWORDS constants | Yury Selivanov | 2014-01-29 | 1 | -3/+3 | |
| | ||||||
* | inspect.signature: Make sure that if a callable object has '_patialmethod' | Yury Selivanov | 2014-01-29 | 1 | -11/+12 | |
| | | | | attribute, that attribute is an instance of 'functools.partialmethod'. | |||||
* | inspect.Signature.bind: Update method signature to rule out possiblity | Yury Selivanov | 2014-01-29 | 1 | -4/+4 | |
| | | | | | of name conflict between '__bind_self' and actual keyword argument to 'bind' or 'bind_partial'. | |||||
* | inspect: Rename private helper function | Yury Selivanov | 2014-01-29 | 1 | -5/+5 | |
| | ||||||
* | inspect.getfullargspec: Use inspect.signature API behind the scenes #17481 | Yury Selivanov | 2014-01-29 | 1 | -6/+105 | |
| | ||||||
* | inspect.Signature: ensure that non-default params don't follow default ones ↵ | Yury Selivanov | 2014-01-29 | 1 | -1/+20 | |
| | | | | #20427 | |||||
* | inspect.signature: Add support for decorated (wrapped) builtins #20425 | Yury Selivanov | 2014-01-29 | 1 | -3/+3 | |
| | ||||||
* | inspect.Signature: Make from_builtin to raise an exception if no signature can | Yury Selivanov | 2014-01-29 | 1 | -10/+20 | |
| | | | | be provided #20422 | |||||
* | inspect.Signature.bind: Add **kwargs/positional-only check back | Yury Selivanov | 2014-01-29 | 1 | -0/+8 | |
| | ||||||
* | inspect.Signature.bind: Fix pos-only params with defaults; fix *args in ↵ | Yury Selivanov | 2014-01-28 | 1 | -8/+8 | |
| | | | | | | named args #19140 Initial patch by Yann Kaiser (epsy). | |||||
* | inspect: Fix docstrings for Parameter & Signature classes | Yury Selivanov | 2014-01-28 | 1 | -3/+5 | |
| | ||||||
* | inspect.signature: Handle bound methods with '(*args)' signature correctly ↵ | Yury Selivanov | 2014-01-28 | 1 | -5/+34 | |
| | | | | #20401 | |||||
* | Issue #20326: Argument Clinic now uses a simple, unique signature to | Larry Hastings | 2014-01-28 | 1 | -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__ #20308 | Yury Selivanov | 2014-01-28 | 1 | -0/+11 | |
| | ||||||
* | inspect.signature: Add support for 'functools.partialmethod' #20223 | Yury Selivanov | 2014-01-27 | 1 | -40/+67 | |
| | ||||||
* | inspect.signature: Use '/' to separate positional-only parameters from | Yury Selivanov | 2014-01-27 | 1 | -23/+30 | |
| | | | | the rest in Signature.__str__. #20356 | |||||
* | inspect.getfile: Don't crash on classes without '__module__' attribute #20372 | Yury Selivanov | 2014-01-27 | 1 | -3/+4 | |
| | | | | | Some classes defined in C may not have the '__module__' attribute, so we now handle this case to avoid having unexepected AttributeError. | |||||
* | Issue #20189: Four additional builtin types (PyTypeObject, | Larry Hastings | 2014-01-24 | 1 | -5/+27 | |
| | | | | | | PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type) have been modified to provide introspection information for builtins. Also: many additional Lib, test suite, and Argument Clinic fixes. | |||||
* | Issue #20226: Major improvements to Argument Clinic. | Larry Hastings | 2014-01-16 | 1 | -37/+58 | |
| | | | | | | | | | | | | | | | | | | | | | | | * You may now specify an expression as the default value for a parameter! Example: "sys.maxsize - 1". This support is intentionally quite limited; you may only use values that can be represented as static C values. * Removed "doc_default", simplified support for "c_default" and "py_default". (I'm not sure we still even need "py_default", but I'm leaving it in for now in case a use presents itself.) * Parameter lines support a trailing '\\' as a line continuation character, allowing you to break up long lines. * The argument parsing code generated when supporting optional groups now uses PyTuple_GET_SIZE instead of PyTuple_GetSize, leading to a 850% speedup in parsing. (Just kidding, this is an unmeasurable difference.) * A bugfix for the recent regression where the generated prototype from pydoc for builtins would be littered with unreadable "=<object ...>"" default values for parameters that had no default value. * Converted some asserts into proper failure messages. * Many doc improvements and fixes. | |||||
* | Issue #20144: Argument Clinic now supports simple constants as parameter | Larry Hastings | 2014-01-07 | 1 | -7/+49 | |
| | | | | | default values. inspect.Signature correspondingly supports them in __text_signature__ fields for builtins. |