Author theller
Recipients
Date 2006-07-13.13:21:20
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
This patch removes the special casing of 1-sized arrays
in ctypes.  Currently, 1-sized arrays do *no* index
checking in indexing or slicing operations.  The idea
was to have 1-sized arrays operate as variable sized
data types.

It was a bad idea, as it turns out, since it breaks a
very common pattern: iterating over arrays.  All this
code would have to be special cased when the size of
the array is one.

According to a RFC on the ctypes-users list it seems
that nobody uses this feature, which is not astonishing
since it was only very recently added.
History
Date User Action Args
2007-08-23 15:53:31adminlinkissue1521817 messages
2007-08-23 15:53:31admincreate