pkgsrc-WIP-cvs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: wip/py-prioritized-methods

Module name:    wip
Committed by:   jihbed
Date:           Wed Jul 14 13:13:04 UTC 2010

Import into wip/py-prioritized-methods

Log Message:
Import py26-prioritized-methods-0.2.1 as wip/py-prioritized-methods.

py-rioritized_methods is an extension to PEAK-Rules to prioritize
methods in order to to avoid AmbiguousMethods situations.This module
provides four decorators:

These behave like their peak.rules counterparts except that they accept
an optional prio argument which can be used to provide a comparable
object (usually an integer) that will be used to disambiguate situations
in which more than rule applies to the given arguments and no rule is
more specific than another. That is, situations in which an
peak.rules.AmbiguousMethods would have been raised.

This is useful for libraries which want to be extensible via generic
functions but want their users to easily override a method without
figuring out how to write a more specific rule or when it is not


Vendor Tag:     JIHBED
Release Tags:   JIHBED_20100714
N wip/py-prioritized-methods/distinfo
N wip/py-prioritized-methods/Makefile
N wip/py-prioritized-methods/PLIST
N wip/py-prioritized-methods/DESCR

No conflicts created by this import

This email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit --
pkgsrc-wip-cvs mailing list

Home | Main Index | Thread Index | Old Index