News for hackers. Stuff that matters.
Re:Curing Python's Neglect by ghshephard on Friday May 29, 2009 @07:15PM (#633029)
Python is relatively consistent with regards to appending/popping/inserting/removing:

a=[] dir(a) 'append', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort'

help(a.remove) remove(...) L.remove(value) -- remove first occurrence of value

help(a.pop) pop(...) L.pop([index]) -> item -- remove and return item at index (default last)

append(...) L.append(object) -- append object to end

insert(...) L.insert(index, object) -- insert object before index

There are no comments on this comment yet.