[ANN] astng 0.14

Sylvain Thénault sylvain.thenault at logilab.fr
Tue Jan 10 16:01:35 CET 2006

Hi !

I'm pleased to announce the new 0.14 version of astng. This release mainly
provides some major internal and api changes to have a richer model and a 
start for static inference on ast nodes.

What's new ?
    * some major inference improvments and refactoring ! The drawback is
      the introduction of some non backward compatible change in the API 
      but it's imho much cleaner and powerful now :)
    * new boolean property .newstyle on Class nodes (implements #10073)
    * new .import_module method on Module node to help in .resolve
    * .instance_attrs has list of assignments to instance attribute
      dictionary as value instead of one
    * added missing GenExprIf and GenExprInner nodes, and implements
      as_string for each generator expression related nodes
    * specifically catch KeyboardInterrupt to reraise it in some places
    * fix so that module names are always absolute
    * fix .resolve on package where a subpackage is imported in the
      __init__ file
    * fix a bug regarding construction of Function node from living object
      with realier version of python 2.4
    * fix a NameError on Import and From self_resolve method
    * fix a bug occuring when building an astng from a living object with
      a property
    * lint fixes

What is astng ?
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 essentialy
governed by pylint's needs.

It extends class defined in the compiler.ast [1] module with some
additional methods and attributes. Instance attributes are added by a
builder object, which can either generate extended ast (let's call
them astng ;) by visiting an existant ast tree or by inspecting living
object. Methods are added by monkey patching ast classes.

Home page


Mailing list

LOGILAB provides services in the fields of XML techniques and advanced
computing (implementation of intelligent agents, knowledge management,
natural language processing, statistical analysis, data mining, etc.),
and also trainings on Python, XML, UML, Object Oriented design, design
patterns use and other cutting edge topics. To know more about
Logilab, visit http://www.logilab.com/.

Logilab is also a strong supporter of the Free Software movement, and an
active member of the Python and Debian communities. Logilab's open 
source projects can be found on http://www.logilab.org/.

Enjoy and happy new year !
Sylvain Thénault                               LOGILAB, Paris (France).

http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org

More information about the Python-list mailing list