#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):

 Replying to [comment:3 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 submodule instead of a
 callable/class 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:4>
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/0107019bbe065016-9998ad8b-04b4-471c-9884-ef484d247a72-000000%40eu-central-1.amazonses.com.

Reply via email to