Re: [Zope-dev] Python 2.6: 'with' in Interfaces
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). ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Python 2.6: 'with' in Interfaces
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? -- Sidnei da Silva Enfold Systemshttp://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214 ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Python 2.6: 'with' in Interfaces
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? If BBB weren't a consideration, you could rename this attribute to with_, as that seems to be the current convention for names that are also keywords (e.g. ZCML directives that have a 'class' attribute name it 'class_' in the corresponding interface). Marius Gedminas -- H.323 has much in common with other ITU-T standards - it features a complex binary wire protocol, a nightmarish implementation, and a bulk that can be used to fell medium-to-large predatory animals. -- Anthony Baxter signature.asc Description: Digital signature ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Python 2.6
Now that ZCA is working with Python 2.5 on 32 and 64 bit platforms (thanks guys!) Is there a plan being formulated to address all the deprecation warnings about 'with' becoming a reserved word in Python2.6? Thanks, --Tim ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )