Hi Tim,

due to Stephen's response, my concerns are not valid. :)

Still, my comments among your lines:

Am Freitag, 15. April 2016 02:30:46 UTC+2 schrieb Tim Graham:
>
> Here are some examples of when the "is" operator isn't equivalent to "==".
>
> http://stackoverflow.com/questions/3647692/when-is-the-operator-not-equivalent-to-the-is-operator-python
>

It's true that "==" is not the same as "is". I just wanted to say that most 
sane cases are probably YAGNI. Especially in the light of the increased 
complexity for template users.
 

> Preston (author of the patch to add the "is" operator [0]) indicated 
> support for "is" was necessary for template-based widget rendering [1]. I 
> haven't studied that patch closely, but maybe if you take a look you'll 
> understand why it's needed.
>

Mmm, I couldn't see a good use-case, though. :(
 

> I don't see much benefit to your proposal of limiting its usage to 
> comparing boolean/None values.
>

Neither do I, given that "== True", "== False" and  "== None" will do the 
trick.

Sven

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/dbf49a98-1080-45a6-b7d9-c9f406cd39f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to