Re: [Tutor] Question regarding list editing (in place)

2008-02-14 Thread David J. Weller-Fahy
ction "3.1.4 Lists" in the python tutorial, I might have noticed the example which is similar to that form: #v+ >>> # Clear the list: replace all items with an empty list >>> a[:] = [] >>> a [] #v- Ah, well. Thanks again for the tips, gentlemen. Regards, -

[Tutor] Question regarding list editing (in place)

2008-02-05 Thread David J. Weller-Fahy
through the list) to removing items from a list without replacing the list? Specifically, I'm looking for something that would be similar to the concept, "Remove every list item that starts with X." Regards, -- David J. Weller-Fahy (please don't CC me) __