#7874: Transactions should support the context handler interface
------------------------------+---------------------------------------------
Reporter: kcarnold | Owner: nobody
Status: new | Milestone: post-1.0
Component: Database wrapper | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 0 |
------------------------------+---------------------------------------------
(Low-priority, post-1.0)
Python 2.5 (really 2.6) introduces a {{{with}}} statement
(http://www.python.org/dev/peps/pep-0343/).
It would be nice for transactions to support that, so a casual transaction
use doesn't require creating a "dummy" function just to wrap it with a
decorator.
This can be done entirely backwards-compatibly by adding {{{__enter__}}}
and {{{__exit__}}} functions.
--
Ticket URL: <http://code.djangoproject.com/ticket/7874>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---