#32359: Should we define __round__ on Expression?
-------------------------------------+-------------------------------------
     Reporter:  Willem Van Onsem     |                    Owner:  nobody
         Type:  New feature          |                   Status:  closed
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:  aggregates           |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 Thanks for the suggestion but I think that sticking to the explicit import
 makes for a more cohesive expression interface.

 I don't think that avoiding an import is a good enough justification to
 support two ways of achieving a similar result even if we were to adopt
 this pattern for other ''magic'' functions (e.g. `__abs__`  ->
 `django.db.models.functions.Abs`).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32359#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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.7d9babbb6d023f305b8e34cda3b3e664%40djangoproject.com.

Reply via email to