#3446: use a standard utililty function for importing a module from a string
---------------------------------------------------+------------------------
   Reporter:  Gary Wilson <[EMAIL PROTECTED]>  |                Owner:  
gregorth      
     Status:  closed                               |            Component:  
Core framework
    Version:  SVN                                  |           Resolution:  
wontfix       
   Keywords:                                       |                Stage:  
Accepted      
  Has_patch:  0                                    |           Needs_docs:  0   
          
Needs_tests:  0                                    |   Needs_better_patch:  0   
          
---------------------------------------------------+------------------------
Changes (by mtredinnick):

  * status:  new => closed
  * resolution:  => wontfix

Comment:

 I don't think this will make anything clearer. Almost everywhere we call
 `__import__`, it's only that single call. However, there are variations,
 because sometimes the last component is {{{['']}}}, sometimes it's a non-
 empty string in the list and sometimes it's {{{[]}}} (empty list). Each
 has special and necessary significance. So you'd be replacing a one-line
 call with a function call that takes more or less the same parameters --
 net cost is an extra function call each time and you save having to type
 two sets of empty braces.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3446#comment:4>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to