[Tutor] Bar Operator ??
Mark Lybrand
mlybrand at gmail.com
Mon Mar 11 08:23:35 CET 2013
Thanks. I think I kind of get it. It probably will take a while for the
nuances of the filter to sink. Some things are filters that don't seem like
they should be, but that seems like my problem.
Mark :)
On Sun, Mar 10, 2013 at 11:33 PM, Danny Yoo <dyoo at hashcollision.org> wrote:
> >
> > It's a filter:
> >
> > https://docs.djangoproject.com/en/1.5/ref/templates/builtins/
>
> And to be explicit about Mitya's point: it's technically not Python.
> It's part of Django's template language. If it were Python, it'd be
> interpreted as the "or" bitwise operator,
>
>
> http://docs.python.org/3/reference/expressions.html#binary-bitwise-operations
>
> but that's definitely not what's happening here. In your context, as
> part of a Django template document, interpret "|" as notation for the
> filtering operation.
>
--
Mark :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130311/6a22a164/attachment.html>
More information about the Tutor
mailing list