Message198872
> I already thought of that, but that doesn't work: the iterator version
> would return the stack in the wrong order (note the .reverse() call in the code).
Then, couldn't this:
stack = list(_extract_stack_iter(_get_stack(f), limit=limit))
stack.reverse()
return stack
be rewritten as this, knowing the fact that _extract_stack_iter returns an iterable?
return reversed(_extract_stack_iter(_get_stack(f), limit=limit))
And in this case, extract_stack_ex could become extract_stack_iter or something like that. |
|
Date |
User |
Action |
Args |
2013-10-02 21:13:37 | Claudiu.Popa | set | recipients:
+ Claudiu.Popa, gvanrossum, akuchling, vstinner, benjamin.peterson, serhiy.storchaka |
2013-10-02 21:13:37 | Claudiu.Popa | set | messageid: <1380748417.04.0.589537531572.issue19146@psf.upfronthosting.co.za> |
2013-10-02 21:13:37 | Claudiu.Popa | link | issue19146 messages |
2013-10-02 21:13:36 | Claudiu.Popa | create | |
|