A suggestion for a possible Python module
Jp Calderone
exarkun at intarweb.us
Wed Mar 5 09:54:30 EST 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
> request
> > > (aliased as bug report) or patch (obviously better, but I can't
> make
> > > 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 2.2.6.4 Mutable Sequence Types
>
> <change>
> s.reverse() reverses the items of s in place (6)
> <to>
> s.reverse([i[,j]]) reverses the items of s[i:j] in place within s
> (6) (10)
> <and add, subject to footnote renumbering>
> 10
> 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?
Jp
--
up 2 days, 5:58, 4 users, load average: 0.09, 0.03, 0.00
More information about the Python-list
mailing list