Filewatcher File Search File Search
Catalog
Content Search
» » » » » »

python-prioritized-methods

An extension to PEAK-Rules to prioritize methods in order

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.

Homepage:
Package version:0.2.1
Architecture:noarch
Distribution:CentOS
Filename:python-prioritized-methods-0.2.1-5.1.el6.noarch.rpm

Browse inside python-prioritized-methods-0.2.1-5.1.el6.noarch.rpm

1.41 KB2014-11-28HEADER  view  27 mirrors
         [DIR]usr/ (1)  65535+ mirrors

Download python-prioritized-methods-0.2.1-5.1.el6.noarch.rpm

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2016 FileWatcher.com