Re: [Zope-dev] Class advisors in Python 3

2010-08-02 Thread Charlie Clark
Am 31.07.2010, 04:19 Uhr, schrieb Hanno Schlichting : > Who told you that? We documented our decision at > http://docs.zope.org/zopetoolkit/process/python-versions.html. > Python 2.5 is nowhere close to being deprecated. It was decided at the same time as the decision was taken to drop support

Re: [Zope-dev] Class advisors in Python 3

2010-07-30 Thread Hanno Schlichting
On Fri, Jul 30, 2010 at 11:49 PM, Charlie Clark wrote: > ZTK 1.1 deprecates Python 2.4 *and* 2.5. So, 2010-12-31 is the last day > for their official support. Who told you that? We documented our decision at http://docs.zope.org/zopetoolkit/process/python-versions.html. Python 2.5 is nowhere clo

Re: [Zope-dev] Class advisors in Python 3

2010-07-30 Thread Charlie Clark
Am 30.07.2010, 13:57 Uhr, schrieb Hanno Schlichting : > Class decorators were introduced in Python 2.6. > I think it's going to be a whole before we can require 2.6 as a minimum > version. ZTK 1.1 deprecates Python 2.4 *and* 2.5. So, 2010-12-31 is the last day for their official support. Cha

Re: [Zope-dev] Class advisors in Python 3

2010-07-30 Thread Lennart Regebro
On Fri, Jul 30, 2010 at 13:35, Hanno Schlichting wrote: > zope.interface contains 2to3 fixers to rewrite them to a class > decorator syntax IIRC. Actually, it's in zope.fixers. :) And it's only implements() -> @implementor i think. Adapts come with zope.component which isn't ported to Python 3 ye

Re: [Zope-dev] Class advisors in Python 3

2010-07-30 Thread Hanno Schlichting
On Fri, Jul 30, 2010 at 1:53 PM, Stephan Richter wrote: > On Friday, July 30, 2010, Hanno Schlichting wrote: >> zope.interface contains 2to3 fixers to rewrite them to a class >> decorator syntax IIRC. > > Wow, that's really nice. BTW, does Python 2.7 support class decorators > already? If so, we c

Re: [Zope-dev] Class advisors in Python 3

2010-07-30 Thread Stephan Richter
On Friday, July 30, 2010, Hanno Schlichting wrote: > zope.interface contains 2to3 fixers to rewrite them to a class > decorator syntax IIRC. Wow, that's really nice. BTW, does Python 2.7 support class decorators already? If so, we could slowly migrate code to that syntax without having to go Py3

Re: [Zope-dev] Class advisors in Python 3

2010-07-30 Thread Hanno Schlichting
On Fri, Jul 30, 2010 at 1:31 PM, Baiju M wrote: > Does class advisors like 'implements' and 'adapts' are going to work > in Python 3 ? If not, should we discourage its usage now ? They won't work anymore. zope.interface contains 2to3 fixers to rewrite them to a class decorator syntax IIRC. Hann

Re: [Zope-dev] Class advisors in Python 3

2010-07-30 Thread Wichert Akkerman
On 7/30/10 13:31 , Baiju M wrote: > Hi, > > Does class advisors like 'implements' and 'adapts' are going to work > in Python 3 ? If not, should we discourage its usage now ? Regardless if they work or not I would love to have a decorator version of them. Wichert.

[Zope-dev] Class advisors in Python 3

2010-07-30 Thread Baiju M
Hi, Does class advisors like 'implements' and 'adapts' are going to work in Python 3 ? If not, should we discourage its usage now ? Regards, Baiju M ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross