A suggestion for a possible Python module
exarkun at intarweb.us
Wed Mar 5 15:54:30 CET 2003
On Wed, Mar 05, 2003 at 12:24:10AM -0500, Terry Reedy wrote:
> "Alex Martelli" <aleax at aleax.it> wrote in message
> news:kO49a.5064$zo2.155460 at news2.tin.it...
> > Terry Reedy wrote:
> > ...
> > > Does something as small as this need a PEP or would a feature
> > > (aliased as bug report) or patch (obviously better, but I can't
> > > one yet) be more appropriate?
> > A PEP _accompanied_ by a patch would be ideal. (I'll volunteer to
> > do the code patch, and co-author the PEP, if you'll be "lead author"
> > and write the patch for the docs and the tests... deal?)
> Yes -- if we agree on details -- and you make diffs from plaintext
> 'patches' if/when needed. For a start:
> Lib Ref 126.96.36.199 Mutable Sequence Types
> s.reverse() reverses the items of s in place (6)
> s.reverse([i[,j]]) reverses the items of s[i:j] in place within s
> (6) (10)
> <and add, subject to footnote renumbering>
> The optional arguments i and j act like slice bounds and
> default to 0 and len(s). The default with no arguments reverses the
> entire sequence.
Do you plan to support negative indices?
up 2 days, 5:58, 4 users, load average: 0.09, 0.03, 0.00
More information about the Python-list