rope /

The trunk branch has multiple heads

Filename Size Date modified Message
docs
rope
ropetest
34 B
793 B
345 B
17.6 KB
137 B
2.0 KB
1.7 KB

rope, a python refactoring library ...

Overview

Rope is a python refactoring library.

New Features

  • caching all sub-modules of a module in rope.contrib.autoimport
  • fix recursion when creating modules
  • added basic support for setuptools
  • extract method handles conditional variable updates
  • added rope.contrib.codeassist.CompletionProposal.parameters

The rope.contrib.autoimport.AutoImport.generate_module_cache() has been changed to handle module names that end with .*. Now one can use rope.* to mean rope and all of its sub-modules.

Extract method now handles variable updates better. For instance in:

def f(a):
    if 0:
        a = 1
    print(a)

When extracting the first two lines of f(), a should be passed to g(). Although these lines don't read a, if the conditional write (like in if or while blocks) does not happen, it results in an error. So the outcome will be:

def f(a):
    a = g(a)
    print(a)

def g(a):
    if 0:
        a = 1
    return a

Getting Started

To change your project preferences edit $PROJECT_ROOT/.ropeproject/config.py where $PROJECT_ROOT is the root folder of your project (this file is created the first time you open a project).

Bug Reports

Send your bug reports and feature requests to rope-dev (at) googlegroups.com.

License

This program is under the terms of GPL (GNU General Public License). Have a look at COPYING file for more information.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.