Changes between Initial Version and Version 1 of Ticket #36864, comment 3


Ignore:
Timestamp:
Jan 14, 2026, 1:41:10 PM (3 weeks ago)
Author:
Clifford Gama

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36864, comment 3

    initial v1  
    11> Or, we could make import_string() handle either submodules or top-level modules as well.
    22
    3 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.
     3I'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.
Back to Top