Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b6f79590
Commit
b6f79590
authored
Nov 29, 2002
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix value of 'propagate' (noted by Chris Reedy)
Rewrite paragraph
parent
fb97443e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
Doc/whatsnew/whatsnew23.tex
Doc/whatsnew/whatsnew23.tex
+10
-8
No files found.
Doc/whatsnew/whatsnew23.tex
View file @
b6f79590
...
...
@@ -514,7 +514,7 @@ instances are converted to text by a \class{Formatter} class.
Log records are usually propagated up the hierarchy, so a message
logged to
\samp
{
server.auth
}
is also seen by
\samp
{
server
}
and
\samp
{
root
}
, but a handler can prevent this by setting its
\member
{
propagate
}
attribute to
\code
{
Tru
e
}
.
\member
{
propagate
}
attribute to
\code
{
Fals
e
}
.
With all of these features the
\module
{
logging
}
package should provide
enough flexibility for even the most complicated applications. This
...
...
@@ -743,12 +743,14 @@ or use them directly in subscripts:
[0, 2, 4]
\end{verbatim}
To make implementing sequences that support extended slicing in Python
easier, slice objects now have a method
\method
{
indices
}
which given
the length of a sequence returns
\code
{
(start, stop, step)
}
handling
omitted and out-of-bounds indices in a manner consistent with regular
slices (and this innocuous phrase hides a welter of confusing
details!). The method is intended to be used like this:
To simplify implementing sequences that support extended slicing,
slice objects now have a method
\method
{
indices(
\var
{
length
}
)
}
which,
given the length of a sequence, returns a
\code
{
(start, stop, step)
}
tuple that can be passed directly to
\function
{
range()
}
.
\method
{
indices()
}
handles omitted and out-of-bounds indices in a
manner consistent with regular slices (and this innocuous phrase hides
a welter of confusing details!). The method is intended to be used
like this:
\begin{verbatim}
class FakeSeq:
...
...
@@ -1699,6 +1701,6 @@ suggestions, corrections and assistance with various drafts of this
article: Simon Brunning, Michael Chermside, Scott David Daniels,
Fred~L. Drake, Jr., Michael Hudson, Detlef Lannert, Martin von
L
\"
owis, Andrew MacIntyre, Lalo Martins, Gustavo Niemeyer, Neal
Norwitz, Neil Schemenauer, Jason Tishler.
Norwitz,
Chris Reedy,
Neil Schemenauer, Jason Tishler.
\end
{
document
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment