#15084: Unnecessary imports lead to ImportError
--------------------------------------+------------------------------------
Reporter: vanschelven | Owner: nobody
Type: Bug | Status: reopened
Component: Internationalization | Version: 1.4
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by akaariai):
Looking at the provided patch in this ticket - the pkgutil documentation
says that the get_loader() will import the module if it isn't already
imported. So, I fail to see what is the difference when using pkgutil
compared to import_module.
To me it seems that as long as calling ugettext leads to importing other
apps, the importing of other apps will lead to circular imports. Is there
a way to get the module's path without doing imports?
I don't know Python's import mechanism well, so it is very much possible
that I just don't understand what is happening.
--
Ticket URL: <https://code.djangoproject.com/ticket/15084#comment:26>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.