Open GoogleCodeExporter opened 8 years ago
yep, lots of small tuples are definitely a problem for shedskin. it also fits
with the escape analysis issue, in that we really want to be smarter about
avoiding heap allocations. copy-by-value may be a good option for short tuples,
since they're immutable, so there are no side-effects.
I sometimes solve this particular problem in Python by using globals or a
special class:
class Retval: pass
RETVAL = Retval()
def top_two(lst, retval):
RETVAL.one, RETVAL.two = lst[0], lst[1]
Original comment by mark.duf...@gmail.com
on 28 Nov 2010 at 8:11
Original comment by mark.duf...@gmail.com
on 28 Nov 2010 at 8:11
Original comment by mark.duf...@gmail.com
on 16 Jul 2011 at 9:52
Original issue reported on code.google.com by
fahh...@gmail.com
on 28 Nov 2010 at 7:51