- Notifications
You must be signed in to change notification settings - Fork28
Commitf5a6509
committed
PL/Python: Remove use of simple slicing API
The simple slicing API (sq_slice, sq_ass_slice) has been deprecatedsince Python 2.0 and has been removed altogether in Python 3, so removethose functions from the PLyResult class. Instead, the non-slicemapping functions mp_subscript and mp_ass_subscript can take sliceobjects as an index. Since we just pass the index through to theunderlying list object, we already support that. Test coverage wasalready in place.1 parentdd6073f commitf5a6509
1 file changed
+2
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
| |||
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
38 | | - | |
| 36 | + | |
39 | 37 | | |
40 | | - | |
| 38 | + | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
| |||
254 | 252 | | |
255 | 253 | | |
256 | 254 | | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | 255 | | |
276 | 256 | | |
277 | 257 | | |
| |||
0 commit comments
Comments
(0)