Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b6f7959

Browse files
committed
Fix value of 'propagate' (noted by Chris Reedy)
Rewrite paragraph
1 parent fb97443 commit b6f7959

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

Doc/whatsnew/whatsnew23.tex

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ \section{PEP 282: The \module{logging} Package}
514514
Log records are usually propagated up the hierarchy, so a message
515515
logged 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

519519
With all of these features the \module{logging} package should provide
520520
enough 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}
754756
class FakeSeq:
@@ -1699,6 +1701,6 @@ \section{Acknowledgements \label{acks}}
16991701
article: Simon Brunning, Michael Chermside, Scott David Daniels,
17001702
Fred~L. Drake, Jr., Michael Hudson, Detlef Lannert, Martin von
17011703
L\"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

Comments
 (0)