#8193: `__import__(mod, {}, {}, [''])` causes double import of modules ('module'
and 'module' + '.')
------------------------------------+---------------------------------------
Reporter: i_i | Owner: nobody
Status: new | Milestone: post-1.0
Component: Uncategorized | Version: SVN
Resolution: | Keywords: import
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 1 |
------------------------------------+---------------------------------------
Comment (by i_i):
Replying to [comment:9 jacob]:
> Also, the patch has some, um, bugs: think about what happens if
{{{settings.SESSION_ENGINE}}} doesn't contain a "{{{.}}}", for example.
No bugs here.
{{{
>>> 'string_without_dots'.split('.')
['string_without_dots']
>>> 'string_without_dots'.split('.')[-1]
'string_without_dots'
}}}
Of course I need to update the patch to the current trunk, I will do it as
soon as I have some free time.
--
Ticket URL: <http://code.djangoproject.com/ticket/8193#comment:10>
Django Code <http://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
-~----------~----~----~----~------~----~------~--~---