Filewatcher File Search File Search
Content Search
» » » » »


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.)

Package version:1.0a.svn20070625-5+b1


pyprotocols (1.0a.svn20070625-5+b1) unstable; urgency=low

  * Binary-only non-maintainer upload for mips; no source changes.
  * Build extension for python2.6

 -- Debian Build Daemon <>  Tue, 26 Jan 2010 12:21:15 +0000

pyprotocols (1.0a.svn20070625-5) unstable; urgency=low

  * Remove (unused) doctest embedded code copy. (Closes: #555433)
  * New maintainer ema


Fixes and changes since PyProtocols 0.9.3

 - Added support to make 'protocols.advise()' operate correctly in a doctest
   or other 'exec' scenario.  'protocols.advice.getFrameInfo()' now returns
   a 'kind' of '"class"' when in a class body being exec'd.

 - There is a new 'protocols.advice.add_assignment_advisor' function that
   allows you to implement PEP 318-like decorators in Python 2.2 and 


Author: Phillip J. Eby <>
Download: svn://

Files: *
Copyright: © 2003 Phillip J. Eby <>
License: ZPL-2.1
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are
   1. Redistributions in source code must retain the accompanying

Browse inside python-protocols_1.0a.svn20070625-5+b1_mips.deb

         [DIR]DEBIAN/ (4)  65535+ mirrors
         [DIR]usr/ (2)  65535+ mirrors

Download python-protocols_1.0a.svn20070625-5+b1_mips.deb

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2017