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.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    multimethod 0.2.1

    Download button

    No screenshots available
    Downloads: 264  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Aric Coady | More programs
    Python License / FREE
    May 11th, 2009, 14:24 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    multimethod description

    Multiple argument dispacthing

    multimethod - multiple argument dispacthing.

    Call multimethod on a variable number of types. It returns a decorator which finds the multimethod of the same name, creating it if necessary, and adds that function to it. For example:

    @multimethod(*types)
    def func(*args):
    ...



    'func' is now a multimethod which will delegate to the above function, when called with arguments of the specified types. If an exact match can't be found, the next closest method will be called (and cached). A function can have more than one multimethod decorator.

    Supported on Python 2.5 or higher, including Python 3.x.


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    argument dispacthing | multiple argument | Python library | argument | dispacthing | Python

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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