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

2010-08-02 Thread Charlie Clark
Am 31.07.2010, 04:19 Uhr, schrieb Hanno Schlichting ha...@hannosch.eu:

 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  
for Python 2.4. I don't remember anyone speaking up to support Python 2.5  
and syntactically there is little between 2.4 and 2.5. Moving the baseline  
to 2.6 will allow the smooth introduction of exactly such Python 3  
compatability. But, at the end of the day, the decision is with the ZTK  
group.

Charlie

-- 
Charlie Clark
Managing Director
Clark Consulting  Research
German Office
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


[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 posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


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 maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


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
srich...@cosmos.phy.tufts.edu 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 could slowly migrate code to that syntax without having to
 go Py3 all the way.

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.

Hanno
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


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

2010-07-30 Thread Lennart Regebro
On Fri, Jul 30, 2010 at 13:35, Hanno Schlichting ha...@hannosch.eu 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 yet, but the same thing should happen there, yes.

-- 
Lennart Regebro, Colliberty: http://www.colliberty.com/
Python, Zope, Plone blog: http://regebro.wordpress.com/
Telephone: +33 661 58 14 64
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


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

2010-07-30 Thread Charlie Clark
Am 30.07.2010, 13:57 Uhr, schrieb Hanno Schlichting ha...@hannosch.eu:

 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.

Charlie
-- 
Charlie Clark
Managing Director
Clark Consulting  Research
German Office
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


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
charlie.cl...@clark-consulting.eu 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 close to being deprecated.

Hanno
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )