Open tripleee opened 6 years ago
I tried to translate to Python 3 but the meaning of the double parentheses in the
setoutedge
definition eludes me.def setoutedge(self, key, (anode, label_start_index, label_end_index, bnode)):
I guessed it would mean
def setoutedge(self, key, anode=None, label_start_index=None, label_end_index=None, bnode=None):
but implementing this change just broke the code in new ways. Could you please explain what this definition means?
Use this toolsonlile, it wortks for me https://www.pythonconverter.com/
I found the following explanation: https://stackoverflow.com/questions/35615939/placing-python-tuples-in-function-signature
I tried to translate to Python 3 but the meaning of the double parentheses in the
setoutedge
definition eludes me.I guessed it would mean
but implementing this change just broke the code in new ways. Could you please explain what this definition means?