On Jul 10, 8:43 pm, osimons <[EMAIL PROTECTED]> wrote:
> On Jul 10, 7:51 pm, Christian Boos <[EMAIL PROTECTED]> wrote:
>
> > Alec Thomas wrote:
> > > +1
>
> > > Though my preference would be without the transaction code, I think
> > > it's good it's just in the Wiki module, to see how it goes.
>
> > Thanks!
>
> > But concerning the transaction stuff, have a look at the follow-up
> > changesets:
> >  -http://trac.edgewall.org/changeset/7340-simplify transactions to
> > use local functions instead of other methods
> >  -http://trac.edgewall.org/changeset/7341-show how the above lends
> > itself to the later use of `with` (transaction as a context manager)
>
> > -- Christian
>
> Wanted to try it out, but that 'with transaction....' stuff makes my
> Trac crash and burn.
>
> I'm running 2.4.5 from MacPorts and there is no with statement in my
> future, so to speak:
>
> In [1]: from __future__ import with_statement
> ------------------------------------------------------------
> SyntaxError: future feature with_statement is not defined (<ipython
> console>, line 1)
>

Oh. I see. I just presumed with was part of 2.5, and in __future__ for
2.4. Now I see it is in __future__ for 2.5, and probably part of 2.6.
Right?

Nice experiment and nice-looking code, but with talk of dropping 2.3.x
for trunk soon I suppose it will be a long time before 2.4.x can be
ditched...

/me heads off to downgrade the branch to previous version to give it a
spin.


:::simon

https://www.coderesort.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to