Fixes and changes since PyProtocols 0.9.2 |
Fixes and changes since PyProtocols 0.9.2 |
|
|
|
- The 'factory' parameter to 'adapt()' was REMOVED. An informal survey of |
|
PyProtocols' users indicated that nobody was using it to any significant |
|
degree, and its removal was unopposed. This feature was an extension to |
|
PEP 246, so this brings PyProtocols into closer conformance with the PEP. |
|
|
- Raise 'AdaptationFailure' instead of 'NotImplementedError' when adaptation |
- Raise 'AdaptationFailure' instead of 'NotImplementedError' when adaptation |
is unsuccessful. 'AdaptationFailure' is a subclass of both 'TypeError' and |
is unsuccessful. 'AdaptationFailure' is a subclass of both 'TypeError' and |
'NotImplementedError', so code written according to either PEP 246 or older |
'NotImplementedError', so code written according to either PEP 246 or older |