Please note: This wiki is currently running in test mode after an attack on January 5 2013. All passwords were reset, so you will have to use the password recovery function to get a new password. To edit wiki pages, please log in first. See the wiki attack description page for more details. If you find problems, please report them to the pydotorg-www mailing list.

This page describes efforts to port PyLint to Python 3.x

Status of the port

Goals and high level overview of tasks

The idea is to add support for Python 3.0 and 3.1, while eliminating Python 2.4 compatibility because that will simplify some of the code.

Resources

These are all things related to doing Python 2 to 3 ports:

The main issues appear to be:

    try:
      iter = d.iteritems()
    except AttributeError:
      iter = d.items()

    try:
      dict_[x]
    except exceptions.AttributeError:
      # not in
    else:
      # in

Details

Working with the SCM

Running the tests

Notes on logilab-common

handling with different Python versions. This is also to be used for astng / pylint. Until now, it could be avoided to use sa2to3.

Most of the work for making logilab-common Py3k compatible is done. With the current work, and after running 2to3, one can use Pytest or
  •   python test/unittest_something.py

nevertheless can be used for running the astng/pylint tests.

Notes on Astng

and some 'visit_<node_name>' methods for the visitors in Astng.

PyLint-3k (last edited 2010-10-06 12:54:51 by logilab-paris-7-50)