#25825: Template Origin is missing an __ne__ implementation
-------------------------------+------------------------------------
     Reporter:  jaap3          |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  Uncategorized  |                  Version:  master
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+------------------------------------
Changes (by bmispelon):

 * needs_better_patch:   => 0
 * needs_docs:   => 0
 * needs_tests:   => 0
 * stage:  Unreviewed => Accepted


Old description:

> On Python 2.7 a template Origin can be both equal and not equal at the
> same time due to a missing __ne__ implementation.
>
> {{{
> >>> a = self.engine.get_template('index.html')
> >>> b = self.engine.get_template('index.html')
> >>> a.origin == b.origin
> True
> >>> a.origin != b.origin
> True
> }}}

New description:

 On Python 2.7 a template Origin can be both equal and not equal at the
 same time due to a missing `__ne__` implementation.

 {{{
 >>> a = self.engine.get_template('index.html')
 >>> b = self.engine.get_template('index.html')
 >>> a.origin == b.origin
 True
 >>> a.origin != b.origin
 True
 }}}

--

Comment:

 PR here: https://github.com/django/django/pull/5736

--
Ticket URL: <https://code.djangoproject.com/ticket/25825#comment:1>
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 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.8e757d25432a109c2b4849bce9b04702%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to