In article <[email protected]>,
"A. Cavallo" <[email protected]> wrote:
> The following is the STL equivalent of:
>
> print [ x*2 for range(10) in data if (x%2 == 0) ]
Are you sure about that? I haven't tested the following code, but I
believe it is a much more direct match the the behavior of your Python code
(at least on Python 2.5.1).
#include <iostream>
int main(int argc, char * argv[])
{
std::cout << "SyntaxError: can't assign to function call";
std::cout << endl;
}
--
http://mail.python.org/mailman/listinfo/python-list