Message50683
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. |
|
| Date |
User |
Action |
Args |
| 2007-08-23 15:53:31 | admin | link | issue1521817 messages |
| 2007-08-23 15:53:31 | admin | create | |
|