Author Jurko.Gospodnetić
Recipients Jurko.Gospodnetić, georg.brandl, kay, r.david.murray
Date 2014-04-10.13:01:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Just ran into this problem and it's sooooo uncomfortable
researching dynamic structures at run-time using PDB
without this. :-(

As a workaround, you can use a trick similar to this one
to 'import' your locals into the list comprehension body:

[l['r'](x) for l in (locals(),) for x in l['some_local']]

assuming 'r' & 'some_local' are two local variables in
your surrounding scope.

Ugly, but at least it can be made/forced to work if needed...

Best regards,
  Jurko Gospodnetić
Date User Action Args
2014-04-10 13:01:46Jurko.Gospodnetićsetrecipients: + Jurko.Gospodnetić, georg.brandl, r.david.murray, kay
2014-04-10 13:01:46Jurko.Gospodnetićsetmessageid: <>
2014-04-10 13:01:46Jurko.Gospodnetićlinkissue21161 messages
2014-04-10 13:01:46Jurko.Gospodnetićcreate