Path to this page:
./
wip/py-prioritized-methods,
Extension to PEAK-Rules to prioritize methods
Branch: CURRENT,
Version: 0.2.1,
Package name: py312-prioritized-methods-0.2.1,
Maintainer: kamelderouichepy-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.
Required to run:[
devel/py-setuptools] [
wip/py-peak-rules] [
lang/python37]
Required to build:[
pkgtools/cwrappers]
Master sites:
RMD160: b3a8150777d7766114d582922946b9988f46a7b6
Filesize: 4.574 KB
Version history: (Expand)
- (2024-09-19) Package has been reborn
- (2024-09-19) Updated to version: py312-prioritized-methods-0.2.1
- (2024-09-15) Package deleted from pkgsrc
- (2023-02-13) Updated to version: py310-prioritized-methods-0.2.1
- (2023-02-13) Package has been reborn
- (2021-10-08) Updated to version: py39-prioritized-methods-0.2.1
CVS history: (Expand)
2012-11-13 23:25:44 by othyro | Files touched by this commit (22) |
Log message:
Modified (ideally fixed) COMMENT. Some of these got minor formatting
changes, category fixes, and MAINTAINER fixes.
|
2012-10-07 15:57:25 by Aleksej Saushev | Files touched by this commit (211) |
Log message:
Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
Mark packages that don't or might probably not have staged installation.
|
2010-07-14 15:13:04 by Kamel Derouiche | Files touched by this commit (4) | |
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:
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.
|