全部搜索项
jessie  ] [  stretch  ] [  buster  ] [  sid  ]
[ 源代码:  ]

软件包:python-protocols(1.0a.svn20070625-7) [debports]

python-protocols 的相关链接

Screenshot

Debian 的资源:

下载源码包

未找到

维护小组:

外部的资源:

相似软件包:

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 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • 增强

下载 python-protocols

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
arm64 (非官方移植版) 34.9 kB172.0 kB [文件列表]