套件:python-protocols(1.0a.svn20070625-8)
python-protocols 的相關連結
Debian 的資源:
下載原始碼套件 pyprotocols:
- [pyprotocols_1.0a.svn20070625-8.dsc]
- [pyprotocols_1.0a.svn20070625.orig.tar.gz]
- [pyprotocols_1.0a.svn20070625-8.diff.gz]
維護者:
外部的資源:
- 主頁 [peak.telecommunity.com]
相似套件:
Open Protocols and Component Adaptation for Python
Do you hate having to write lots of if-then logic to test what type something is? Wouldn't it be nice if you could just declare "I want this object to have this behavior" and magically convert whatever value you have, to the type you need? PyProtocols lets you do just that, cleanly, quickly, and robustly -- even with built-in types or other people's classes.
PyProtocols extends the PEP 246 adapt() function with a new "declaration API" that lets you easily define your own protocols and adapters, and declare what adapters should be used to adapt what types, objects, or protocols. In addition to its own Interface type, PyProtocols can also use Twisted and Zope's Interface types too. (Of course, since Twisted and Zope interfaces aren't as flexible, only a subset of the PyProtocols API works with them. Specific limitations are listed in the documentation.)
其他與 python-protocols 有關的套件
|
|
|
|
-
- dep: libc6 (>= 2.4)
- GNU C 函式庫:共用函式庫
同時作為一個虛擬套件由這些套件填實: libc6-udeb
-
- dep: python
- interactive high-level object-oriented language (Python2 version)
- dep: python (<< 2.8)
- dep: python (>= 2.7)
-
- dep: python-peak.util.decorators
- version-agnostic decorators support for Python