E&S CVS Commit: PyProtocols - Implement Twisted-style 'IFoo(ob)' as shorthand for 'adapt(ob,IFoo)'. As

pje at eby-sarna.com pje at eby-sarna.com
Sun May 30 01:00:00 EDT 2004

Module Name:	PyProtocols
Committed By:	pje
Date:		Sun May 30 04:59:29 UTC 2004

Modified Files:
	PyProtocols: CHANGES.txt
	PyProtocols/docs/ref: libprotocols.tex
	PyProtocols/src/protocols: _speedups.c _speedups.pyx interfaces.py
	PyProtocols/src/protocols/tests: __init__.py checks.py

Log Message:
Implement Twisted-style 'IFoo(ob)' as shorthand for 'adapt(ob,IFoo)'.  As
a result, there's now an 'AbstractBase' you can subclass instead of
'Interface', if you need the old behavior.  See CHANGES.txt and the updated
docs for the full lowdown.  (Note that *all* 'Protocol' subclasses other
than 'AbstractBase' now do this, not just 'Interface'.)  Note that this
change will break 'peak.util.fmtparse' (at least), so I'm going to go fix
that next.

To view diffs of this commit, you can use the following URL(s):

To generate a diff of this commit:
cvs rdiff -r1.10 -r1.11 PyProtocols/CHANGES.txt
cvs rdiff -r1.37 -r1.38 PyProtocols/docs/ref/libprotocols.tex
cvs rdiff -r1.5 -r1.6 PyProtocols/src/protocols/_speedups.c \
cvs rdiff -r1.14 -r1.15 PyProtocols/src/protocols/interfaces.py
cvs rdiff -r1.12 -r1.13 PyProtocols/src/protocols/tests/__init__.py
cvs rdiff -r1.9 -r1.10 PyProtocols/src/protocols/tests/checks.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

More information about the source-changes mailing list