mirror of
https://github.com/boostorg/python.git
synced 2026-01-23 17:52:17 +00:00
Add a small set of test cases for slice::get_indicies().
Promote slice::start(), slice::stop(), slice::step, and slice::get_indicies() to const. Fix typos in the documentation. [SVN r23408]
This commit is contained in:
@@ -21,21 +21,21 @@ slice::slice()
|
||||
}
|
||||
|
||||
object
|
||||
slice::start()
|
||||
slice::start() const
|
||||
{
|
||||
return object( detail::borrowed_reference(
|
||||
((PySliceObject*)this->ptr())->start));
|
||||
}
|
||||
|
||||
object
|
||||
slice::stop()
|
||||
slice::stop() const
|
||||
{
|
||||
return object( detail::borrowed_reference(
|
||||
((PySliceObject*)this->ptr())->stop));
|
||||
}
|
||||
|
||||
object
|
||||
slice::step()
|
||||
slice::step() const
|
||||
{
|
||||
return object( detail::borrowed_reference(
|
||||
((PySliceObject*)this->ptr())->step));
|
||||
|
||||
Reference in New Issue
Block a user