Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #29354: Fixed inspect.getargs() for parameters which are cell | Serhiy Storchaka | 2017-02-01 | 1 | -2/+5 |
| | | | | variables. | ||||
* | Issue #27993: Fix problems with the plural “objects” in docs and comments | Martin Panter | 2016-09-08 | 1 | -3/+2 |
| | |||||
* | Issue #21853: Fixed the inspect module in unicode disabled build. | Serhiy Storchaka | 2015-05-31 | 1 | -2/+7 |
| | |||||
* | Issue #18830: inspect.getclasstree() no more produces duplicated entries even | Serhiy Storchaka | 2013-09-05 | 1 | -1/+2 |
| | | | | when input list contains duplicates. | ||||
* | #18705: fix a number of typos. Patch by Févry Thibault. | Ezio Melotti | 2013-08-17 | 1 | -1/+1 |
| | |||||
* | #17526: fix an IndexError raised while passing code without filename to ↵ | Ezio Melotti | 2013-03-30 | 1 | -1/+1 |
| | | | | inspect.findsource(). Initial patch by Tyler Doyle. | ||||
* | Revert part of 13f56cd8dec1 (issue #1785) to avoid breaking getmembers() ↵ | Antoine Pitrou | 2012-01-18 | 1 | -15/+4 |
| | | | | | | | with unbound methods. Python 3 isn't affected (unbound methods don't exist). Thanks to Vincent Pelletier for noticing. | ||||
* | Issue #1785: Fix inspect and pydoc with misbehaving descriptors. | Antoine Pitrou | 2011-12-21 | 1 | -27/+36 |
| | | | | Also fixes issue #13581: `help(type)` wouldn't display anything. | ||||
* | allow "fake" filenames in findsource (closes #9284) | Benjamin Peterson | 2011-06-11 | 1 | -2/+6 |
| | | | | | | This allows findsource() to work in doctests. A patch from Dirkjan Ochtman. | ||||
* | Correct handling of functions with only kwarg args in getcallargs (closes ↵ | Benjamin Peterson | 2011-03-28 | 1 | -2/+8 |
| | | | | | | #11256) A patch from Daniel Urban. | ||||
* | Merged revisions 84106 via svnmerge from | Alexander Belopolsky | 2010-08-16 | 1 | -1/+1 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84106 | alexander.belopolsky | 2010-08-16 16:17:07 -0400 (Mon, 16 Aug 2010) | 1 line Issue #8983: Corrected docstrings. ........ | ||||
* | #8720: fix inspect regression by teaching getsourcefile about linecache. | R. David Murray | 2010-06-17 | 1 | -1/+6 |
| | | | | | | | | | The fix for issue 4050 caused a regression: before that fix, source lines in the linecache would eventually be found by inspect. After the fix inspect reports an error earlier, and the source isn't found. The fix for the fix is to have getsourcefile look in the linecache for the file and return the psuedo-filename if the source is there, just as it already returns it if there is a PEP 302 loader. | ||||
* | add inspect.getcallargs, which binds function arguments like a normal call #3135 | Benjamin Peterson | 2010-03-30 | 1 | -1/+84 |
| | | | | Patch by George Sakkis | ||||
* | make inspect.isabstract() always return a boolean; add a test for it, too #7069 | Benjamin Peterson | 2009-10-15 | 1 | -1/+1 |
| | |||||
* | Use str.format() to fix beginner's mistake with %-style string formatting. | Georg Brandl | 2009-09-18 | 1 | -7/+7 |
| | |||||
* | #6905: use better exception messages in inspect when the argument is of the ↵ | Georg Brandl | 2009-09-18 | 1 | -7/+7 |
| | | | | wrong type. | ||||
* | Issue #6619: Remove duplicate 'isgenerator' function from inspect module. | Mark Dickinson | 2009-08-02 | 1 | -4/+0 |
| | | | | Thanks Vincent Legoll. | ||||
* | Issue 6581. Michael Foord | Michael Foord | 2009-07-26 | 1 | -1/+4 |
| | |||||
* | Issue #4050: inspect.findsource/getsource now raise an IOError if the 'source' | R. David Murray | 2009-05-13 | 1 | -1/+3 |
| | | | | file is a binary. Patch by Brodie Rao, test by Daniel Diniz. | ||||
* | fix inspect.isclass() on instances with a custom __getattr__ #1225107 | Benjamin Peterson | 2009-01-17 | 1 | -1/+1 |
| | |||||
* | use enumerate | Benjamin Peterson | 2009-01-17 | 1 | -2/+2 |
| | |||||
* | #1162154: inspect.getmembers() now skips attributes that raise AttributeError, | Amaury Forgeot d'Arc | 2009-01-13 | 1 | -1/+4 |
| | | | | e.g. a __slots__ attribute which has not been set. | ||||
* | simplfy code | Benjamin Peterson | 2009-01-01 | 1 | -4/+2 |
| | |||||
* | #4795 inspect.isgeneratorfunction() should return False instead of None | Benjamin Peterson | 2008-12-31 | 1 | -0/+1 |
| | |||||
* | return ArgInfo from inspect.getargvalues #4092 | Benjamin Peterson | 2008-10-21 | 1 | -1/+1 |
| | |||||
* | Remove an unneeded import of abc.ABCMeta from 'inspect'. | Brett Cannon | 2008-08-18 | 1 | -1/+0 |
| | |||||
* | Silence (Syntax|Deprecation)Warning for 'inspect'. Had to remove tuple | Brett Cannon | 2008-08-01 | 1 | -5/+9 |
| | | | | | unpacking in a parameter list and set some constants by hand that were pulled from the 'compiler' package. | ||||
* | Factor out docstring dedenting from inspect.getdoc() into inspect.cleandoc() | Georg Brandl | 2008-06-07 | 1 | -0/+7 |
| | | | | to ease standalone use of the algorithm. | ||||
* | Prevent an error when inspect.isabstract() is called with something else ↵ | Amaury Forgeot d'Arc | 2008-04-08 | 1 | -1/+1 |
| | | | | than a new-style class. | ||||
* | Since abc._Abstract was replaces by a new type flags the regression test ↵ | Christian Heimes | 2008-03-03 | 1 | -0/+8 |
| | | | | suite fails. I've added a new function inspect.isabstract(). Is the mmethod fine or should I check if object is a instance of type or subclass of object, too? | ||||
* | Issue #1916. Added isgenerator() and isgeneratorfunction() to | Facundo Batista | 2008-02-18 | 1 | -6/+45 |
| | | | | | inspect.py. Thanks Javi Mansilla for patch review and corrections. | ||||
* | Let most inspect functions return named tuples | Raymond Hettinger | 2008-01-11 | 1 | -5/+19 |
| | |||||
* | Patch #1739696: use code.co_code only if really necessary | Georg Brandl | 2007-07-12 | 1 | -4/+3 |
| | |||||
* | Bug #1550524: better heuristics to find correct class definition | Georg Brandl | 2006-10-12 | 1 | -2/+17 |
| | | | | in inspect.findsource(). | ||||
* | Fix the speed regression in inspect.py by adding another cache to speed up ↵ | Nick Coghlan | 2006-09-07 | 1 | -2/+17 |
| | | | | getmodule(). Patch #1553314 | ||||
* | Whitespace normalization. | Tim Peters | 2006-07-27 | 1 | -1/+1 |
| | |||||
* | Patch #1520294: Support for getset and member descriptors in types.py, | Barry Warsaw | 2006-07-27 | 1 | -0/+34 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | inspect.py, and pydoc.py. Specifically, this allows for querying the type of an object against these built-in C types and more importantly, for getting their docstrings printed in the interactive interpreter's help() function. This patch includes a new built-in module called _types which provides definitions of getset and member descriptors for use by the types.py module. These types are exposed as types.GetSetDescriptorType and types.MemberDescriptorType. Query functions are provided as inspect.isgetsetdescriptor() and inspect.ismemberdescriptor(). The implementations of these are robust enough to work with Python implementations other than CPython, which may not have these fundamental types. The patch also includes documentation and test suite updates. I commit these changes now under these guiding principles: 1. Silence is assent. The release manager has not said "no", and of the few people that cared enough to respond to the thread, the worst vote was "0". 2. It's easier to ask for forgiveness than permission. 3. It's so dang easy to revert stuff in svn, that you could view this as a forcing function. :) Windows build patches will follow. | ||||
* | Fix SF#1516184 (again) and add a test to prevent regression. | Phillip J. Eby | 2006-07-20 | 1 | -2/+3 |
| | | | | (There was a problem with empty filenames still causing recursion) | ||||
* | Fix SF#1516184 and add a test to prevent regression. | Phillip J. Eby | 2006-07-10 | 1 | -12/+9 |
| | |||||
* | Fix another problem in inspect: if the module for an object cannot be found, ↵ | Georg Brandl | 2006-04-30 | 1 | -1/+5 |
| | | | | don't try to give its __dict__ to linecache. | ||||
* | Fix infinite regress when inspecting <string> or <stdin> frames. | Phillip J. Eby | 2006-04-30 | 1 | -1/+7 |
| | |||||
* | Add whitespace after comma | Neal Norwitz | 2006-04-11 | 1 | -1/+1 |
| | |||||
* | Updated the warnings, linecache, inspect, traceback, site, and doctest modules | Phillip J. Eby | 2006-04-11 | 1 | -3/+3 |
| | | | | | to work correctly with modules imported from zipfiles or via other PEP 302 __loader__ objects. Tests and doc updates are included. | ||||
* | some more fixes and tests for inspect.getsource(), triggered by crashes | Armin Rigo | 2005-09-25 | 1 | -27/+20 |
| | | | | from the PyPy project as well as the SF bug #1295909. | ||||
* | Patch #1159931/bug #1143895: inspect.getsource failed when functions, | Johannes Gijsbers | 2005-03-12 | 1 | -5/+5 |
| | | | | | | etc., had comments after the colon, and some other cases. This patch take a simpler approach that doesn't rely on looking for a ':'. Thanks Simon Percivall! | ||||
* | Apply itemgetter() instead of lambda. | Raymond Hettinger | 2005-03-11 | 1 | -1/+2 |
| | |||||
* | Replace list of constants with tuples of constants. | Raymond Hettinger | 2005-02-06 | 1 | -5/+5 |
| | |||||
* | Patch #1011890: fix inspect.getsource breaking with line-continuation & | Johannes Gijsbers | 2004-12-12 | 1 | -4/+15 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | more. Thanks to Simon Percivall! The patch makes changes to inspect.py in two places: * the pattern to match against functions at line 436 is modified: lambdas should be matched even if not preceded by whitespace, as long as "lambda" isn't part of another word. * the BlockFinder class is heavily modified. Changes are: - checking for "def", "class" or "lambda" names before setting self.started to True. Then checking the same line for word characters after the colon (if the colon is on that line). If so, and the line does not end with a line continuation marker, raise EndOfBlock immediately. - adding self.passline to show that the line is to be included and no more checking is necessary on that line. Since a NEWLINE token is not generated when a line continuation marker exists, this allows getsource to continue with these functions even if the following line would not be indented. Also add a bunch of 'quite-unlikely-to-occur-in-real-life-but-working-anyway' tests. | ||||
* | Import no longer needed. | Raymond Hettinger | 2004-09-20 | 1 | -1/+0 |
| | |||||
* | Raymond reminded me to use DSU key | Skip Montanaro | 2004-09-20 | 1 | -2/+1 |
| |