On Wed, Apr 20, 2011 at 4:08 PM, Ian Kelly <[email protected]> wrote:
> What is the scope the code is running in? If this is part of a class
> definition, that could explain why the lambda is not seeing the type /
> posttype closure: because there isn't one.
It's inside an if, but that's all. The body of the code has:
if len(lst):
posttype=...
lst=...
No other structural elements to get in the way - unless calling the
code as described is creating one.
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list