Does anyone know why Python’s list.append
function is not called list.push
given that there’s already a list.pop
that removes and returns the last element (that indexed at -1) and list.append
semantic is consistent with that use?
Does anyone know why Python’s list.append
function is not called list.push
given that there’s already a list.pop
that removes and returns the last element (that indexed at -1) and list.append
semantic is consistent with that use?