<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.14.3">
</HEAD>
<BODY>
The closest I can think of is:<BR>
<BR>
a =  a[range(len(a)) != 1]<BR>
<BR>
   Nadav.<BR>
<BR>
On Wed, 2007-08-15 at 02:07 -0700, mark wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">I am trying to delete a value from an array</FONT>
<FONT COLOR="#000000">This seems to work as follows</FONT>

<FONT COLOR="#000000">>>> a = array([1,2,3,4])</FONT>
<FONT COLOR="#000000">>>> a = delete( a, 1 )</FONT>
<FONT COLOR="#000000">>>> a</FONT>
<FONT COLOR="#000000">array([1, 3, 4])</FONT>

<FONT COLOR="#000000">But wouldn't it make more sense to have a function like</FONT>

<FONT COLOR="#000000">a.delete(1) ?</FONT>

<FONT COLOR="#000000">I now get the feeling the delete command needs to copy the entire</FONT>
<FONT COLOR="#000000">array with exception of the deleted item. I guess this is a hard thing</FONT>
<FONT COLOR="#000000">to do efficiently?</FONT>

<FONT COLOR="#000000">Thanks,</FONT>

<FONT COLOR="#000000">Mark</FONT>

<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">Numpy-discussion mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:Numpy-discussion@scipy.org">Numpy-discussion@scipy.org</A></FONT>
<FONT COLOR="#000000"><A HREF="http://projects.scipy.org/mailman/listinfo/numpy-discussion">http://projects.scipy.org/mailman/listinfo/numpy-discussion</A></FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>