summaryrefslogtreecommitdiff
path: root/inference.py
Commit message (Collapse)AuthorAgeFilesLines
* Move all astroid modules into a its own directory, which is now the package.Torsten Marek2014-11-081-395/+0
| | | | python setup.py develop now works.
* Make the source compatible with Python 2.7 and 3.3+.Claudiu Popa2014-10-271-2/+2
|
* Various speed improvements.Claudiu Popa2014-10-201-46/+41
|\ | | | | | | Patch by Alex Munroe.
| * merged with defaultEevee (Alex Munroe)2014-07-311-8/+9
| |\
| * | Remove context.lookupname; make it an argument to infer() when appropriate.Eevee (Alex Munroe)2014-07-011-28/+18
| | |
| * | Replace copy_context with some dynamic scoping.Eevee (Alex Munroe)2014-07-011-29/+34
| | |
* | | The inference engine handles binary operations (add, mul etc.) between ↵Claudiu Popa2014-08-131-23/+3
| | | | | | | | | | | | instances.
* | | Name inference will lookup in the parent function of the current scope, in ↵Claudiu Popa2014-08-111-1/+27
| |/ |/| | | | | case searching in the current scope fails.
* | pylint source codeSylvain Thénault2014-07-251-7/+8
| |
* | Fix names grabed using wildcard import in "absolute import mode"Sylvain Thénault2014-07-241-1/+1
|/ | | | | | | | | (ie with absolute_import activated from the __future__ or with python 3). To do so, refactor do_import_module a bit so it may be easily used for wildcard import as well. Fix pylint issue #58.
* Fix argument search for methods and classmethods.Claudiu Popa2014-04-131-0/+5
| | | | | --HG-- branch : args_fix
* rename all astroid_from* method, introduced by sed, into ast_from*Sylvain Thénault2013-07-241-1/+1
|
* [inference] introduce (but not use it yet) explicit inference for some node ↵Sylvain Thénault2013-06-181-24/+24
| | | | instances
* rename the project astroidDavid Douard2013-06-171-14/+14
|
* import cleanupsSylvain Thénault2013-03-291-3/+2
| | | | | --HG-- branch : stable
* minor cleanups: drop copyright by me, update others to 2013, droip those in ↵Sylvain Thénault2013-03-281-2/+0
| | | | | | | dumb test data files, delete some trailing whitespaces --HG-- branch : stable
* Add support for inference of subscript operations on dict literals. Closes ↵Torsten Marek2013-03-271-9/+17
| | | | | | | | | #123074 actually fix Dict.getitem and enhance infer_subscript --HG-- branch : stable
* Set literals should be treated as inference leaves. Closes #47957Torsten Marek2013-03-271-1/+1
| | | | | --HG-- branch : stable
* Fix raw_building.object_build for pypy implementation. Closes #99583FELD Boris2012-07-161-0/+1
|
* cosmetic changes: update/fix copyright and comments, d-t-wSylvain Thénault2011-09-271-1/+1
|
* test and fix relative import inference pb, detected with python 3Sylvain Thénault2011-07-081-1/+1
|
* remove some code no more necessary since we don't support anymore python < 2.5Sylvain Thénault2011-01-051-7/+0
|
* reduce circular imports II: move boot straping stuff to raw_buildingEmile Anclin2010-12-021-33/+2
| | | | | | - inference doesn't depend on importing raw_building from logilab.astng anymore - fix also test import
* reduce circular imports I: import exceptions directlyEmile Anclin2010-12-021-2/+2
| | | | - rename exceptions module: it's exported to Pylint anyway
* support for generator attributesEmile Anclin2010-12-011-1/+2
|
* Bytes: are just constants like Str and NumEmile Anclin2010-10-111-0/+3
|
* BORG : use the borg pattern for ASTNGManager, not singletonEmile Anclin2010-10-111-1/+4
| | | | Hence we can start breaking the circular imports
* replace lgc.compat imports by regular importsEmile Anclin2010-10-061-1/+1
|
* copyright cleanupSylvain Thénault2010-07-051-13/+0
| | | | | --HG-- branch : stable
* proper licensing information (LGPL-2.1). Hope I get it right this time.Sylvain Thénault2010-04-281-5/+19
|
* more license updatesSylvain Thénault2010-04-261-3/+3
|
* fix missing Subscript.infer_lhs and UNARY_OP_METHODEmile Anclin2010-03-171-4/+6
| | | | | | | | * add a Subscript.infer_lhs method * add '~': '__invert__' to the UNARY_OP_METHOD dictionary --HG-- branch : rebuild
* remove InferenceContext.startingfrom; use a set for path_wrapperEmile Anclin2010-03-171-3/+3
| | | | | --HG-- branch : rebuild
* some cleanup using pylintEmile Anclin2010-03-171-0/+4
| | | | | --HG-- branch : rebuild
* move all infutils stuff to bases.pyEmile Anclin2010-03-041-1/+1
| | | | | | | | We will need path_wrapper in the default NodeNG.infer method and have to avoid circular import. --HG-- branch : rebuild
* apply Edward K. Ream patch (maximum recursion depth exceeded)Emile Anclin2010-02-241-3/+1
| | | | | --HG-- branch : rebuild
* update inference and infutils from default/stable branchEmile Anclin2010-02-171-3/+4
| | | | | --HG-- branch : rebuild
* moving stuff around to avoid circular importsEmile Anclin2009-11-251-0/+1
| | | | | --HG-- branch : rebuild
* trying to handle the importsEmile Anclin2009-11-251-1/+1
| | | | | --HG-- branch : rebuild
* move default infer method to NodeNgEmile Anclin2009-11-251-8/+0
| | | | | --HG-- branch : rebuild
* fix #18953: inference fails with augmented assignmentSylvain Thénault2009-11-251-0/+18
|
* mergeSylvain Thénault2009-11-231-34/+4
|\
| * [R] modify __bases__ instead of using the "extend_class" functionEmile Anclin2009-09-141-5/+0
| | | | | | | | | | * avoid mixing oldstyle / newstyle : all classes inheritate from Proxy_ * add "Instance" class to the bases at the right place
| * [R] introduce FromImportMixInEmile Anclin2009-09-101-20/+0
| |
| * [R] demonkey patching some Const, Dict, List and Tuple attributesEmile Anclin2009-09-101-5/+0
| |
| * [R] de-monkeypatching set_line_info method and introduce StmtMixInEmile Anclin2009-09-031-3/+3
| |
| * [R] add an _nodes.py for avoiding circular imports.pyEmile Anclin2009-09-021-1/+1
| |
* | include Dotan Barak spell fixes patchSylvain Thénault2009-11-231-2/+2
|/
* absolute_modname is a better name...Sylvain Thénault2009-08-271-1/+1
|
* d-t-w, expose _imported_module_astng as do_import_module method of Import ↵Sylvain Thénault2009-08-261-15/+17
| | | | and From node