this repo has no description
at trunk 16 lines 580 B view raw
1/* Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com) */ 2#pragma once 3 4#include "runtime.h" 5 6namespace py { 7 8void initializeSliceType(Thread* thread); 9 10// Attempts to unpack a possibly-slice key. Returns true and sets start, stop if 11// key is a slice with None step and None/SmallInt start and stop. The start and 12// stop values must still be adjusted for the container's length. Returns false 13// if key is not a slice or if the slice bounds are not the common types. 14bool tryUnpackSlice(const RawObject& key, word* start, word* stop); 15 16} // namespace py