summaryrefslogtreecommitdiff
path: root/astroid/nodes.py
Commit message (Collapse)AuthorAgeFilesLines
* add format string support (#365)Jared Garst2016-12-301-0/+2
| | | | Format strings require support for two new nodes, FormattedValue, respectively JoinedStr.
* Even more granular copyrights (thanks to copyrite)Claudiu Popa2016-07-221-2/+5
|
* Keep a consistent copyright notice across the board.Claudiu Popa2016-07-191-0/+2
|
* Convert all files to new license headerCeridwen2016-05-171-17/+3
|
* Changed the way how parameters are being builtClaudiu Popa2016-02-131-3/+3
| | | | | | | | | | | | | | | The old way consisted in having the parameter names, their defaults and their annotations separated in different components of the Arguments node. We introduced a new Param node, which holds the name of a parameter, its default value and its annotation. If any of the last two values are missing, then that slot will be filled with a new node kind, Empty, which is used for specifying the lack of something (None could have been used instead, but that means having non-AST nodes in the Arguments node). We're also having support for positional only arguments, for the moment only in raw_building. Close #215
* Refactor With nodes to have subnodes, WithItems, corresponding to the stdlib ↵Ceridwen2016-01-091-2/+2
| | | | 3 With node.
* Remove the old aliases for ass_type / file_bytes / file and nodes.Claudiu Popa2016-01-031-4/+0
|
* Merge modular-locals into 2.0Ceridwen2015-11-161-10/+11
|\
| * Fix remaining code review issues and add docstringsCeridwen2015-11-151-6/+6
| |
| * Rename InterpreterObject from EmptyNodeCeridwen2015-11-061-2/+2
| |
| * Rename Singleton to NameConstant, introduce ReservedName nodeCeridwen2015-10-301-4/+6
| |
| * Fix simple test failuresCeridwen2015-10-261-2/+2
| |
| * Add Unknown node for handling non-introspectable function signaturesCeridwen2015-10-251-3/+3
| |
| * First draft of mock AST generation code finishedCeridwen2015-10-251-1/+0
| |
* | Move node_classes and scoped_nodes into the tree namespace.Claudiu Popa2015-11-011-2/+2
|/
* Add a new node, DictUnpack, for representing the unpacking of a dict using ↵Claudiu Popa2015-10-061-3/+5
| | | | | | | | | PEP 448 This is a different approach than what the builtin ast module does, since it just uses None to represent this kind of operation, which seems conceptually wrong, due to the fact the AST contains non-AST nodes. Closes issue #206.
* Fix trailing whitespaces and add the missing code that wasn't added in the ↵Claudiu Popa2015-09-111-1/+1
| | | | previous commit.
* Second pass of the Python 3.5 support: adding Async nodes.Claudiu Popa2015-09-071-1/+4
|
* First pass of the Python 3.5 support.Claudiu Popa2015-09-071-1/+2
|
* Merge main into defaultCeridwen2015-08-141-2/+0
|\
| * Remove the useless __docformat__ variable.Claudiu Popa2015-07-231-2/+0
| |
* | Move proxies to nodes.py and scoped_nodes.pyCeridwen2015-07-131-21/+6
| |
* | Fix code review comments.Ceridwen2015-07-131-3/+3
| | | | | | | | | | | | | | | | Added aliases for inferred() and assign_type(), refactor some uses of ternary if, remove some now-unused internal functions in rebuilder, replaced the mutating docstring function with one that returns values as well as side-effects, change back to lazy-object-proxy, and add keyword args to the Module call in rebuilder.
* | Fix isinstance/proxy bug by changing from lazy-object-proxy to wrapt and ↵Ceridwen2015-07-111-3/+4
| | | | | | | | minor fixes
* | Fix small formatting issuesCeridwen2015-07-101-1/+1
| |
* | Refactor node classes to have constructors and change some names.Ceridwen2015-07-101-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I corrected the spelling of 'infered' to 'infered' and changed some to make them more consistent with the built-in ast module and to read better in English. I created aliases with proxy objects to maintain backwards compatibility. I also refactored the node classes so that they have __init__ and postinit functions. The postinit function has to be called after the creation of a parent with the instances of its children because the node __init__ functions have to take a parent instance to maintain the doubly-linked structure of the AST. This involved moving considerable amounts of node-construction logic from rebuilder.py to node_classes.py and scoped_nodes.py.
* | Node constructors almost finished except for two bugsCeridwen2015-07-081-14/+14
|/
* Fix pylint warnings over astroid, update the list of disabled messages in ↵Claudiu Popa2015-05-191-11/+14
| | | | pylintrc.
* Fix all unused imports in the code base.Claudiu Popa2015-01-291-0/+1
| | | | Also, this patch adds a new rule in the pylintrc for the CI gate.
* Move all astroid modules into a its own directory, which is now the package.Torsten Marek2014-11-081-0/+73
python setup.py develop now works.