Fix _PyEval_SliceIndex (Take two)
Feb. 18, 2005
9:35 p.m.
(More readable second paragraph) Hello again, There is a great discussion going on the numpy list regarding a proposed PEP for multidimensional arrays that is in the works. During this discussion a problem has resurfaced regarding slicing with objects that are not IntegerType objects but that have a tp_as_number->nb_int method. Would it be possible to change _PyEval_SliceIndex in ceval.c so that rather than raising an exception if the indexing object is not an integer, the code first checks to see if the object has a tp_as_number->nb_int method and trys it before raising an exception. If this is acceptable, it is an easy patch. Thanks, -Travis Oliphant
7938
Age (days ago)
7938
Last active (days ago)
0 comments
1 participants
participants (1)
-
Travis Oliphant