Issue1521817
Created on 2006-07-13 13:21 by theller, last changed 2006-07-14 18:06 by theller.
| File name |
Uploaded |
Description |
Edit |
Remove |
|
ctypes.diff
|
theller,
2006-07-13 13:21
|
Patch against current SVN trunk. |
|
|
|
msg50683 - (view) |
Author: Thomas Heller (theller) |
Date: 2006-07-13 13:21 |
|
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.
|
|
msg50684 - (view) |
Author: Anthony Baxter (anthonybaxter) |
Date: 2006-07-14 03:45 |
|
Logged In: YES
user_id=29957
Sounds fine to checkin now. Please make sure to add a NEWS item.
|
|
msg50685 - (view) |
Author: Thomas Heller (theller) |
Date: 2006-07-14 18:06 |
|
Logged In: YES
user_id=11105
Thanks.
Committed as revision 50643.
|
|
| Date |
User |
Action |
Args |
| 2006-07-13 13:21:20 | theller | create | |
|