2
0
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:
Jonathan Brandmeyer
2004-07-08 17:29:51 +00:00
parent 44e9ffc5ca
commit 8469d7727d
5 changed files with 66 additions and 22 deletions

View File

@@ -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));