On 26 Sep 2017, at 22:18, Brice Parent <[email protected]> wrote:
> Only question: Where should it stop? Should there also be a __json__, a 
> __yaml__ and an __xml__ methods?


Hello,

__html__ is a fairly well established convention in the Python community, 
pioneered by Armin Ronacher around 2006 (give or take a couple years).

He first suggested Django supported it just over ten years ago: 
https://groups.google.com/d/msg/django-developers/IGsLpBwiKbc/4WeewXq2d1oJ 
<https://groups.google.com/d/msg/django-developers/IGsLpBwiKbc/4WeewXq2d1oJ>

I'm not aware of any other conventional dunder method with such widespread 
adoption.

Best regards,

-- 
Aymeric.



-- 
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 [email protected].
To post to this group, send email to [email protected].
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/C8A056AC-69A1-4F0A-A669-2CE7EA638B65%40polytechnique.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to