Back
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?
The pop() method appends an element to a list. Whereas Push is usually used when referring to stacks.
31k questions
32.8k answers
501 comments
693 users