python-astroid
The aim of this module is to provide a common base representation of python source code for projects such as pychecker, pyreverse, pylint... Well, actually the development of this library is essentially governed by pylint's needs. It used to be called logilab-astng.
It provides a compatible representation which comes from the _ast module. It rebuilds the tree generated by the builtin _ast module by recursively walking down the AST and building an extended ast. The new node classes have additional methods and attributes for different usages. They include some support for static inference and local name scopes. Furthermore, astroid builds partial trees by inspecting living objects.
- Devel package for openSUSE:Factory
-
12
derived packages
- Links to openSUSE:Factory / python-astroid
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout devel:languages:python/python-astroid && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
_link | 0000000124 124 Bytes | |
astroid-1.3.4.tar.gz | 0000146809 143 KB | |
python-astroid.changes | 0000021384 20.9 KB | |
python-astroid.spec | 0000002609 2.55 KB |
Revision 14 (latest revision is 110)
Michal Čihař (Nijel)
accepted
request 286631
from
Michal Čihař (Nijel)
(revision 14)
- Update to 1.3.4: * Get the first element from the method list when obtaining the functions from nose.tools.trivial. Closes Pylint issue #448. * Restore file_stream to a property, but deprecate it in favour of the newly added method Module.stream. By using a method instead of a property, it will be easier to properly close the file right after it is used, which will ensure that no file descriptors are leaked. Until now, due to the fact that a module was cached, it was not possible to close the file_stream anywhere. file_stream will start emitting PendingDeprecationWarnings in astroid 1.4, DeprecationWarnings in astroid 1.5 and it will be finally removed in astroid 1.6. * Add inference tips for 'tuple', 'list', 'dict' and 'set' builtins. * Add brain definition for most string and unicode methods * Changed the API for Class.slots. It returns None when the class doesn't define any slots. Previously, for both the cases where the class didn't have slots defined and when it had an empty list of slots, Class.slots returned an empty list. * Add a new method to Class nodes, 'mro', for obtaining the the method resolution order of the class. * Add brain tips for six.moves. Closes issue #63. * Improve the detection for functions decorated with decorators which returns static or class methods. * .slots() can contain unicode strings on Python 2. * Add inference tips for nose.tools.
Comments 0