From owner-cvs-all@FreeBSD.ORG Wed Jul 1 10:47:17 2009 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76FE2106564A; Wed, 1 Jul 2009 10:47:17 +0000 (UTC) (envelope-from miwi@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 6587D8FC15; Wed, 1 Jul 2009 10:47:17 +0000 (UTC) (envelope-from miwi@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n61AlH9J084005; Wed, 1 Jul 2009 10:47:17 GMT (envelope-from miwi@repoman.freebsd.org) Received: (from miwi@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n61AlHo9084004; Wed, 1 Jul 2009 10:47:17 GMT (envelope-from miwi) Message-Id: <200907011047.n61AlHo9084004@repoman.freebsd.org> From: Martin Wilke Date: Wed, 1 Jul 2009 10:47:17 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/devel Makefile ports/devel/py-prioritized_methods Makefile distinfo pkg-descr X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jul 2009 10:47:18 -0000 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 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)