On 5/19/11 3:35 PM, Stefan Behnel wrote:
This is already optimised in Cython/Compiler/Optimize.py ("tailmatch"),
basically because it allows different numbers of arguments that need to
be dealt with. It may be worth going the same route for "str". The
decision usually depends on how complex the c
I don't know how to handle scopedexprs in generators, here are some examples:
[(yield i) for i in l] or [i for i in yield]
In Python3 language mode scoped expression is created for list
comprehension and loop variable is moved there.
So now it isn't stored inside generator closure and is lost bet
Hi,
the right place to discuss this is the cython-devel mailing list.
John Ehresman, 19.05.2011 18:17:
On 4/13/11 11:23 AM, Stefan Behnel wrote:
You can add BuiltinMethod entries for the "str" type in Builtin.py and
map them to a function name like "__Pyx_Str_PyString_WhatEver()". Then,
define