#17186: Inverted F expression (negation)
-------------------------------------+-------------------------------------
Reporter: niwi | Owner: nobody
Type: New feature | Status: new
Component: Database layer | Version: SVN
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: | Needs documentation: 1
Has patch: 1 | Patch needs improvement: 1
Needs tests: 1 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by lrekucki):
* needs_better_patch: 0 => 1
* needs_tests: 0 => 1
* needs_docs: 0 => 1
Comment:
As a new feature this needs documentation. Also:
* What's the use case for negation on non-boolean values? How does this
behave on different DBs (the tests should check that).
* No tests for compounds statements (should they be boolean only?).
* Why {{{~F()}}} instead of more Pythonic {{{not F()}}}. After all
{{{~True}}} is {{{-2}}} not {{{False}}}. You could use {{{not}}} for
boolean expressions and {{{~}}} for bit negation on fields (which might be
useful too!).
--
Ticket URL: <https://code.djangoproject.com/ticket/17186#comment:6>
Django <https://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.