This has been fixed for the next release of Cython. On Feb 5, 2008, at 1:32 PM, Robert Bradshaw wrote:
> This is a really strange bug...the following works: > > def f(**argsByName): > tmp = [argsByname.get(argName,None) for argName in ["a","b"]] > (aVal, bVal) = tmp > > Of course it's faster to do > > def f(aVal=None, bVal=None): > ... > > On Feb 5, 2008, at 1:21 PM, Kirby Baker wrote: > >> Hi, >> >> The following doesn't compile when I put it in a file >> "example.spyx" and load the file from within SAGE. If I have done >> something wrong, let me know. Thanks. >> >> Kirby >> >> (Kirby Baker, UCLA) >> >> def f(**argsByName): >> (aVal, bVal) = [argsByname.get(argName,None) for argName in >> ["a","b"]] >> > > _______________________________________________ > Cython-dev mailing list > [email protected] > http://codespeak.net/mailman/listinfo/cython-dev _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
