Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-34890: Make iscoroutinefunction, isgeneratorfunction and ↵ | Pablo Galindo | 2018-10-26 | 1 | -9/+12 |
| | | | | | | | | | | | isasyncgenfunction work with functools.partial (GH-9903) inspect.isfunction() processes both inspect.isfunction(func) and inspect.isfunction(partial(func, arg)) correctly but some other functions in the inspect module (iscoroutinefunction, isgeneratorfunction and isasyncgenfunction) lack this functionality. This commits adds a new check in the mentioned functions in the inspect module so they can work correctly with arbitrarily nested partial functions. | ||||
* | bpo-33594: Add deprecation info in inspect.py module (GH-7036) | Matthias Bussonnier | 2018-10-19 | 1 | -7/+15 |
| | |||||
* | bpo-34871: inspect: Don't pollute sys.modules (GH-9696) | INADA Naoki | 2018-10-04 | 1 | -1/+1 |
| | | | https://bugs.python.org/issue34871 | ||||
* | bpo-32892: Use ast.Constant instead of specific constant AST types. (GH-9445) | Serhiy Storchaka | 2018-09-27 | 1 | -8/+2 |
| | |||||
* | bpo-6700: Fix inspect.getsourcelines for module level frames/tracebacks ↵ | Vladimir Matveev | 2018-08-24 | 1 | -1/+6 |
| | | | | (GH-8864) | ||||
* | bpo-33582: Remove duplicate space in inspect.formatargspec() deprecation ↵ | Zackery Spytz | 2018-06-12 | 1 | -1/+1 |
| | | | | warning (GH-7655) | ||||
* | bpo-33582: Emit deprecation warning for `formatargspec` (GH-6994) | Matthias Bussonnier | 2018-06-11 | 1 | -2/+14 |
| | |||||
* | bpo-33197: Add description property for _ParameterKind. (GH-7206) | Dong-hee Na | 2018-06-08 | 1 | -6/+7 |
| | |||||
* | bpo-33197: Update a error message of invalid inspect.Parameters. (GH-6636) | Dong-hee Na | 2018-05-29 | 1 | -16/+31 |
| | |||||
* | bpo-26103: Fix inspect.isdatadescriptor() and a data descriptor definition. ↵ | Aaron Hall, MBA | 2018-05-20 | 1 | -2/+2 |
| | | | | | | (GH-1959) Look for '__set__' or '__delete__'. | ||||
* | bpo-33009: Fix inspect.signature() for single-parameter partialmethods. ↵ | Yury Selivanov | 2018-03-06 | 1 | -1/+2 |
| | | | | (GH-6004) | ||||
* | bpo-32991: Restore expectation that inspect.getfile raises TypeError on ↵ | Jason R. Coombs | 2018-03-05 | 1 | -2/+2 |
| | | | | | | | | | | namespace package (GH-5980) * bpo-32991: Add test capturing expectation. DocTestFinder.find should return an empty list for doctests in a namespace package. * bpo-32991: Restore expectation that inspect.getfile on a namespace package raises TypeError. | ||||
* | Cleanup inspect | Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) | 2018-02-09 | 1 | -4/+4 |
| | | | | * use isinstance(..) instead of type(..) * use '.. not in ..' instead of 'not .. in .. ' | ||||
* | bpo-32678: inspect: Import ast lazily (GH-5344) | INADA Naoki | 2018-01-27 | 1 | -1/+3 |
| | |||||
* | bpo-32265: Classify class and static methods of builtin types. (#4776) | Serhiy Storchaka | 2017-12-15 | 1 | -2/+2 |
| | | | | Add types.ClassMethodDescriptorType for unbound class methods. | ||||
* | bpo-32157: Removed explicit quotes around %r and {!r}. (#4582) | Serhiy Storchaka | 2017-11-28 | 1 | -2/+2 |
| | |||||
* | bpo-32018: Fix inspect.signature repr to follow PEP 8 (#4408) | Dong-hee Na | 2017-11-15 | 1 | -2/+5 |
| | |||||
* | bpo-30639: Lazily compute repr for error (#2132) | Thomas Kluyver | 2017-10-24 | 1 | -2/+3 |
| | |||||
* | bpo-25532: Protect against infinite loops in inspect.unwrap() (#1717) | Thomas Kluyver | 2017-05-23 | 1 | -3/+6 |
| | | | | | | | | | Some objects (like test mocks) auto-generate new objects on attribute access, which can lead to an infinite loop in inspect.unwrap(). Ensuring references are retained to otherwise temporary objects and capping the size of the memo dict turns this case into a conventional exception instead. | ||||
* | bpo-30296 Remove unnecessary tuples, lists, sets, and dicts (#1489) | Jon Dufresne | 2017-05-18 | 1 | -1/+1 |
| | | | | | | | | * Replaced list(<generator expression>) with list comprehension * Replaced dict(<generator expression>) with dict comprehension * Replaced set(<list literal>) with set literal * Replaced builtin func(<list comprehension>) with func(<generator expression>) when supported (e.g. any(), all(), tuple(), min(), & max()) | ||||
* | bpo-30149: Fix partialmethod without explicit self parameter (#1308) | Dong-hee Na | 2017-05-17 | 1 | -4/+9 |
| | |||||
* | bpo-29822: Make inspect.isabstract() work during __init_subclass__. (#678) | Nate | 2017-04-24 | 1 | -1/+22 |
| | | | | | | | At the time when an abstract base class' __init_subclass__ runs, ABCMeta.__new__ has not yet finished running, so in the presence of __init_subclass__, inspect.isabstract() can no longer depend only on TPFLAGS_IS_ABSTRACT. | ||||
* | bpo-26985: Add missing info of code object in inspect documentation (GH-1090) | Xiang Zhang | 2017-04-13 | 1 | -12/+18 |
| | |||||
* | Issue #15812: Merge from 3.5 | Berker Peksag | 2017-01-03 | 1 | -1/+0 |
|\ | |||||
| * | Issue #15812: Delete redundant max(start, 0) | Berker Peksag | 2017-01-03 | 1 | -1/+0 |
| | | | | | | | | Noticed by Serhiy Storchaka. | ||||
* | | Issue #15812: Merge from 3.5 | Berker Peksag | 2017-01-02 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #15812: inspect.getframeinfo() now correctly shows the first line of a ↵ | Berker Peksag | 2017-01-02 | 1 | -1/+1 |
| | | | | | | | | | | | | context Patch by Sam Breese. | ||||
* | | Issue #27172: Undeprecate inspect.getfullargspec() | Nick Coghlan | 2016-12-02 | 1 | -17/+25 |
| | | | | | | | | | | | | This is still useful for single source Python 2/3 code migrating away from inspect.getargspec(), but that wasn't clear with the documented deprecation in place. | ||||
* | | Merge 3.5 (issue #28639) | Yury Selivanov | 2016-11-09 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | Issue #28639: Fix inspect.isawaitable to always return bool | Yury Selivanov | 2016-11-09 | 1 | -2/+2 |
| | | | | | | | | Patch by Justin Mayfield. | ||||
* | | docs/inspect: clarify iscoroutinefunction; add docs for isasyncgen* | Yury Selivanov | 2016-11-08 | 1 | -2/+7 |
| | | |||||
* | | Issue #27989: Tweak inspect.formatannotation() to improve pydoc rendering of ↵ | Guido van Rossum | 2016-10-22 | 1 | -0/+2 |
|\ \ | |/ | | | | | function annotations. Ivan L. (3.5->3.6) | ||||
| * | Issue #27989: Tweak inspect.formatannotation() to improve pydoc rendering of ↵ | Guido van Rossum | 2016-10-22 | 1 | -0/+2 |
| | | | | | | | | function annotations. Ivan L. | ||||
* | | Issue #28003: Implement PEP 525 -- Asynchronous Generators. | Yury Selivanov | 2016-09-09 | 1 | -0/+7 |
| | | |||||
* | | Issue #27993: Merge plural fixes from 3.5 | Martin Panter | 2016-09-07 | 1 | -3/+2 |
|\ \ | |/ | |||||
| * | Issue #27993: Fix problems with plural objects in docs and comments | Martin Panter | 2016-09-07 | 1 | -3/+2 |
| | | |||||
* | | Issue #19611: handle implicit parameters in inspect.signature | Nick Coghlan | 2016-06-04 | 1 | -0/+14 |
| | | | | | | | | | | | | | | | | inspect.signature now reports the implicit ``.0`` parameters generated by the compiler for comprehension and generator expression scopes as if they were positional-only parameters called ``implicit0``. Patch by Jelle Zijlstra. | ||||
* | | Merge 3.5 (issue #26347) | Yury Selivanov | 2016-03-02 | 1 | -2/+0 |
|\ \ | |/ | |||||
| * | inspect: Fix BoundArguments.apply_defaults to handle empty arguments | Yury Selivanov | 2016-03-02 | 1 | -2/+0 |
| | | | | | | | | Patch by Frederick Wagner (issue #26347) | ||||
* | | Issue #25486: Resurrect inspect.getargspec in 3.6. Backout a565aad5d6e1. | Yury Selivanov | 2016-01-11 | 1 | -0/+25 |
| | | | | | | | | | | The decision is that we shouldn't remove popular APIs (however long they are depreacted) from Python 3, while 2.7 is still around and supported. | ||||
* | | Issue #25503: Fixed inspect.getdoc() for inherited docstrings of properties. | Serhiy Storchaka | 2015-10-29 | 1 | -6/+7 |
|\ \ | |/ | | | | | Original patch by John Mark Vandenberg. | ||||
| * | Issue #25503: Fixed inspect.getdoc() for inherited docstrings of properties. | Serhiy Storchaka | 2015-10-29 | 1 | -6/+7 |
| | | | | | | | | Original patch by John Mark Vandenberg. | ||||
* | | Issue #13248: Delete remaining references of inspect.getargspec(). | Berker Peksag | 2015-07-31 | 1 | -5/+2 |
| | | | | | | | | Noticed by Yaroslav Halchenko. | ||||
* | | Issue #24485: Function source inspection fails on closures. | Meador Inge | 2015-07-24 | 1 | -4/+22 |
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | The fix for Issue #21217 introduced a regression that caused `inspect.getsource` to return incorrect results on nested functions. The root cause of the regression was due to switching the implementation to analyze the underlying bytecode instead of the source code. This commit switches things back to analyzing the source code in a more complete way. The original bug and the regression are both fixed by the new source code analysis. | ||||
| * | Issue #24485: Function source inspection fails on closures. | Meador Inge | 2015-07-24 | 1 | -4/+22 |
| | | | | | | | | | | | | | | | | | | | | | | | | The fix for Issue #21217 introduced a regression that caused `inspect.getsource` to return incorrect results on nested functions. The root cause of the regression was due to switching the implementation to analyze the underlying bytecode instead of the source code. This commit switches things back to analyzing the source code in a more complete way. The original bug and the regression are both fixed by the new source code analysis. | ||||
* | | Issue #13248: Remove inspect.getmoduleinfo() from 3.6 (deprecated in 3.3) | Yury Selivanov | 2015-07-23 | 1 | -17/+0 |
| | | |||||
* | | Issue #13248: Remove inspect.getargspec from 3.6 (deprecated from 3.0) | Yury Selivanov | 2015-07-23 | 1 | -25/+0 |
|/ | |||||
* | Issue #24485: Revert backwards compatibility breaking changes of #21217. | Yury Selivanov | 2015-07-23 | 1 | -18/+2 |
| | |||||
* | Issue #24669: Fix inspect.getsource() for 'async def' functions. | Yury Selivanov | 2015-07-21 | 1 | -1/+1 |
| | | | | Patch by Kai Groner. | ||||
* | Issue #24206: Fixed __eq__ and __ne__ methods of inspect classes. | Serhiy Storchaka | 2015-07-18 | 1 | -22/+19 |
|\ |