freebsd-ports/devel/py-prioritized_methods/distinfo
Martin Wilke 202cf32418 py-rioritized_methods is an extension to PEAK-Rules to prioritize
methods in order to to avoid AmbiguousMethods situations.This module
provides four decorators:
    prioritized_when
    prioritized_around
    prioritized_before
    prioritized_after

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
feasible.

WWW:	http://pypi.python.org/pypi/prioritized_methods/

PR:		ports/136094
Submitted by:	Wen Heping <wenheping at gmail.com>
2009-07-01 10:47:17 +00:00

3 lines
230 B
Text

MD5 (prioritized_methods-0.2.1.tar.gz) = 1e9d9de02291b0fc27942b48c170ddc3
SHA256 (prioritized_methods-0.2.1.tar.gz) = 931da40e1ba53c6d35312371b3c84573f1a5297a0ee6a78584a2337d0180b63c
SIZE (prioritized_methods-0.2.1.tar.gz) = 4684