Bug 136094 - [NEW PORT]devel/py-prioritized_methods:An extension to PEAK-Rules to prioritize methods
Summary: [NEW PORT]devel/py-prioritized_methods:An extension to PEAK-Rules to prioriti...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-27 16:40 UTC by wenheping
Modified: 2009-07-01 11:50 UTC (History)
0 users

See Also:


Attachments
file.shar (2.71 KB, text/plain)
2009-06-27 16:40 UTC, wenheping
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description wenheping 2009-06-27 16:40:00 UTC
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/

(It require:  http://www.freebsd.org/cgi/query-pr.cgi?pr=135965
and it is prepared for tg2)

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-06-27 16:40:10 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

miwi@ wants his PRs (via the GNATS Auto Assign Tool)
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2009-07-01 11:47:03 UTC
State Changed
From-To: open->closed

New port added. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2009-07-01 11:47:30 UTC
miwi        2009-07-01 10:47:17 UTC

  FreeBSD ports repository

  Modified files:
    devel                Makefile 
  Added files:
    devel/py-prioritized_methods Makefile distinfo pkg-descr 
  Log:
  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>
  
  Revision  Changes    Path
  1.3539    +1 -0      ports/devel/Makefile
  1.1       +25 -0     ports/devel/py-prioritized_methods/Makefile (new)
  1.1       +3 -0      ports/devel/py-prioritized_methods/distinfo (new)
  1.1       +21 -0     ports/devel/py-prioritized_methods/pkg-descr (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"