On Dec 16, 4:39 pm, Michael Bayer <mike...@zzzcomputing.com> wrote:
> The reason that change happened is because the logic of the threadlocal 
> engine was changed to no longer support the mixing of explicit Transaction 
> objects in conjunction with the "thread-scoped" transaction of the thread 
> local engine.   It was the returned Transaction object that implemented 
> __exit__() which is why the context manager feature worked.   That the 
> reworked threadlocal engine no longer returned any object at all and 
> therefore was no longer a context manager amounts to the inadvertent removal 
> of a desirable behavior.
>

ok, I see. Thanks for the comments.

>
> > So will this be the future behaviour of engine.begin() that it returns just 
> > None?
>
> its not a big deal for TLEngine to return some dummy object that emits a 
> commit/rollback from begin() so ticket 2004 has been added for this.

ok, that's very nice. Thanks for taking care of this.

Ralph

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to