On Mon, Nov 4, 2013 at 9:31 AM, Andre Terra <[email protected]> wrote:
>
> On Sun, Nov 3, 2013 at 5:13 PM, Cody Scott <[email protected]> wrote:
>>
>> 3
>> Why do Q objects use '&', '|' and '~' for AND, OR and NOT when python uses
>> 'and', 'or' and 'not'?
>> source
>
>
> Because Python actually does use &, | and ~.

The and/or/not operators are meant for flow control, and as such
cannot be overridden to allow us to use them for composing queries.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CABpHFHSq7dsr-hfuPck_Bk%3DYBu6NCMd3FmW4g7eCKT%2Bgdds_hQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to