Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

a python refactoring library...

Project description


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

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)

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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
rope-0.9.2.tar.gz (214.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page