Skip to main content

a python refactoring library...

Project description

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

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

rope-0.9.2.tar.gz (214.1 kB view details)

Uploaded Source

File details

Details for the file rope-0.9.2.tar.gz.

File metadata

  • Download URL: rope-0.9.2.tar.gz
  • Upload date:
  • Size: 214.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rope-0.9.2.tar.gz
Algorithm Hash digest
SHA256 6f1d6e2da2fcba73a7f28ef4b00a7d08a1b36441de71b2e216fbd08fc09bb9d3
MD5 3ef92a3df40aebe475ac4880b0f6381a
BLAKE2b-256 d4095e56a3eb9108958105b9abeae92e918898f59b43af00bb02d1eb8e00e1a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page