#29190: timezone.is_aware() raises unhandled exception when receiving 
datetime.date
object as argument
-------------------------------------+-------------------------------------
     Reporter:  Dariem PĂ©rez         |                    Owner:  nobody
  Herrera                            |
         Type:  Bug                  |                   Status:  new
    Component:  Utilities            |                  Version:  1.11
     Severity:  Normal               |               Resolution:
     Keywords:  timezone date        |             Triage Stage:
  datetime                           |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Tim Graham):

 
[https://docs.djangoproject.com/en/stable/ref/utils/#django.utils.timezone.is_aware
 The documentation] says, "This function assumes that value is a datetime."
 Do you have a compelling use case to add support for  `datetime.date`?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29190#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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.11df2783230d5a71e957528682619caf%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to