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
ea49de34
Commit
ea49de34
authored
Dec 30, 2003
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor cleanup of example
parent
ff381e13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Doc/lib/libuser.tex
Doc/lib/libuser.tex
+6
-4
No files found.
Doc/lib/libuser.tex
View file @
ea49de34
...
...
@@ -48,12 +48,14 @@ level can look for a variable \code{user.spam_verbose}, as follows:
\begin{verbatim}
import user
try:
verbose = user.spam
_
verbose # user's verbosity preference
except AttributeError:
verbose = 0 # default verbosity
verbose = bool(getattr(user, "spam
_
verbose", 0))
\end{verbatim}
(The three-argument form of
\function
{
getattr()
}
is used in case
the user has not defined
\code
{
spam
_
verbose
}
in their
\file
{
.pythonrc.py
}
file.)
Programs with extensive customization needs are better off reading a
program-specific customization file.
...
...
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