# HG changeset patch # User Paul Boddie # Date 1490489297 -3600 # Node ID a41fbedd100af192b18c1143da09e70b0e12232c # Parent 00345bd10e178977fb012b7b93f9237d4f6a2cae Fixed the initialisation of the size variable. diff -r 00345bd10e17 -r a41fbedd100a lib/__builtins__/tuple.py --- a/lib/__builtins__/tuple.py Sun Mar 26 01:47:11 2017 +0100 +++ b/lib/__builtins__/tuple.py Sun Mar 26 01:48:17 2017 +0100 @@ -35,12 +35,14 @@ # Reserve an attribute for a fragment reference along with some space # for elements. - self.__data__ = tuple_init(size) - if args is None: size = 0 else: size = args.__len__() + + self.__data__ = tuple_init(size) + + if size: list_setsize(self.__data__, size) # Populate the tuple.