summaryrefslogtreecommitdiff
path: root/node_classes.py
Commit message (Collapse)AuthorAgeFilesLines
* Move all astroid modules into a its own directory, which is now the package.Torsten Marek2014-11-081-965/+0
| | | | python setup.py develop now works.
* Make the source compatible with Python 2.7 and 3.3+.Claudiu Popa2014-10-271-4/+5
|
* Various speed improvements.Claudiu Popa2014-10-201-18/+18
|\ | | | | | | Patch by Alex Munroe.
| * merged with defaultEevee (Alex Munroe)2014-07-311-19/+41
| |\
| * | Speed up rebuilder considerably by computing line numbers lazily.Eevee (Alex Munroe)2014-07-011-16/+17
| | | | | | | | | | | | | | | | | | | | | Fetching the last child of each of hundreds of thousands of nodes is relatively expensive, and most of the time this information is never used, so don't actually figure it out until it's asked for. Saves the overhead of quite a few function calls, too.
| * | Replace copy_context with some dynamic scoping.Eevee (Alex Munroe)2014-07-011-3/+2
| | |
* | | Fix a maximum recursion error occured during the inference, where statements ↵Claudiu Popa2014-08-261-0/+14
| |/ |/| | | | | with the same name weren't filtered properly. Closes pylint issue #295.
* | pylint source codeSylvain Thénault2014-07-251-19/+20
| |
* | Expose function annotation to astroid. `Arguments` node exposes ↵Claudiu Popa2014-07-131-1/+22
|/ | | | 'varargannotation', 'kwargannotation' and 'annotations' attributes, while `Function` node has the 'returns' attribute.
* Drop yield_from API, add a new YieldFrom node instead.Claudiu Popa2014-03-041-4/+3
| | | | | --HG-- branch : yield_from
* Add yield_from property for Yield nodes.Claudiu Popa2014-03-021-1/+5
| | | | | --HG-- branch : yield_from
* Add support for py3k's keyword only argumentsJulien Cristau2013-07-181-2/+18
| | | | PEP 3102
* Fix format_args when there are no positional argumentsJulien Cristau2013-07-181-1/+3
| | | | | When formatting arguments, don't output an extra leading comma if the function has no positional arguments.
* Handle python3.3's With nodesJulien Cristau2013-06-201-7/+10
| | | | | Change With nodes to have a list of (expr, var) items as in python 3.3's ast.
* rename the project astroidDavid Douard2013-06-171-49/+49
|
* 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
* unify BUILTINS_NAME / BUILTINS_MODULE into astng.bases.BUILTINSSylvain Thénault2013-03-281-6/+5
| | | | | --HG-- branch : stable
* [cleanup] don't call const_factory with astng nodesSylvain Thénault2013-03-281-9/+5
| | | | | --HG-- branch : stable
* don't call const_factory for builtin types subclasses, this will trigger ↵Sylvain Thénault2013-03-281-7/+8
| | | | | | | error later. Closes #124337 --HG-- branch : stable
* Add support for inference of subscript operations on dict literals. Closes ↵Torsten Marek2013-03-271-7/+9
| | | | | | | | | #123074 actually fix Dict.getitem and enhance infer_subscript --HG-- branch : stable
* Fix python 3 crash on importing from a non existing module. Closes #83749FELD Boris2012-07-311-4/+9
| | | | | | Pb is actually silented in python 2 since YES objet are seen as iterable since next() is seen as a proper attribute (returning itself, see _Yes.__getattribute__), while it becomes a function in python 3.
* Make Starred node extends ParentAssignTypeMixin as it can be part of Assign ↵FELD Boris2012-07-251-1/+1
| | | | ast node in python-3k. Closes #83138.
* closes #74748: getitem protocal should return Const node, not the bare ↵Sylvain Thénault2011-09-071-1/+1
| | | | | | | | | | | | | python value This one is cute. It's a fix for a crash that occurs on code like "any string literal"[0].upper() due to the fact that the extracted string literal is not properly wrapped, but returned as a naked string object. (patch by google)
* py3k: __builtin__ module renamed to builtins, we should consider this to ↵Sylvain Thénault2011-07-081-5/+6
| | | | properly build ast for builtin objects
* closes #70497: Crash on AttributeError: 'NoneType' object has no attribute ↵Sylvain Thénault2011-07-081-1/+6
| | | | '_infer_name' by fixing constant factory
* fix constant_factory, it may be given unknown object when building from ↵Sylvain Thénault2011-01-111-8/+10
| | | | living objects
* cleanupSylvain Thénault2011-01-111-4/+4
|
* fix building from living object: content of container should be turned into ↵Sylvain Thénault2011-01-111-4/+10
| | | | ast nodes
* typo in node_classes; py3k - fix manager test (can't iterate on Project)Emile Anclin2010-12-151-3/+3
|
* cleanup : do more boot strapping in astng_boot_strappingEmile Anclin2010-12-141-20/+38
| | | | * refactor const_factory and add a note in scoped_nodes
* build builtins in more direct wayEmile Anclin2010-12-141-0/+4
| | | | | * we don't need the MANAGER for the const _proxied anymore * define Const.pytype in class definition
* minor cleanup: remove useless optional attributesEmile Anclin2010-12-131-4/+3
|
* py3k: fix some obvious stuffEmile Anclin2010-12-021-2/+2
|
* cleanup: move StmtMixin to StatementEmile Anclin2010-12-021-27/+27
|
* cleanup: BaseClass is no more neededEmile Anclin2010-12-021-2/+2
|
* reduce circular imports I: import exceptions directlyEmile Anclin2010-12-021-1/+1
| | | | - rename exceptions module: it's exported to Pylint anyway
* py3k: fix unpack_infer : "(chain(*map(...))" does not work in py3kEmile Anclin2010-11-101-9/+13
|
* py3k : introduce Nonlocal nodeEmile Anclin2010-10-281-0/+9
|
* py3k : introduce Starred nodeEmile Anclin2010-10-281-0/+5
|
* py3k / Raise : use "exc" instead of "type"Emile Anclin2010-10-121-4/+18
| | | | have other attributes explicitly different for 2.x and 3.x
* py3k: ListComp becomes a ComprehensionScopeEmile Anclin2010-10-111-10/+0
|
* add a "optional_assign" attribute to the NodeNGEmile Anclin2010-10-111-1/+3
| | | | This will make it possible to move LookupMixIn to mixins.py
* make dictionary comprehensions and set comprehensions have their own scope, ↵Daniel Harding2010-10-091-15/+0
| | | | like generator expressions
* create a Set nodeEmile Anclin2010-10-071-0/+12
|
* replace lgc.compat imports by regular importsEmile Anclin2010-10-061-1/+1
|
* remove other has_key occurencesEmile Anclin2010-10-051-1/+1
|
* add support for set comprehensionsDaniel Harding2010-10-011-0/+7
|
* add support for dict comprehensionsDaniel Harding2010-10-011-0/+8
|
* py2.3 compat : syntax, set; _nodes_compiler.py : fix visit_discardEmile Anclin2010-09-221-4/+4
| | | | | --HG-- branch : stable
* copyright cleanupSylvain Thénault2010-07-051-17/+1
| | | | | --HG-- branch : stable