On Oct 28, 2005, at 12:20 AM, [EMAIL PROTECTED] wrote:
Kevin Dangoor wrote:
On 10/27/05, David Stanek <[EMAIL PROTECTED]> wrote:
On 10/27/05, Leandro Lucarella <[EMAIL PROTECTED]> wrote:
And list comprehension (but I don't know if TG uses list
comprehension a
lot).
List comprehension is possible in P2.3. Sad to say that I
currently use
P2.3.3 :-(
OK. So, it sounds like there's a fair number of people running
2.3. As
far as I'm aware, none of TurboGears' dependencies require 2.4. So,
here's what we can do:
If someone submits a patch to TurboGears to fix the 2.4isms (probably
just decorators and sets), I'll start producing 2.3 versions of
TurboGears. I think I can do this reasonably and without a lot of
work. If it does start to get to be onerous, I may ask for a
volunteer
to produce 2.3 versions, but I'm thinking it shouldn't be too bad.
sets are available for 2.3 in default library. 2.4 only speeds them up
with a C implementation.
That particular workaround is easy:
try:
set, frozenset
except NameError:
from sets import Set as set, ImmutableSet as frozenset
-bob