@@ -514,7 +514,7 @@ \section{PEP 282: The \module{logging} Package}
514514Log records are usually propagated up the hierarchy, so a message
515515logged to \samp {server.auth} is also seen by \samp {server} and
516516\samp {root}, but a handler can prevent this by setting its
517- \member {propagate} attribute to \code {True }.
517+ \member {propagate} attribute to \code {False }.
518518
519519With all of these features the \module {logging} package should provide
520520enough flexibility for even the most complicated applications. This
@@ -743,12 +743,14 @@ \section{Extended Slices\label{section-slices}}
743743[0, 2, 4]
744744\end {verbatim }
745745
746- To make implementing sequences that support extended slicing in Python
747- easier, slice objects now have a method \method {indices} which given
748- the length of a sequence returns \code {(start, stop, step)} handling
749- omitted and out-of-bounds indices in a manner consistent with regular
750- slices (and this innocuous phrase hides a welter of confusing
751- details!). The method is intended to be used like this:
746+ To simplify implementing sequences that support extended slicing,
747+ slice objects now have a method \method {indices(\var {length})} which,
748+ given the length of a sequence, returns a \code {(start, stop, step)}
749+ tuple that can be passed directly to \function {range()}.
750+ \method {indices()} handles omitted and out-of-bounds indices in a
751+ manner consistent with regular slices (and this innocuous phrase hides
752+ a welter of confusing details!). The method is intended to be used
753+ like this:
752754
753755\begin {verbatim }
754756class FakeSeq:
@@ -1699,6 +1701,6 @@ \section{Acknowledgements \label{acks}}
16991701article: Simon Brunning, Michael Chermside, Scott David Daniels,
17001702Fred~L. Drake, Jr., Michael Hudson, Detlef Lannert, Martin von
17011703L\" owis, Andrew MacIntyre, Lalo Martins, Gustavo Niemeyer, Neal
1702- Norwitz, Neil Schemenauer, Jason Tishler.
1704+ Norwitz, Chris Reedy, Neil Schemenauer, Jason Tishler.
17031705
17041706\end {document }
0 commit comments