append

Bill Pursell bill.pursell at gmail.com
Thu May 10 13:13:40 EDT 2007


On 10 May, 18:02, HMS Surprise <j... at datavoiceint.com> wrote:
> Trying not to be a whiner but I sure have trouble finding syntax in
> the reference material. I want to know about list operations such as
> append. Is there a pop type function? I looked in tutorial, language
> reference, and lib for list, append, sequence. Is there a place where
> us doofi ( who may not have our heads out in the sunlight) may find
> all related syntax grouped together?
>

>>> dir(list())
['__add__', '__class__', '__contains__', '__delattr__', '__delitem__',
'__delslice__', '__doc__', '__eq__', '__ge__', '__getattribute__',
'__getitem__', '__getslice__', '__gt__', '__hash__', '__iadd__',
'__imul__', '__init__', '__iter__', '__le__', '__len__', '__lt__',
'__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__',
'__repr__', '__reversed__', '__rmul__', '__setattr__', '__setitem__',
'__setslice__', '__str__', 'append', 'count', 'extend', 'index',
'insert', 'pop', 'remove', 'reverse', 'sort']


This doesn't give syntax, but if you have any questions, try:
>>> help(list().append)




More information about the Python-list mailing list