#36864: Automatic shell imports cannot reliably handle submodules
-------------------------------------+-------------------------------------
     Reporter:  Jacob Walls          |                    Owner:  Jacob
                                     |  Walls
         Type:  Bug                  |                   Status:  assigned
    Component:  Core (Management     |                  Version:  5.2
  commands)                          |
     Severity:  Normal               |               Resolution:
     Keywords:  import_string,       |             Triage Stage:  Accepted
  submodule                          |
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Clifford Gama):

 > Or, we could make import_string() handle either submodules or top-level
 modules as well.

 I'd be +1 to this because it makes the interface simpler. Pointing out
 that this doesn't work when the string points to a module instead of a
 callable seems like information leakage to me for a function whose name
 doesn't seem to have any type preferences for what the import string is
 pointing to.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36864#comment:3>
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 visit 
https://groups.google.com/d/msgid/django-updates/0107019bbe05be05-40b403d6-9b2e-4faf-a0a9-029c94973994-000000%40eu-central-1.amazonses.com.

Reply via email to