[Twisted-Python] Python 2.1

2.1 has no nested scopes. Please don't do that: def listGroupRequest(self, group): sql = """ SELECT postings.article_index FROM postings,groups WHERE postings.group_id = groups.group_id AND groups.name = '%s' """ % (adbapi.safe(group),)
return self.runQuery(sql).addCallback( lambda results: (group, [res[0] for res in results]) )

On Fri, 2002-08-23 at 08:35, Moshe Zadka wrote:
2.1 has no nested scopes.
As we discussed on IRC, Twisted uses nested_scopes from __future__, so this isn't an issue (well, there should probably be a nested_scopes import at the top of that module, since the only other place it's imported is twisted/scripts/twistd.py). The issue is whether or not we should use nested_scopes, which I'm awaiting a reply to in the other thread :-)
participants (2)
-
Christopher Armstrong
-
Moshe Zadka