<div dir="ltr"><div>Hey everyone,</div><div><br></div><div>I am really new to Python 
contribution community want to propose below methods for List object. 
Forgive me if this is not the format to send an email.<br></div><div><br></div><div>1. <b>list.replace( item_to_be_replaced, new_item )</b>: which replaces all the occurrences of an element in the list instead of writing a new list comprehension in place.</div><div>2. <b>list.replace( item_to_be_replaced, new_item, number_of_occurrences )</b>:
 which replaces the
 occurrences of an element in the list till specific number of 
occurrences of that element. The number_of_occurrences can defaulted to 0
 which will replace all the occurrences in place.</div><div>3. <b>list.removeall( item_to_be_removed )</b>: which removes all the occurrences of an element in a list in place.</div><div><br></div><div>What do you think about these features?</div><div>Are they PEP-able? Did anyone tried to implement these features before?<br></div><div>Please let me know.</div><div><br></div><div>Thank you,</div><div>Sukumar</div></div>