# HG changeset patch # User Paul Boddie # Date 1486226945 -3600 # Node ID eb8ecbef79d5522dece809c777d8fa5cd6eb3104 # Parent 22f70469d2f0cfec0af0f794833eedfbaee6fa2c Obtain a proper __init__ reference when preparing class invocations. diff -r 22f70469d2f0 -r eb8ecbef79d5 translator.py --- a/translator.py Sat Feb 04 16:34:42 2017 +0100 +++ b/translator.py Sat Feb 04 17:49:05 2017 +0100 @@ -1155,7 +1155,8 @@ if expr.has_kind(""): instantiation = objpath target = encode_instantiator_pointer(objpath) - target_structure = "&%s" % encode_path("%s.__init__" % objpath) + init_ref = self.importer.all_class_attrs[objpath]["__init__"] + target_structure = "&%s" % encode_path(init_ref) context_required = False # Only plain functions and bound methods employ function pointers.