summaryrefslogtreecommitdiff
path: root/node_classes.py
Commit message (Collapse)AuthorAgeFilesLines
* Drop yield_from API, add a new YieldFrom node instead.cpopa2014-03-041-4/+3
|
* Add yield_from property for Yield nodes.cpopa2014-03-021-1/+5
|
* 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
* unify BUILTINS_NAME / BUILTINS_MODULE into astng.bases.BUILTINSSylvain Th?nault2013-03-281-6/+5
|
* [cleanup] don't call const_factory with astng nodesSylvain Th?nault2013-03-281-9/+5
|
* don't call const_factory for builtin types subclasses, this will trigger ↵Sylvain Th?nault2013-03-281-7/+8
| | | | error later. Closes #124337
* 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
* 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
|
* copyright cleanupSylvain Th?nault2010-07-051-17/+1
|
* 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
|
* improve node representations with lineno and module nameEmile Anclin2010-04-151-1/+1
| | | | use it when raising TypeError on Const nodes
* make pylint happier : mention node attributesEmile Anclin2010-03-221-7/+75
| | | | | * mention node attributes in the classes to make pylint happier * set doc and name for Class, Function and Module in the constructor
* move _astng_fields to concrete classes instead of defining them in nodes.pyEmile Anclin2010-03-171-1/+43
|
* some cleanup using pylintEmile Anclin2010-03-171-23/+7
|
* all From nodes need a "level" attribute even for python2.4Emile Anclin2010-03-161-1/+2
|
* add a "mixins.py" module and move some classes around.Emile Anclin2010-03-151-69/+169
| | | | | | | | - move some Mixins to mixins.py - move LookupMixIn and *Name to node_classes It needs more polymorphism, i.e. removing 'isinstance' calls, to move LookupMixIn and LocalsDictNodeNG to mixins.py .
* add FilterStmtsMixin and AssignTypeMixins; use polymorphismEmile Anclin2010-03-151-12/+67
| | | | | | | - we put "ass_type" into this mixin and add "_get_filtered_stmts"; - this breaks circular import when trying to remove LookupMixin from scoped_nodes * * * step by step use _get_filtered_stmts