#2705: [patch] Add optional FOR UPDATE clause to QuerySets
-------------------------------------+-------------------------------------
Reporter: Hawkeye | Owner: brunobraga
Type: New | Status: assigned
feature | Component: Database layer
Milestone: | (models, ORM)
Version: SVN | Severity: Normal
Resolution: | Keywords:
Triage Stage: Accepted | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 |
-------------------------------------+-------------------------------------
Comment (by danfairs):
I think actually the P may exist on the other side of the K.
From the traceback, it looks like you're using the system Python on OS X -
is that right? I ran into an issue using this particular version of
Python, the original thread discussing it is here:
http://groups.google.com/group/django-
developers/browse_thread/thread/cf2b76a9b69f794c/ac09404089bfd185
... which led to this Python bug:
http://bugs.python.org/issue1242657
I'd totally forgotten about that. In a nutshell, we're seeing a Python
regression in the version you're using (and, unfortunately, I suspect a
lot of people will be using). The options from here as I see it are:
- Put a note in the documentation alerting people to this problem with
Python 2.6.1
- Modify the QuerySet internals to work around the Python issue (some
options were discussed in the thread on django-developers)
The former should be done as part of this patch; the latter would probably
be a separate ticket (and perhaps wouldn't hold up this patch).
Regardless, I'll test this patch later on against an OS X Python, to see
if I can reproduce it. (I'd been working on the patch using Python 2.7.2
on Debian).
Assuming that this is what the problem is, where do you think we should go
from here?
--
Ticket URL: <http://code.djangoproject.com/ticket/2705#comment:86>
Django <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.