Fwd: [PEAK] ruledispatch and python 2.5

2 views
Skip to first unread message

Kevin Dangoor

unread,
Oct 31, 2006, 4:40:26 PM10/31/06
to turbogea...@googlegroups.com
FYI: Phillip has given ruledispatch a little lovin' that can allow us to at least run under Python 2.5. I'd be grateful if someone out there would take on testing of Python 2.5 compatibility. I have something that I absolutely must finish in the next few days, so I won't be able to get to this.

Kevin

Begin forwarded message:

From: "Phillip J. Eby" <p...@telecommunity.com>
Date: October 31, 2006 12:16:33 PM GMT-05:00
To: Kevin Dangoor <dan...@gmail.com>
Subject: Re: [PEAK] ruledispatch and python 2.5

At 05:58 PM 10/30/2006 -0500, Kevin Dangoor wrote:
On Oct 29, 2006, at 6:02 PM, Phillip J. Eby wrote:

At 01:29 PM 10/29/2006 -0500, Kevin Dangoor wrote:
The pyrex list has people posting their unofficial versions of pyrex
for 2.5. I haven't seen anyone speak up with a response about an
"official" release for 2.5. Can we use one of these alternative pyrex
versions to make ruledispatch work with python 2.5? Are there any
tradeoffs to consider (or any other incompatibilities beyond pyrex)?

There are a couple of grammar changes in 2.5 that affect the
ast_builder module; I don't have a patch at this point and don't
know when I will get to it.  Tested patches welcome.  :)

Would it be usable without those changes? If it can be used just
without 2.5 language features, that would certainly be an improvement
over not being usable at all.

I've just checked in the following:

"""Crude hacks to make tests pass on Python 2.5, at least when using
--without-speedups (because Pyrex-generated code doesn't work right
for Python 2.5).  This code will probably also behave badly if you
use conditional expressions in a when() string.  But, if you avoid
conditional expressions and either leave out the speedups or compile
them with a Pyrex hacked for Python 2.5, you'll probably be okay for
now."""

Let me know if you have any problems.



--
Kevin Dangoor
TurboGears / Zesty News




Reply all
Reply to author
Forward
0 new messages