Why is del(ete) a statement instead of a method?

Greg Brunet gbrunet at sempersoft.com
Tue Oct 8 21:44:41 EDT 2002


I'm just trying to learn Python, and one thing that struck me as odd
was that to delete a specific list element, I need to use a statement
instead of a method like I use for almost everything else I do on the
list.  This seems a bit inconsistent.  Why wouldn't it be a method?

-- 
Greg



More information about the Python-list mailing list