Skip to content

"SLC6X: development/languages: python-prioritized-methods

python-prioritized-methods - An extension to PEAK-Rules to prioritize methods in order

Website: http://pypi.python.org/pypi/prioritized_methods
License: MIT
Vendor: Red Hat, Inc.
Description:
This module provides four decorators: `prioritized_when`, `prioritized_around`,
`prioritized_before`, and `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.

Packages

python-prioritized-methods-0.2.1-5.2.el6.src [10 KiB] Changelog by Jan Pokorny (2016-03-24):
- Fix install_requires contains forward-incompatible
  "PEAK-Rules>=0.5a1.dev-r2562,==dev" specification
Resolves: rhbz#1321133

Listing created by repoview