Opened 14 years ago

Last modified 8 years ago

#4980 new enhancement

add info about slices to developer guide

Reported by: Jason Grout Owned by: tba
Priority: minor Milestone: sage-6.4
Component: documentation Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

Somewhere we should note the standard way to deal with getting the indices from a slice object is

range(*s.indices(size))

where s is our slice and size is the size of the object we are applying the slice to. See #4974 for lots of other information and discussion of various ways to do this, converging on the above simply standard python.

Change History (6)

comment:1 Changed 13 years ago by Tim Dumol

Report Upstream: N/A
Type: defectenhancement

comment:2 Changed 9 years ago by Jeroen Demeyer

Milestone: sage-5.11sage-5.12

comment:3 Changed 9 years ago by For batch modifications

Milestone: sage-6.1sage-6.2

comment:4 Changed 8 years ago by For batch modifications

Milestone: sage-6.2sage-6.3

comment:5 Changed 8 years ago by For batch modifications

Milestone: sage-6.3sage-6.4

comment:6 Changed 8 years ago by Karl-Dieter Crisman

Priority: majorminor
Note: See TracTickets for help on using tickets.