Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #12863

Bug#969766: ITP: python-multipledispatch -- multiple dispatch in Python

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Christian Kastner <ckk@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.devel, linux.debian.maint.python
Subject Bug#969766: ITP: python-multipledispatch -- multiple dispatch in Python
Date Tue, 08 Sep 2020 00:50:02 +0200
Message-ID <AMy7w-3me-3@gated-at.bofh.it> (permalink)
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Mon Sep 7 22:45:09 2020
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -4
Reply-To Christian Kastner <ckk@debian.org>, 969766@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc debian-devel@lists.debian.org, debian-python@lists.debian.org, wnpp@debian.org
X-Debian-Pr-Message report 969766
X-Debian-Pr-Package wnpp
X-Spam-Bayes score:0.0000 Tokens: new, 21; hammy, 150; neutral, 68; spammy, 0. spammytokens: hammytokens:0.000-+--HX-Debbugs-Cc:sk:debian-, 0.000-+--H*M:reportbug, 0.000-+--H*MI:reportbug, 0.000-+--H*x:reportbug, 0.000-+--H*UA:reportbug
Dkim-Signature v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=20200417.ckk.user; h=Date:Message-ID:Subject:To:From: Content-Transfer-Encoding:MIME-Version:Content-Type:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wCCPFpOV3FOsbwDL0NxBbkz0RtgwXw4mBYMOfRKvL8I=; b=YDpxeEhDvh10oj+HUtagwUW/Nd 3j+iRTlcb5YSfeW0OuuImSOqJCi9YWndWtVfsi0xJ9Ix5FenEfsccDi10r3fMH8k/Ejk/qZEJUicf WRSHkcMYBL3UCI/GthmfWBIUMx6CMsF9CFYgsBVyRV69+oJitdpTLXIjgyXtSXCwEvwF+P/TrnaCT Ysqi0krcZwWoVCqtc+rz5TYkzYXAOLfG92iSbD0C+CPfyzzXIfrTv/9gARDYp+3/1iQPSOnFQP37I 1BcKe3qmrQl9BRz16djr5yAA68I0sRWI6E/DXBNl3RFH06GjP0zCeozJJAMjL2XlAprIdau7st9VV 0qoFBQ2P+PxpvNMZrgRL2GH6az3Hfbz/0eLNbOcHVKPOlaIrtF6n7VmHUW9C4/NPdp6CRdwXNSWFJ uFI4vC8NHTXSpKhqw+nc2mg7GWSUBC2a6NWDZnAmsG6QQj46/Wfj68sXoSb/iC0hUYRZtCz5hwGEj q+Nvh+DdUKQQWCasszeopFwdMIArs5oN4VbX2fVBnGgXLvrzAJ1oWrYkk6HwwqXNAMr3VEr8APZno ViFv9sCNxNVuoXBhqN6Q7+VYZbhSoN7Z17TXMlFOsupDDmZohXHsqDWGrDw2rtUjHBQU+rOAfYYjr gTH1guSobFL2ep8TuELXfbDaPTj9kiEksvMT2pvNY=;
Content-Type text/plain; charset="us-ascii"
MIME-Version 1.0
Content-Transfer-Encoding 7bit
X-Mailer reportbug 7.5.3~deb10u1
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1621824
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 35
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Tue, 08 Sep 2020 00:41:53 +0200
X-Original-Message-ID <159951851365.397335.17061207275940742800.reportbug@workstation.kvr>
Xref csiph.com linux.debian.bugs.dist:1024184 linux.debian.devel:97686 linux.debian.maint.python:12863

Cross-posted to 3 groups.

Show key headers only | View raw


Package: wnpp
Severity: wishlist
Owner: Christian Kastner <ckk@debian.org>

* Package name    : python-multipledispatch
  Version         : 0.6.0
  Upstream Author : Matthew Rocklin
* URL             : https://github.com/mrocklin/multipledispatch/
* License         : BSD-3-clause
  Programming Lang: Python
  Description     : multiple dispatch in Python

This implementation of multiple dispatch is efficient, mostly complete,
performs static analysis to avoid conflicts, and provides optional namespace
support. It looks good too.

What this does:
 * Dispatches on all non-keyword arguments
 * Supports inheritance
 * Supports instance methods
 * Supports union types, e.g. (int, float)
 * Supports builtin abstract classes, e.g. Iterator, Number, ...
 * Caches for fast repeated lookup
 * Identifies possible ambiguities at function definition time
 * Provides hints to resolve ambiguities when they occur
 * Supports namespaces with optional keyword arguments
 * Supports variadic dispatch

What this doesn't do:
 * Diagonal dispatch
 * Efficient update: The addition of a new signature requires a full resolve
   of the whole function. This becomes troublesome after you get to a few
   hundred type signatures.

This will be maintained within the Debian Python Team.

Back to linux.debian.maint.python | Previous | Next | Find similar | Unroll thread


Thread

Bug#969766: ITP: python-multipledispatch -- multiple dispatch in Python Christian Kastner <ckk@debian.org> - 2020-09-08 00:50 +0200

csiph-web