Paketname | python-protocols |
Beschreibung | Open Protocols and Component Adaptation for Python |
Archiv/Repository | Offizielles Ubuntu Archiv lucid (universe) |
Version | 1.0a.svn20070625-4ubuntu1 |
Sektion | universe/python |
Priorität | optional |
Installierte Größe | 348 Byte |
Hängt ab von | python (<< 2.7), python (>= 2.6), python-support (>= 0.7.1), libc6 (>= 2.3.6-6~), python-decoratorto |
Empfohlene Pakete | |
Paketbetreuer | Ubuntu MOTU Developers |
Quelle | pyprotocols |
Paketgröße | 62202 Byte |
Prüfsumme MD5 | ab071a626062bc8ddeab9c77ece5d820 |
Prüfsumme SHA1 | f33c839b1670728fe9a4e80197e74fa76cf8434f |
Prüfsumme SHA256 | 5741ed34949acac39f692e5200a32bdc5af331e01e5c7fd28ad7997836c62cb7 |
Link zum Herunterladen | python-protocols_1.0a.svn20070625-4ubuntu1_i386.deb |
Ausführliche Beschreibung | 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.)
|