On 1/5/07, Anderson Vitous <[EMAIL PROTECTED]> wrote:
I looked at changeset 2256 at http://trac.turbogears.org/changeset/2256 and reverted the affected modlist assignment in startup.py to the original code, sort of: modnames = filter(lambda modname: modname.startswith(package), sys.modules.keys()) modlist = [modules[modname] for modname in modnames] ...and everything worked. Might there be an issue with the list comprehension with conditional in 2.4.3, or at least the build I'm running?
The new code uses the iterkeys method on the modules dictionary. This is was it called by Python when you do a "for key in dictionary" operation. The limitation of the iter* methods is they should not be used if the keys in the dictionary will change. This may happen if you are running in a multithreading mode. -- David http://www.traceback.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

