mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
__slice__ equal to __get__ when SLICE_ENABLE off
This commit is contained in:
parent
da00653707
commit
2c17be4191
@ -406,7 +406,8 @@ Arg* PikaStdLib_SysObj___slice__(PikaObj* self,
|
||||
}
|
||||
return sliced_arg;
|
||||
}
|
||||
#endif
|
||||
|
||||
return arg_setNull(NULL);
|
||||
#else
|
||||
return PikaStdLib_SysObj___get__(self, start, obj);
|
||||
#endif
|
||||
}
|
||||
|
@ -406,7 +406,8 @@ Arg* PikaStdLib_SysObj___slice__(PikaObj* self,
|
||||
}
|
||||
return sliced_arg;
|
||||
}
|
||||
#endif
|
||||
|
||||
return arg_setNull(NULL);
|
||||
#else
|
||||
return PikaStdLib_SysObj___get__(self, start, obj);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user