[Zope-dev] Python 2.6: 'with' in Interfaces

Philipp von Weitershausen philipp at weitershausen.de
Wed Oct 8 07:57:02 EDT 2008


Marius Gedminas wrote:
> On Wed, Oct 08, 2008 at 12:35:39AM -0300, Sidnei da Silva wrote:
>> Trying to run some tests with Python 2.6 I stumbled on a problem that
>> I need help with: an interface that has an attribute named 'with'.
>>
>> The interface in question is defined in zope.app.component.back35:
>>
>> class IAdapterRegistration(IComponentRegistration):
>> ...
>>     with = schema.Tuple(
>>         title = _("With interfaces"),
>> ...
>>
>> Any suggestions on how to fix this one?
> 
> The backwards-compatibility interfaces are supposed to expire after 3
> releases (or was it years?), maybe we can simply remove this one?

+1. The deprecation message says it's going away in Zope 3.5, so I 
suggest ripping all this stuff out on the trunk of zope.app.component 
and creating a new major release (which would then be Python 2.6 
compatible).



More information about the Zope-Dev mailing list