Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    reimport 1.3

    Download button

    No screenshots available
    Downloads: 214  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Peter Shinners | More programs
    MIT/X Consortium Lic... / FREE
    March 14th, 2012, 14:41 GMT [view history]
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    reimport description

    Full featured reload for Python

    reimport is a Python module designed to be a full featured replacement for Python's reload function. It is targeted towards making a reload that works for Python plugins and extensions used by longer running applications.

    Reimport currently supports Python 2.4 through 2.6.

    By its very nature, this is not a completely solvable problem. The goal of this module is to make the most common sorts of updates work well. It also allows individual modules and package to assist in the process. A more detailed description of what happens is on the overview page.

    Quick Docs

    There are two functions in the API.

    def reimport(*modules):
     """Reimport python modules. Multiple modules can be passed either by
     name or by reference. Only pure python modules can be reimported."""
     return None

    def modified(path=None):
     """Find loaded modules that have changed on disk under the given path.
     If no path is given then all modules are searched."""
     return list_of_strings


    Related

    There have been previous attempts at python reimporting. Most are incomplete or frightening, but several of them are worth a closer look.

     * Livecoding is one of the more complete, it offers a special case directory tree of Python modules that are treated as live files.
     * mod_python has implemented a similar reloading mechanism. The module reloading itself may be difficult to use outside mod_python's environment.


    Product's homepage

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · Bugfix release.

      


    TAGS:

    Python reload | reload function | Python library | Python | reload | function

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM