[ANN] astng 0.14

  • Thread starter Sylvain =?iso-8859-1?Q?Th=E9nault?=
  • Start date
S

Sylvain =?iso-8859-1?Q?Th=E9nault?=

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
refactoring
* .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
---------
http://www.logilab.org/projects/astng

Download
--------
ftp://ftp.logilab.org/pub/astng

Mailing list
------------
mailto://[email protected]

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 !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top